Skip to content

Commit 6b2e6f7

Browse files
Merge pull request #300209 from ggailey777/patch-3
[Functions] Update custom handler quickstart to Premium plan
2 parents 7d51423 + 3ce7b25 commit 6b2e6f7

File tree

1 file changed

+20
-11
lines changed

1 file changed

+20
-11
lines changed

articles/azure-functions/create-first-function-vs-code-other.md

Lines changed: 20 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
title: Create a function in Go or Rust using Visual Studio Code - Azure Functions
33
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.
44
ms.topic: quickstart
5-
ms.date: 06/03/2024
5+
ms.date: 05/20/2025
66
ms.devlang: golang
77
# ms.devlang: golang, rust
88
ms.custom: mode-api, vscode-azure-extension-update-complete
@@ -16,7 +16,8 @@ In this article, you use Visual Studio Code to create a [custom handler](functio
1616

1717
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).
1818

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.
2021
2122
## Configure your environment
2223

@@ -291,18 +292,24 @@ In this section, you publish your project to Azure in a function app running Lin
291292

292293
In this section, you create a function app and related resources in your Azure subscription.
293294

294-
1. Choose the Azure icon in the Activity bar. Then in the **Resources** area, select the **+** icon and choose the **Create Function App in Azure** option.
295+
1. In the command palette, enter **Azure Functions: Create function app in Azure...(Advanced)**.
295296

296-
![Create a resource in your Azure subscription](../../includes/media/functions-publish-project-vscode/function-app-create-resource.png)
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 Visual Studio Code.
297298

298-
1. Provide the following information at the prompts:
299+
1. Following the prompts, provide this information:
299300

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 Azure Functions.|
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 select Enter. 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 Linux App Service plan | For Elastic Premium 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 Elastic Premium plan, secret key access to the default host storage remains enabled for Azure Files access. For more information, see [run without Azure Files](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 Application Insights resource for your app. | Choose **Create new Application Insights 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 Microsoft Entra ID authentication. |
306313

307314
The extension shows the status of individual resources as they are being created in Azure in the **Azure: Activity Log** panel.
308315

@@ -312,6 +319,8 @@ In this section, you create a function app and related resources in your Azure s
312319

313320
[!INCLUDE [functions-vs-code-created-resources](../../includes/functions-vs-code-created-resources.md)]
314321

322+
+ 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+
315324
A notification is displayed after your function app is created and the deployment package is applied.
316325
317326
[!INCLUDE [functions-vs-code-create-tip](../../includes/functions-vs-code-create-tip.md)]

0 commit comments

Comments
 (0)