Deploy your App using Azure Functions
In the AZURE FUNCTIONS explorer, click the blue up arrow icon to deploy your app to Azure Functions.
Tip: You can also deploy from the Command Palette (⇧⌘P (Windows, Linux Ctrl+Shift+P)) by typing
deploy to function appand running the Azure Functions: Deploy to Function App command.
From here follow the prompts. Choose the directory that you currently have open, select your active Azure subscription, and then choose Create New Function App.
Type a globally unique name for your Function App and press
Enter. Valid characters for a function app name are
Choose Create New Resource Group, type a resource group name, like
Choose a location in a region near you or near other services you may need to access.
Choose Create New Storage Account, type a globally unique name of the new storage account used by your function app and press Enter. Storage account names must be between 3 and 24 characters in length and may contain numbers and lowercase letters only.
Function app creation starts after you choose your Storage account.
- Choose Yes when prompted about overwriting existing deployments - there are no deployments in the newly created function app.
The Output panel shows the Azure resources that were created in your subscription.
Tip: A storage account is not required for HTTP trigger functions, other function triggers (e.g. Storage) do, however, require a storage account.
Browse the website
The Output panel will open during deployment to indicate the status of the operation. Once completed, find the app that you just created in the AZURE FUNCTIONS explorer, expand the Functions node to expose the HttpTriggerJS function, then right-click and choose Copy Function Url. Paste the URL into your browser along add the
?name=Matt query parameter and press
Enter to see the response.
Updating the App
Next, make some changes to your Function and add new Functions with other Triggers. Once you have all the source code running correctly in your local environment, click the blue up arrow Deploy to Function App button to deploy your changes.
Tip: When deploying, the entire Functions application is deploy so changes to all individual Functions will be deployed at once.
Congratulations, you've successfully completed this walkthrough!
Next, check out the other Azure extensions.
Or get them all by installing the Node Pack for Azure extension pack.