Order: 5
Area: functions
TOCTitle: Deploy the website
PageTitle: Deploy the website
MetaDescription: Try Azure Functions for free with Visual Studio Code
DateApproved: 2/9/2018
Deploy your App using Azure Functions
If you don't have an Azure account, sign up today for a free 30-day account with $200 in Azure credits to try out any combination of services.
Once created, log in to your Azure account - in the Activity Bar, click on the Azure logo to show the Azure Functions explorer. Click Sign in to Azure... and choose your account in the browser.
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 (
kb(workbench.action.showCommands)) by typing 'deploy to function app' and running the Azure Functions: Deploy to Function App command.
From here follow the prompts. Choose the directory that you currently have open, select your Azure subscription, and then choose Create New Function App.
Type a globally unique name for your Function App and press
kbstyle(Enter). Valid characters for a function app name are 'a-z', '0-9', and '-'.Choose Create New Resource Group, type a Resource Group name, like 'myResourceGroup' and press
kbstyle(Enter).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.
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 kbstyle(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!
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.



