Skip to content

Commit aea7a35

Browse files
committed
Addressing review comments and recommendations
1 parent ac45976 commit aea7a35

File tree

1 file changed

+18
-14
lines changed

1 file changed

+18
-14
lines changed

articles/azure-functions/functions-premium-plan.md

Lines changed: 18 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,10 @@ When you're using the Premium plan, instances of the Azure Functions host are ad
2727

2828
## Billing
2929

30-
Billing for the Premium plan is based on the number of core seconds and memory allocated across instances. This billing differs from the Consumption plan, which is billed per execution and memory consumed. There's no execution charge with the Premium plan. At least one instance must be always allocated per plan. This billing results in a minimum monthly cost per active plan, regardless if the function is active or idle. Keep in mind that all function apps in a Premium plan share allocated instances. To learn more, see the [Azure Functions pricing page](https://azure.microsoft.com/pricing/details/functions/).
30+
Billing for the Premium plan is based on the number of core seconds and memory allocated across instances. This billing differs from the Consumption plan, which is billed per execution and memory consumed. There's no execution charge with the Premium plan. This billing results in a minimum monthly cost per active plan, regardless if the function is active or idle. Keep in mind that all function apps in a Premium plan share allocated instances. To learn more, see the [Azure Functions pricing page](https://azure.microsoft.com/pricing/details/functions/).
31+
32+
> [!NOTE]
33+
> Every premium plan has at least one active (billed) instance at all times.
3134
3235
## Create a Premium plan
3336

@@ -49,12 +52,9 @@ When events begin to trigger the app, they're first routed to the always ready i
4952

5053
### Always ready instances
5154

52-
In the Premium plan, you can have your app always ready on a specified number of instances. Your app will be running continuously on those instances, regardless of load. If load exceeds what your always ready instances can handle, additional instances will be added as necessary, up to your specified maximum.
55+
In the Premium plan, you can have your app always ready on a specified number of instances. Your app runs continuously on those instances, regardless of load. If load exceeds what your always ready instances can handle, additional instances are added as necessary, up to your specified maximum.
5356

54-
This app-level setting also controls your plan's minimum instances. For example, if you have three apps in the same Premium Functions app plan, two of which have always ready set to one, and one of which has always ready set to five, the minimum for your whole plan is five. This also reflects the minimum number of instances your plan will be billed for. The maximum number of always ready instances we support per app is 20.
55-
56-
> [!NOTE]
57-
> Every premium plan has at least one active (billed) instance at all times.
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 set to one and the third has it set to five, the minimum 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.
5858

5959
# [Portal](#tab/portal)
6060

@@ -67,24 +67,24 @@ You can configure the number of always ready instances in the Azure portal by se
6767
You can also configure always ready instances for an app with the Azure CLI.
6868

6969
```azurecli-interactive
70-
az functionapp update -g <resource_group> -n <function_app_name> --set siteConfig.minimumElasticInstanceCount=<desired_always_ready_count>
70+
az functionapp update -g <RESOURCE_GROUP> -n <FUNCTION_APP_NAME> --set siteConfig.minimumElasticInstanceCount=<YOUR_ALWAYS_READY_COUNT>
7171
```
7272

7373
# [Azure PowerShell](#tab/azure-powershell)
7474

7575
You can also configure always ready instances for an app with the Azure PowerShell.
7676

7777
```azurepowershell-interactive
78-
$Resource = Get-AzResource -ResourceGroupName <resource_group> -ResourceName <function_app_name>/config/web -ResourceType Microsoft.Web/sites
79-
$Resource.Properties.minimumElasticInstanceCount = <desired_always_ready_count>
78+
$Resource = Get-AzResource -ResourceGroupName <RESOURCE_GROUP> -ResourceName <FUNCTION_APP_NAME>/config/web -ResourceType Microsoft.Web/sites
79+
$Resource.Properties.minimumElasticInstanceCount = <YOUR_ALWAYS_READY_COUNT>
8080
$Resource | Set-AzResource -Force
8181
```
8282

8383
### Pre-warmed instances
8484

85-
Pre-warmed instances is an advanced setting that provides warmed instances as a buffer during HTTP scale and activation events. Pre-warmed instances continue to buffer until the maximum scale-out limit is reached. The default pre-warmed instance count is 1 and, for most scenarios, this value should remain as 1.
85+
Pre-warmed instances is a setting that provides warmed instances as a buffer during HTTP scale and activation events. Pre-warmed instances continue to buffer until the maximum scale-out limit is reached. The default pre-warmed instance count is 1 and, for most scenarios, this value should remain as 1.
8686

87-
Only for more advanced scenarios like when an app has a long warm-up (like a custom container image) you may consider increasing this buffer. A pre-warmed instance becomes active only after all active instances have been sufficiently used.
87+
Consider a less-common scenario, such as an app running in a custom container. Because custom containers have a long warm-up, you may consider increasing this buffer of pre-warmed instances. A pre-warmed instance becomes active only after all active instances are in use.
8888

8989
You can also define a warmup trigger that is run during the pre-warming process. You can use a warmup trigger to pre-load custom dependencies during the pre-warming process so your functions are ready to start processing requests immediately. To learn more, see [Azure Functions warmup trigger](functions-bindings-warmup.md).
9090

@@ -97,21 +97,25 @@ Consider this example of how always-ready instances and pre-warmed instances wor
9797
3. 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 pre-warmed buffer.
9898
4. This sequence of scaling and pre-warming 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 pre-warmed or activated beyond the maximum.
9999

100+
# [Portal](#tab/portal)
101+
102+
You can't change this setting in the portal, you must instead use the Azure CLI or Azure PowerShell.
103+
100104
# [Azure CLI](#tab/azurecli)
101105

102106
You can modify the number of pre-warmed instances for an app using the Azure CLI.
103107

104108
```azurecli-interactive
105-
az functionapp update -g <resource_group> -n <function_app_name> --set siteConfig.preWarmedInstanceCount=<desired_prewarmed_count>
109+
az functionapp update -g <RESOURCE_GROUP> -n <FUNCTION_APP_NAME> --set siteConfig.preWarmedInstanceCount=<YOUR_PREWARMED_COUNT>
106110
```
107111

108112
# [Azure PowerShell](#tab/azure-powershell)
109113

110114
You can modify the number of pre-warmed instances for an app using the Azure PowerShell.
111115

112116
```azurepowershell-interactive
113-
$Resource = Get-AzResource -ResourceGroupName <resource_group> -ResourceName <function_app_name>/config/web -ResourceType Microsoft.Web/sites
114-
$Resource.Properties.preWarmedInstanceCount = <desired_prewarmed_count>
117+
$Resource = Get-AzResource -ResourceGroupName <RESOURCE_GROUP> -ResourceName <FUNCTION_APP_NAME>/config/web -ResourceType Microsoft.Web/sites
118+
$Resource.Properties.preWarmedInstanceCount = <YOUR_PREWARMED_COUNT>
115119
$Resource | Set-AzResource -Force
116120
```
117121

0 commit comments

Comments
 (0)