Let's look at how we can create a local Azure Functions project and deploy that to the Azure environment, taking the following steps:
- Navigate to a local working directory where you want to develop the local Azure Function project using Azure Functions Core Tools
- Run the following command to initialize the local Azure Functions project:
func init MyLocalFunctionProj
- It will prompt you for the worker runtime environment; select the node option
- Azure Functions Core Tools automatically creates a directory with the name MyLocalFunctionProj and initializes the directory with some files that are required to run the Azure Function locally
- It also initializes a .git repository so that you can push the code ...