Skip to content

Commit 7ec79f6

Browse files
Merge pull request #2655 from mimckitt/patch-79
Update container-instances-standby-pool-create.md
2 parents 102c0ce + ebc1195 commit 7ec79f6

File tree

1 file changed

+43
-30
lines changed

1 file changed

+43
-30
lines changed

articles/container-instances/container-instances-standby-pool-create.md

Lines changed: 43 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -206,24 +206,28 @@ Create a standby pool and associate it with a container group profile using [az
206206

207207
```azurecli-interactive
208208
az standby-container-group-pool create \
209-
--resource-group myResourceGroup \
210-
--location WestCentralUS \
211-
--name myStandbyPool \
212-
--max-ready-capacity 20 \
213-
--refill-policy always \
214-
--container-profile-id "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.ContainerInstance/containerGroupProfiles/mycontainergroupprofile"
209+
--resource-group myResourceGroup \
210+
--location westcentralus \
211+
--name myStandbyPool \
212+
--max-ready-capacity 20 \
213+
--refill-policy always \
214+
--container-group-profile-id "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.ContainerInstance/containerGroupProfiles/mycontainergroupprofile" \
215+
--container-group-profile-revision 1
216+
215217
```
216218
### [PowerShell](#tab/powershell)
217219
Create a standby pool and associate it with a container group profile using [New-AzStandbyContainerGroupPool](/powershell/module/az.standbypool/new-AzStandbyContainerGroupPool).
218220

219221
```azurepowershell-interactive
220222
New-AzStandbyContainerGroupPool `
221-
-ResourceGroup myResourceGroup `
222-
-Location "WestCentralUS" `
223+
-ResourceGroupName myResourceGroup `
224+
-Location "westcentralus" `
223225
-Name myStandbyPool `
224226
-MaxReadyCapacity 20 `
225-
-RefillPolicy always `
226-
-ContainerProfileId "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.ContainerInstance/containerGroupProfiles/mycontainergroupprofile"
227+
-RefillPolicy "always" `
228+
-ContainerGroupProfileId "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.ContainerInstance/containerGroupProfiles/mycontainergroupprofile" `
229+
-ContainerGroupProfileRevision 1
230+
227231
```
228232

229233
### [ARM template](#tab/template)
@@ -236,42 +240,51 @@ Create a standby pool and associate it with a container group profile. Create a
236240
"contentVersion": "1.0.0.0",
237241
"parameters": {
238242
"location": {
239-
"type": "string",
240-
"defaultValue": "West Central US"
243+
"type": "string",
244+
"defaultValue": "West Central US"
241245
},
242246
"name": {
243-
"type": "string",
244-
"defaultValue": "myStandbyPool"
247+
"type": "string",
248+
"defaultValue": "myStandbyPool"
249+
},
250+
"maxReadyCapacity": {
251+
"type": "int",
252+
"defaultValue": 10
245253
},
246-
"maxReadyCapacity" : {
247-
"type": "int",
248-
"defaultValue": 10
254+
"refillPolicy": {
255+
"type": "string",
256+
"defaultValue": "always"
249257
},
250-
"refillPolicy" : {
251-
"type": "string",
252-
"defaultValue": "always"
258+
"containerGroupProfileId": {
259+
"type": "string",
260+
"defaultValue": "/subscriptions/{SubscriptionID}/resourceGroups/myResourceGroup/providers/Microsoft.ContainerInstance/containerGroupProfiles/mycontainergroupprofile"
253261
},
254-
"containerGroupProfile" : {
255-
"type": "string",
256-
"defaultValue": "/subscriptions/{SubscriptionID}/resourceGroups/myResourceGroup/providers/Microsoft.ContainerInstance/containerGroupProfiles/mycontainergroupprofile"
262+
"containerGroupProfileRevision": {
263+
"type": "int",
264+
"defaultValue": 1
257265
}
258266
},
259-
"resources": [
267+
"resources": [
260268
{
261269
"type": "Microsoft.StandbyPool/standbyContainerGroupPools",
262270
"apiVersion": "2025-03-01",
263271
"name": "[parameters('name')]",
264272
"location": "[parameters('location')]",
265273
"properties": {
266-
"elasticityProfile": {
267-
"maxReadyCapacity": "[parameters('maxReadyCapacity')]",
268-
"refillPolicy": "[parameters('refillPolicy')]"
269-
},
270-
"containerGroupProfile": "[parameters('containerGroupProfile')]"
274+
"elasticityProfile": {
275+
"maxReadyCapacity": "[parameters('maxReadyCapacity')]",
276+
"refillPolicy": "[parameters('refillPolicy')]"
277+
},
278+
"containerGroupProperties": {
279+
"containerGroupProfile": {
280+
"id": "[parameters('containerGroupProfileId')]",
281+
"revision": "[parameters('containerGroupProfileRevision')]"
282+
}
283+
}
271284
}
272285
}
273286
]
274-
}
287+
}
275288

276289
```
277290

0 commit comments

Comments
 (0)