Skip to content

Commit a439e9a

Browse files
authored
Update virtual-machine-scale-sets-configure-rolling-upgrades.md
1 parent 51d7387 commit a439e9a

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

articles/virtual-machine-scale-sets/virtual-machine-scale-sets-configure-rolling-upgrades.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,20 @@ Select the Virtual Machine Scale Set you want to change the upgrade policy for.
5656

5757
:::image type="content" source="../virtual-machine-scale-sets/media/upgrade-policy/rolling-upgrade-policy-portal.png" alt-text="Screenshot showing changing the upgrade policy and enabling MaxSurge in the Azure portal.":::
5858

59+
### [CLI](#tab/cli1)
60+
Update an existing Virtual Machine Scale Set using [az vmss update](/cli/azure/vmss#az-vmss-update).
61+
62+
```azurecli-interactive
63+
az vmss update \
64+
--name myScaleSet \
65+
--resource-group myResourceGroup \
66+
--max-batch-instance-percent 10 \
67+
--max-unhealthy-instance-percent 20 \
68+
--max-unhealthy-upgraded-instance-percent 20 \
69+
--prioritize-unhealthy-instances true \
70+
--pause-time-between-batches PT2S \
71+
--max-surge false
72+
```
5973

6074
### [PowerShell](#tab/powershell1)
6175
Update an existing Virtual Machine Scale Set using [Update-AzVmss](/powershell/module/az.compute/update-azvmss).

0 commit comments

Comments
 (0)