|
| 1 | +--- |
| 2 | +author: ggailey777 |
| 3 | +ms.service: azure-functions |
| 4 | +ms.topic: include |
| 5 | +ms.date: 09/28/2020 |
| 6 | +ms.author: glenga |
| 7 | +--- |
| 8 | + |
| 9 | +## Publish the project to Azure |
| 10 | + |
| 11 | +In this section, you create a function app and related resources in your Azure subscription and then deploy your code. |
| 12 | + |
| 13 | +> [!IMPORTANT] |
| 14 | +> Publishing to an existing function app overwrites the content of that app in Azure. |
| 15 | +
|
| 16 | + |
| 17 | +1. Choose the Azure icon in the Activity bar, then in the **Azure: Functions** area, choose the **Deploy to function app...** button. |
| 18 | + |
| 19 | +  |
| 20 | + |
| 21 | +1. Provide the following information at the prompts: |
| 22 | + |
| 23 | + - **Select folder**: Choose a folder from your workspace or browse to one that contains your function app. You won't see this if you already have a valid function app opened. |
| 24 | + |
| 25 | + - **Select subscription**: Choose the subscription to use. You won't see this if you only have one subscription. |
| 26 | + |
| 27 | + - **Select Function App in Azure**: Choose `- Create new Function App`. By default, PowerShell app will be deployed to Windows Function App. If you want to use Linux Function app, choose the `Advanced` option. |
| 28 | + |
| 29 | + - **Enter a globally unique name for the function app**: Type a name that is valid in a URL path. The name you type is validated to make sure that it's unique in Azure Functions. |
| 30 | + |
| 31 | + - **Select a location for new resources**: For better performance, choose a [region](https://azure.microsoft.com/regions/) near you. |
| 32 | + |
| 33 | + The extension shows the status of individual resources as they are being created in Azure in the notification area. |
| 34 | + |
| 35 | + :::image type="content" source="media/functions-publish-project-vscode/resource-notification.png" alt-text="Notification of Azure resource creation"::: |
| 36 | + |
| 37 | +1. When completed, the following Azure resources are created in your subscription, using names based on your function app name: |
| 38 | + |
| 39 | + [!INCLUDE [functions-vs-code-created-resources](functions-vs-code-created-resources.md)] |
| 40 | + |
| 41 | + A notification is displayed after your function app is created and the deployment package is applied. |
| 42 | + |
| 43 | + [!INCLUDE [functions-vs-code-create-tip](functions-vs-code-create-tip.md)] |
| 44 | + |
| 45 | +4. Select **View Output** in this notification to view the creation and deployment results, including the Azure resources that you created. If you miss the notification, select the bell icon in the lower right corner to see it again. |
| 46 | + |
| 47 | +  |
0 commit comments