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
@@ -95,7 +95,7 @@ After you've verified that the function runs correctly on your local computer, i
95
95
96
96
## Publish the project to Azure
97
97
98
-
Visual Studio can publish your local project to Azure. Before you can publish your project, you must have a function app in your Azure subscription. If you don't already have a function app in Azure, Visual Studio publishing creates one for you the first time you publish your project. In this article, you create a function app and related Azure resources.
98
+
Visual Studio can publish your local project to Azure. Before you can publish your project, you must have a function app in your Azure subscription. If you don't already have a function app in Azure, Visual Studio can help you create one before you publish your project. In this article, you create a function app that runs on Linux in a Flex Consumption plan, which is the recommended plan for event-driven and secure serverless functions.
99
99
100
100
[!INCLUDE [Publish the project to Azure](../../includes/functions-vstools-publish.md)]
101
101
@@ -105,7 +105,7 @@ Visual Studio can publish your local project to Azure. Before you can publish yo
105
105
106
106
1. Under **Functions**, select your new function named **HttpExample**, then in the function page select **Get function URL** and then the **Copy to clipboard icon**.
107
107
108
-
1. In the address bar in your browser, paste the URL you just copied and run the request.
108
+
1. In the address bar in your browser, paste the URL you copied and run the request.
109
109
110
110
The URL that calls your HTTP trigger function is in the following format:
111
111
@@ -119,7 +119,7 @@ Visual Studio can publish your local project to Azure. Before you can publish yo
119
119
120
120
*Resources* in Azure refer to function apps, functions, storage accounts, and so forth. They're grouped into *resource groups*, and you can delete everything in a group by deleting the group.
121
121
122
-
You created Azure resources to complete this quickstart. You may be billed for these resources, depending on your [account status](https://azure.microsoft.com/account/) and [service pricing](https://azure.microsoft.com/pricing/). Other quickstarts in this collection build upon this quickstart. If you plan to work with subsequent quickstarts, tutorials, or with any of the services you've created in this quickstart, don't clean up the resources.
122
+
You created Azure resources to complete this quickstart. You could be billed for these resources, depending on your [account status](https://azure.microsoft.com/account/) and [service pricing](https://azure.microsoft.com/pricing/). Other quickstarts in this collection build upon this quickstart. If you plan to work with subsequent quickstarts, tutorials, or with any of the services you've created in this quickstart, don't clean up the resources.
Copy file name to clipboardExpand all lines: articles/azure-functions/functions-premium-plan.md
+7-7Lines changed: 7 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,7 +3,7 @@ title: Azure Functions Premium plan
3
3
description: Learn about details and configuration options (virtual network, no cold start, unlimited execution duration) for the Azure Functions Premium plan.
@@ -56,21 +56,21 @@ In the Premium plan, you can have your app always ready on a specified number of
56
56
57
57
This app-level setting also controls your plan's minimum instances. For example, consider having three function apps in the same Premium plan. When two of your apps have always-ready instance count set to one, and the third app is set to five, the minimum number for your whole plan is five. This also reflects the minimum number of instances for which your plan is billed. The maximum number of always-ready instances we support per app is 20.
58
58
59
-
# [Portal](#tab/portal)
59
+
####[Portal](#tab/portal)
60
60
61
61
You can configure the number of always ready instances in the Azure portal by selecting your **Function App**, going to the **Platform Features** tab, and selecting the **Scale Out** options. In the function app edit window, always ready instances are specific to that app.
62
62
63
63
:::image type="content" source="media/functions-premium-plan/scale-out.png" alt-text="Screenshot that shows the elastic scale settings in the portal.":::
64
64
65
-
# [Azure CLI](#tab/azurecli)
65
+
####[Azure CLI](#tab/azurecli)
66
66
67
67
You can also configure always ready instances for an app by using the Azure CLI.
68
68
69
69
```azurecli-interactive
70
70
az functionapp update -g <RESOURCE_GROUP> -n <FUNCTION_APP_NAME> --set siteConfig.minimumElasticInstanceCount=<YOUR_ALWAYS_READY_COUNT>
71
71
```
72
72
73
-
# [Azure PowerShell](#tab/azure-powershell)
73
+
####[Azure PowerShell](#tab/azure-powershell)
74
74
75
75
You can also configure always ready instances for an app by using Azure PowerShell.
76
76
@@ -99,19 +99,19 @@ Consider this example that shows how always ready instances and prewarmed instan
99
99
1. As load increases and your app needs more instances to handle HTTP traffic, that prewarmed instance is swapped to an active instance. HTTP load is now routed to all three instances, and a fourth instance is instantly provisioned to fill the prewarmed buffer.
100
100
1. This sequence of scaling and prewarming continues until the maximum instance count for the app is reached or load decreases causing the platform to scale back in after a period. No instances are prewarmed or activated beyond the maximum.
101
101
102
-
# [Portal](#tab/portal)
102
+
####[Portal](#tab/portal)
103
103
104
104
You can't change the prewarmed instance count setting in the portal. You must instead use the Azure CLI or Azure PowerShell.
105
105
106
-
# [Azure CLI](#tab/azurecli)
106
+
####[Azure CLI](#tab/azurecli)
107
107
108
108
You can modify the number of prewarmed instances for an app using the Azure CLI.
109
109
110
110
```azurecli-interactive
111
111
az functionapp update -g <RESOURCE_GROUP> -n <FUNCTION_APP_NAME> --set siteConfig.preWarmedInstanceCount=<YOUR_PREWARMED_COUNT>
112
112
```
113
113
114
-
# [Azure PowerShell](#tab/azure-powershell)
114
+
####[Azure PowerShell](#tab/azure-powershell)
115
115
116
116
You can modify the number of prewarmed instances for an app using the Azure PowerShell.
Copy file name to clipboardExpand all lines: includes/functions-vstools-publish.md
+9-14Lines changed: 9 additions & 14 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,20 +2,18 @@
2
2
author: ggailey777
3
3
ms.service: azure-functions
4
4
ms.topic: include
5
-
ms.date: 01/30/2024
5
+
ms.date: 05/01/2025
6
6
ms.author: glenga
7
7
ms.custom: devdivchpfy22
8
8
---
9
9
10
10
1. In **Solution Explorer**, right-click the project and select **Publish**. In **Target**, select **Azure**, and then select **Next**.
11
11
12
-
:::image type="content" source="media/functions-vstools-publish/functions-vs-publish.png" alt-text="Screenshot of the publish pane.":::
12
+
1. On **Specific target**, select **Azure Function App (Linux)** and then select **Next**.
13
13
14
-
1. On **Specific target**, select **Azure Function App (Windows)**. A function app that runs on Windows is created. Select **Next**.
14
+
The Flex Consumption plan requires Linux.
15
15
16
-
:::image type="content" source="media/functions-vstools-publish/functions-vs-specific-target.png" alt-text="Screenshot of publish pane that has a specific target.":::
17
-
18
-
1. On **Functions instance**, select **Create a new Azure Function**.
16
+
1. On **Functions instance**, select **Create new**.
19
17
20
18
:::image type="content" source="media/functions-vstools-publish/functions-vs-functions-instance.png" alt-text="Screenshot that shows Create a new function app instance.":::
|**Name**| Globally unique name | Name that uniquely identifies your new function app. Accept this name or enter a new name. Valid characters are: `a-z`, `0-9`, and `-`. |
27
-
|**Subscription**|Your subscription | The Azure subscription to use. Accept this subscription or select a new one from the dropdown list. |
25
+
|**Subscription name**|Name of your subscription | The Azure subscription to use. Accept this subscription or select a new one from the dropdown list. |
28
26
|**[Resource group](../articles/azure-resource-manager/management/overview.md)**| Name of your resource group | The resource group in which you want to create your function app. Select **New** to create a new resource group. You can also choose to use an existing resource group from the dropdown list. |
29
-
|**[Plan Type](../articles/azure-functions/functions-scale.md)**| Consumption | When you publish your project to a function app that runs in a [Consumption plan](../articles/azure-functions/consumption-plan.md), you pay only for executions of your functions app. Other hosting plans incur higher costs. |
30
-
|**Location**| Location of the app service | Select a **Location** in an [Azure region](https://azure.microsoft.com/regions/) near you or other services your functions access. |
27
+
|**[Plan Type](../articles/azure-functions/functions-scale.md)**| Flex Consumption | When you publish your project to a function app that runs in a [Flex Consumption plan](../articles/azure-functions/flex-consumption-plan.md), you might pay only for executions of your functions app. Other hosting plans can incur higher costs. |
28
+
|**Location**| Location of the app service | Select a **Location** in a [Azure region supported by the Flex Consumption plan](../articles/azure-functions/flex-consumption-how-to.md#view-currently-supported-regions). |
29
+
|**Instance memory size**| 2048 | The [memory size of the virtual machine instances](../articles/azure-functions/flex-consumption-plan.md#instance-memory) in which the app runs, which is unique to the Flex Consumption plan. |
31
30
|**[Azure Storage](../articles/azure-functions/storage-considerations.md)**| General-purpose storage account | An Azure storage account is required by the Functions runtime. Select **New** to configure a general-purpose storage account. You can also choose to use an existing account that meets the [storage account requirements](../articles/azure-functions/storage-considerations.md#storage-account-requirements). |
32
31
|**[Application Insights](../articles/azure-functions/functions-monitoring.md)**| Application Insights instance | You should enable Azure Application Insights integration for your function app. Select **New** to create a new instance, either in a new or in an existing Log Analytics workspace. You can also choose to use an existing instance. |
33
32
34
33
:::image type="content" source="./media/functions-vstools-publish/functions-vs-function-app.png" alt-text="Screenshot of the Create App Service dialog.":::
35
34
36
35
1. Select **Create** to create a function app and its related resources in Azure. The status of resource creation is shown in the lower-left corner of the window.
37
36
38
-
1. On **Functions instance**, make sure that the **Run from package file** checkbox is selected. Your function app is deployed by using [Zip Deploy](../articles/azure-functions/functions-deployment-technologies.md#zip-deploy) with [Run-From-Package](../articles/azure-functions/run-functions-from-deployment-package.md) mode enabled. Zip Deploy is the recommended deployment method for your functions project for better performance.
39
-
40
-
:::image type="content" source="media/functions-vstools-publish/functions-vs-publish-profile-step-4.png" alt-text="Screenshot of the Finish profile creation pane.":::
41
-
42
-
1. Select **Finish**, and on the **Publish** pane, select **Publish** to deploy the package that contains your project files to your new function app in Azure.
37
+
1. Select **Finish**, and then on the **Publish** tab select **Publish** to deploy the package that contains your project files to your new function app in Azure.
43
38
44
39
When deployment is completed, the root URL of the function app in Azure is shown on the **Publish** tab.
0 commit comments