You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/azure-functions/create-first-function-vs-code-other.md
+18-10Lines changed: 18 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,7 @@
2
2
title: Create a function in Go or Rust using Visual Studio Code - Azure Functions
3
3
description: Learn how to create a Go function as an Azure Functions custom handler, then publish the local project to serverless hosting in Azure Functions using the Azure Functions extension in Visual Studio Code.
@@ -291,18 +291,24 @@ In this section, you publish your project to Azure in a function app running Lin
291
291
292
292
In this section, you create a function app and related resources in your Azure subscription.
293
293
294
-
1. Choose the Azure icon in the Activity bar. Then in the **Resources** area, select the **+** icon and choose the **Create FunctionApp in Azure** option.
294
+
1. In the command palette, enter **Azure Functions: Createfunction app in Azure...(Advanced)**.
295
295
296
-

296
+
1. If you're not signed in, you're prompted to **Sign in to Azure**. You can also **Create a free Azure account**. After signing in from the browser, go back to VisualStudioCode.
297
297
298
-
1. Provide the following information at the prompts:
298
+
1. Following the prompts, provide this information:
299
299
300
-
|Prompt|Selection|
301
-
|--|--|
302
-
|**Select subscription**| Choose the subscription to use. You won't see this when you have only one subscription visible under **Resources**. |
303
-
|**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 AzureFunctions.|
304
-
|**Select a runtime stack**| Choose **Custom Handler**. |
305
-
|**Select a location for new resources**| For better performance, choose a [region](https://azure.microsoft.com/regions/) near you.|
300
+
| Prompt | Selection |
301
+
| ------ | --------- |
302
+
| Enter a globally unique name for the new function app. | Type a globally unique name that identifies your new function app and then selectEnter. Valid characters for a function app name are `a-z`, `0-9`, and `-`. |
303
+
| Select a hosting plan. | Choose the **Premium** [hosting plan](functions-scale.md), which provides serverless hosting on Linux that scales dynamically as needed. |
304
+
| Select a location for new resources. | Select a location in a [region](https://azure.microsoft.com/regions/) near you or near other services that your functions access. Only regions that support your chosen hosting plan are displayed. |
305
+
| Select a runtime stack. | Select **Custom handler**. |
306
+
| Select an OS. | Select **Linux** since the app was compiled to run on Linux. |
307
+
| Select a LinuxAppService plan | ForElasticPremium plans, you must explicitly **Create a new app service plan**, enter the plan name, and select the **EP1** pricing tier. |
308
+
| Select resource authentication type | Select **Managed identity**, which is the most secure option for connecting to the [default host storage account](storage-considerations.md#storage-account-guidance). When using managed identities with an ElasticPremium plan, secret key access to the default host storage remains enabled forAzureFiles access. For more information, see [run without AzureFiles](storage-considerations.md#create-an-app-without-azure-files). |
309
+
| Select a storage account. | Choose **Create new storage account**, and at the prompt, enter a globally unique name for the new storage account used by your function app. Storage account names must be between 3 and 24 characters long and can contain only numbers and lowercase letters. |
310
+
| Select an ApplicationInsights resource for your app. | Choose **Create new ApplicationInsights resource**, and at the prompt, enter a name for the instance used to store runtime data from your functions. |
311
+
| Select a user assigned identity | Choose **Create a new user assigned identity**. This identity is used when accessing the default host storage account using MicrosoftEntraID authentication. |
306
312
307
313
The extension shows the status of individual resources as they are being created in Azure in the **Azure: ActivityLog** panel.
308
314
@@ -312,6 +318,8 @@ In this section, you create a function app and related resources in your Azure s
+ A user-assigned managed identity that's added to the [Storage Blob Data Contributor](/azure/role-based-access-control/built-in-roles/storage#storage-blob-data-contributor) role in the new default host storage account.
322
+
315
323
A notification is displayed after your function app is created and the deployment package is applied.
0 commit comments