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
+20-11Lines changed: 20 additions & 11 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.
@@ -16,7 +16,8 @@ In this article, you use Visual Studio Code to create a [custom handler](functio
16
16
17
17
Custom handlers can be used to create functions in any language or runtime by running an HTTP server process. This article supports both [Go](create-first-function-vs-code-other.md?tabs=go) and [Rust](create-first-function-vs-code-other.md?tabs=rust).
18
18
19
-
Completing this quickstart incurs a small cost of a few USD cents or less in your Azure account.
19
+
>[!TIP]
20
+
>Completing this quickstart creates an app that runs in an [Elastic Premium plan](functions-premium-plan.md), which can incur costs in your Azure account even when you're not using it. You should [Clean up resources](#clean-up-resources) to remove the function app, App Service plan, and related resources after you've completed the article.
20
21
21
22
## Configure your environment
22
23
@@ -291,18 +292,24 @@ In this section, you publish your project to Azure in a function app running Lin
291
292
292
293
In this section, you create a function app and related resources in your Azure subscription.
293
294
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.
295
+
1. In the command palette, enter **Azure Functions: Createfunction app in Azure...(Advanced)**.
295
296
296
-

297
+
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
298
298
-
1. Provide the following information at the prompts:
299
+
1. Following the prompts, provide this information:
299
300
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.|
301
+
| Prompt | Selection |
302
+
| ------ | --------- |
303
+
| 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 `-`. |
304
+
| Select a hosting plan. | Choose the **Premium** [hosting plan](functions-scale.md), which provides serverless hosting on Linux that scales dynamically as needed. |
305
+
| 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. |
306
+
| Select a runtime stack. | Select **Custom handler**. |
307
+
| Select an OS. | Select **Linux** since the app was compiled to run on Linux. |
308
+
| 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. |
309
+
| 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). |
310
+
| 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. |
311
+
| 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. |
312
+
| 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
313
307
314
The extension shows the status of individual resources as they are being created in Azure in the **Azure: ActivityLog** panel.
308
315
@@ -312,6 +319,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.
323
+
315
324
A notification is displayed after your function app is created and the deployment package is applied.
0 commit comments