Skip to content

Commit 5e98741

Browse files
authored
Merge pull request #105548 from mike-urnun-msft/patch-116
(Azure CXP) fixes sample
2 parents 3fb0bd9 + 003dfb6 commit 5e98741

File tree

1 file changed

+13
-5
lines changed

1 file changed

+13
-5
lines changed

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

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -305,17 +305,25 @@ The Premium plan offers the same scaling as the Consumption plan but includes de
305305

306306
### Create a Premium plan
307307

308-
A Premium plan is a special type of "serverfarm" resource. You can specify it by using either `EP1`, `EP2`, or `EP3` for the `sku` property value.
308+
A Premium plan is a special type of "serverfarm" resource. You can specify it by using either `EP1`, `EP2`, or `EP3` for the `Name` property value in the `sku` [description object](https://docs.microsoft.com/azure/templates/microsoft.web/2018-02-01/serverfarms#skudescription-object).
309309

310310
```json
311311
{
312312
"type": "Microsoft.Web/serverfarms",
313-
"apiVersion": "2015-04-01",
314-
"name": "[variables('hostingPlanName')]",
313+
"apiVersion": "2018-02-01",
314+
"name": "[parameters('hostingPlanName')]",
315315
"location": "[resourceGroup().location]",
316316
"properties": {
317-
"name": "[variables('hostingPlanName')]",
318-
"sku": "EP1"
317+
"name": "[parameters('hostingPlanName')]",
318+
"workerSize": "[parameters('workerSize')]",
319+
"workerSizeId": "[parameters('workerSizeId')]",
320+
"numberOfWorkers": "[parameters('numberOfWorkers')]",
321+
"hostingEnvironment": "[parameters('hostingEnvironment')]",
322+
"maximumElasticWorkerCount": "20"
323+
},
324+
"sku": {
325+
"Tier": "ElasticPremium",
326+
"Name": "EP1"
319327
}
320328
}
321329
```

0 commit comments

Comments
 (0)