Skip to content

Commit 1e6c480

Browse files
(Azure CXP) resolves MicrosoftDocs/azure-docs#54586
Updated the code snippet for az vmss update from --automatic-repairs-period to --automatic-repairs-grace-period based on this document https://docs.microsoft.com/en-us/cli/azure/vmss?view=azure-cli-latest#az-vmss-create
1 parent f24e3a7 commit 1e6c480

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

articles/virtual-machine-scale-sets/virtual-machine-scale-sets-automatic-instance-repairs.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ az vmss create \
148148
--generate-ssh-keys \
149149
--load-balancer <existingLoadBalancer> \
150150
--health-probe <existingHealthProbeUnderLoaderBalancer> \
151-
--automatic-repairs-period 30
151+
--automatic-repairs-grace-period 30
152152
```
153153

154154
The above example uses an existing load balancer and health probe for monitoring application health status of instances. If you prefer to use an application health extension for monitoring instead, you can create a scale set, configure the application health extension and then enable the automatic instance repairs policy using the *az vmss update*, as explained in the next section.
@@ -211,7 +211,7 @@ az vmss update \
211211
--resource-group <myResourceGroup> \
212212
--name <myVMScaleSet> \
213213
--enable-automatic-repairs true \
214-
--automatic-repairs-period 30
214+
--automatic-repairs-grace-period 30
215215
```
216216

217217
## Viewing and updating the service state of automatic instance repairs policy

0 commit comments

Comments
 (0)