Skip to content

Commit b76856a

Browse files
authored
Add example snippets
1 parent 5efefc1 commit b76856a

File tree

1 file changed

+28
-2
lines changed

1 file changed

+28
-2
lines changed

articles/azure-functions/functions-infrastructure-as-code.md

Lines changed: 28 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ title: Automate function app resource deployment to Azure
33
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.
44
ms.assetid: d20743e3-aab6-442c-a836-9bcea09bfd32
55
ms.topic: conceptual
6-
ms.date: 07/16/2024
6+
ms.date: 08/22/2024
77
ms.custom: fasttrack-edit, devx-track-bicep, devx-track-arm-template, linux-related-content
88
zone_pivot_groups: functions-hosting-plan
99
---
@@ -1834,7 +1834,33 @@ These application settings are required for container deployments:
18341834

18351835
Keep these considerations in mind when working with site and application settings using Bicep files or ARM templates:
18361836
::: 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+
```
18381864
::: zone-end
18391865
::: zone pivot="consumption-plan,premium-plan,dedicated-plan"
18401866
+ 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

Comments
 (0)