Azure Functions add-ons
In DevOps, it is very important to make sure development is smoother and faster and that we deploy bug-free applications to production. It is possible if we can develop, debug, and test the application locally. But with respect to Azure functions, to test and debug the functions, we need to deploy it on the Azure Cloud each time. The good news is that, like AWS Lambda, Azure functions can be debugged and tested locally by means of the Azure functions core tools .
With Azure functions tools, we can create, develop, test, run, and debug the Azure functions locally. They can be installed on Windows, macOS, and Linux. We can visit the GitHub link for how to set them up: https://github.com/Azure/azure-functions-core-tools
After, we have installed the tools, we need to first create thecreate function
app. By default, this will also create a local Git repository that can skipped by passing a parameter, -n
:
$ mkdir my-local-azure-function $ cd my-local-azure-function $ func...