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/flex-consumption-how-to.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,7 @@
1
1
---
2
2
title: Create and manage function apps in a Flex Consumption plan
3
3
description: "Learn how to create function apps hosted in the Flex Consumption plan in Azure Functions and how to modify specific settings for an existing function app."
@@ -494,7 +494,7 @@ az functionapp scale config always-ready set --resource-group <RESOURCE_GROUP> -
494
494
To remove always ready instances, use the [`az functionapp scale config always-ready delete`](/cli/azure/functionapp/scale/config/always-ready#az-functionapp-scale-config-always-ready-delete) command, as in this example that removes all always ready instances from both the HTTP triggers group and also a function named `hello_world`:
description: Running your function code in the Azure Functions Flex Consumption plan provides virtual network integration, dynamic scale (to zero), and reduced cold starts.
4
4
ms.service: azure-functions
5
5
ms.topic: concept-article
6
-
ms.date: 07/26/2024
6
+
ms.date: 08/22/2024
7
7
ms.custom: references_regions, build-2024
8
8
# Customer intent: As a developer, I want to understand the benefits of using the Flex Consumption plan so I can get the scalability benefits of Azure Functions without having to pay for resources I don't need.
9
9
---
@@ -64,7 +64,15 @@ Concurrency is a key factor that determines how Flex Consumption function apps s
64
64
65
65
This _per-function scaling_ behavior is a part of the hosting platform, so you don't need to configure your app or change the code. For more information, see [Per-function scaling](event-driven-scaling.md#per-function-scaling) in the Event-driven scaling article.
66
66
67
-
In per function scaling, HTTP, Blob (Event Grid), and Durable triggers are special cases. All HTTP triggered functions in the app are grouped and scale together in the same instances, and all Durable triggered functions (Orchestration, Activity, or Entity triggers) are grouped and scale together in the same instances, and all Blob (Event Grid) functions are grouped and scale together in the same instances. All other functions in the app are scaled individually into their own instances.
67
+
In per-function scaling, decisions are made for certain function triggers based on group aggregations. This table shows the defined set of function scale groups:
68
+
69
+
| Scale groups | Triggers in group | Settings value |
All other functions in the app are scaled individually in their own set of instances, which are referenced using the convention `function:<NAMED_FUNCTION>`.
68
76
69
77
## Always ready instances
70
78
@@ -129,7 +137,7 @@ In Flex Consumption, many of the standard application settings and site configur
129
137
Keep these other considerations in mind when using Flex Consumption plan during the current preview:
130
138
131
139
+**VNet Integration** Ensure that the `Microsoft.App` Azure resource provider is enabled for your subscription by [following these instructions](/azure/azure-resource-manager/management/resource-providers-and-types#register-resource-provider). The subnet delegation required by Flex Consumption apps is `Microsoft.App/environments`.
132
-
+**Triggers**: All triggers are fully supported except for Kafka, Azure SQL, and SignalR triggers. The Blob storage trigger only supports the [Event Grid source](./functions-event-grid-blob-trigger.md). Non-C# function apps must use version `[4.0.0, 5.0.0)` of the [extension bundle](./functions-bindings-register.md#extension-bundles), or a later version.
140
+
+**Triggers**: All triggers are fully supported except for Kafka and Azure SQL triggers. The Blob storage trigger only supports the [Event Grid source](./functions-event-grid-blob-trigger.md). Non-C# function apps must use version `[4.0.0, 5.0.0)` of the [extension bundle](./functions-bindings-register.md#extension-bundles), or a later version.
133
141
+**Regions**:
134
142
+ Not all regions are currently supported. To learn more, see [View currently supported regions](flex-consumption-how-to.md#view-currently-supported-regions).
135
143
+ There is a temporary limitation where App Service quota limits for creating new apps are also being applied to Flex Consumption apps. If you see the following error "This region has quota of 0 instances for your subscription. Try selecting different region or SKU." please raise a support ticket so that your app creation can be unblocked.
Copy file name to clipboardExpand all lines: articles/azure-functions/functions-infrastructure-as-code.md
+36-5Lines changed: 36 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,7 +3,7 @@ title: Automate function app resource deployment to Azure
3
3
description: Learn how to build, validate, and use a Bicep file or an Azure Resource Manager template to deploy your function app and related Azure resources.
The Flex Consumption plan also supports these application settings:
1696
1698
@@ -1831,7 +1833,36 @@ These application settings are required for container deployments:
1831
1833
::: zone-end
1832
1834
1833
1835
Keep these considerations in mind when working with site and application settings using Bicep files or ARM templates:
1834
-
::: zone pivot="consumption-plan,premium-plan,dedicated-plan"
1836
+
::: zone pivot="flex-consumption-plan"
1837
+
+ The optional `alwaysReady` setting contains an array of one or more `{name,instanceCount}` objects, with one for each [per-function scale group](flex-consumption-plan.md#per-function-scaling). These are the scale groups being used to make always-ready scale decisions. This example sets always-ready counts for both the `http` group and a single function named `helloworld`, which is of a non-grouped trigger type:
1838
+
### [Bicep](#tab/bicep)
1839
+
```bicep
1840
+
alwaysReady: [
1841
+
{
1842
+
name: 'http'
1843
+
instanceCount: 2
1844
+
}
1845
+
{
1846
+
name: 'function:helloworld'
1847
+
instanceCount: 1
1848
+
}
1849
+
]
1850
+
```
1851
+
### [ARM template](#tab/json)
1852
+
```json
1853
+
"alwaysReady": [
1854
+
{
1855
+
"name": "http",
1856
+
"instanceCount": 2
1857
+
},
1858
+
{
1859
+
"name": "function:helloworld",
1860
+
"instanceCount": 1
1861
+
}
1862
+
]
1863
+
```
1864
+
::: zone-end
1865
+
::: zone pivot="consumption-plan,premium-plan,dedicated-plan"
1835
1866
+ There are important considerations for when you should set `WEBSITE_CONTENTSHARE` in an automated deployment. For detailed guidance, see the [`WEBSITE_CONTENTSHARE`](functions-app-settings.md#website_contentshare) reference.
1836
1867
::: zone-end
1837
1868
::: zone pivot="container-apps,azure-arc,premium-plan,dedicated-plan"
0 commit comments