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/functions-infrastructure-as-code.md
+28-2Lines changed: 28 additions & 2 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.
@@ -1834,7 +1834,33 @@ These application settings are required for container deployments:
1834
1834
1835
1835
Keep these considerations in mind when working with site and application settings using Bicep files or ARM templates:
1836
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. The values assigned to `name` and `instanceCount` are the scale group name and always ready instance count, respectively.
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 function named `helloworld`, which is of a non-gouped 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
+
```
1838
1864
::: zone-end
1839
1865
::: zone pivot="consumption-plan,premium-plan,dedicated-plan"
1840
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.
0 commit comments