Skip to content

Commit fbdbfd1

Browse files
authored
Update virtual-machine-scale-sets-change-upgrade-policy.md
1 parent a439e9a commit fbdbfd1

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

articles/virtual-machine-scale-sets/virtual-machine-scale-sets-change-upgrade-policy.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,14 @@ If using a rolling upgrade policy, see [configure rolling upgrade policy](virtua
2626

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

29+
### [CLI](#tab/cli)
30+
Update an existing Virtual Machine Scale Set using [az vmss update](/cli/azure/vmss#az-vmss-update) and the `--set` parameter.
31+
32+
If using a rolling upgrade policy, see [configure rolling upgrade policy](virtual-machine-scale-sets-configure-rolling-upgrades.md) for more configuration options and suggestions.
33+
34+
```azurecli-interactive
35+
az vmss update --name myScaleSet --resource-group myResourceGroup --set upgradePolicy.mode=manual
36+
```
2937

3038
### [PowerShell](#tab/powershell)
3139
Update an existing Virtual Machine Scale Set using [Update-AzVmss](/powershell/module/az.compute/update-azvmss) and the `-UpgradePolicyMode` to set the upgrade policy mode.

0 commit comments

Comments
 (0)