1. Create and deploy Azure Functions from Visual Studio Code
Prepare you development environment
Install the following software:
- Create a free Azure subscription
- Install Node.js 14+ and npm
- Install Visual Studio Code and use the following extensions:
The following software is installed as part of the tutorial later:
- Azure Functions Core Tools - to use Azure Functions 3.x
Sign in to Azure in Visual Studio Code
If you already use the Azure service extensions, you should already be logged in and can skip this step.
Once you've installed an extension in Visual Studio Code, you need to sign into your Azure account.
In Visual Studio Code, select the Azure explorer icon, then select Sign in to Azure, and follow the prompts.
After signing in, verify that the email address of your Azure account appears in the Status Bar and your subscription(s) appears in the Azure explorer:
If you see the error "Cannot find subscription with name [subscription ID]", this may be because you are behind a proxy and unable to reach the Azure API. Configure
HTTPS_PROXY environment variables with your proxy information in your terminal:
Install the Azure Functions Core Tools V3
In VS Code, open the integrated terminal at a location you want to create and run the local project.
Install Azure Functions Core Tools locally:
npm install --global azure-functions-core-tools@3 --unsafe-perm true --save-dev