Skip to content

Commit 1cb928a

Browse files
committed
update
1 parent d7c3a0f commit 1cb928a

File tree

1 file changed

+15
-6
lines changed

1 file changed

+15
-6
lines changed

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

Lines changed: 15 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -454,6 +454,8 @@ resource hostingPlan 'Microsoft.Web/serverfarms@2022-03-01' = {
454454

455455
---
456456

457+
***jgao: properties/name is read-only value now.
458+
457459
#### Linux
458460

459461
To run your app on Linux, you must also set the property `"reserved": true` for the `serverfarms` resource:
@@ -1463,9 +1465,12 @@ Both sites and plans must reference the custom location through an `extendedLoca
14631465
# [Bicep](#tab/bicep)
14641466

14651467
```bicep
1466-
{
1467-
extendedLocation: {
1468-
name: customLocationId
1468+
resource hostingPlan 'Microsoft.Web/serverfarms@2022-03-01' = {
1469+
...
1470+
{
1471+
extendedLocation: {
1472+
name: customLocationId
1473+
}
14691474
}
14701475
}
14711476
```
@@ -1474,9 +1479,13 @@ Both sites and plans must reference the custom location through an `extendedLoca
14741479

14751480
```json
14761481
{
1477-
"extendedLocation": {
1478-
"name": "[parameters('customLocationId')]"
1479-
},
1482+
"type": "Microsoft.Web/serverfarms",
1483+
...
1484+
{
1485+
"extendedLocation": {
1486+
"name": "[parameters('customLocationId')]"
1487+
},
1488+
}
14801489
}
14811490
```
14821491

0 commit comments

Comments
 (0)