Skip to content

Commit 622dd89

Browse files
Merge pull request #278512 from mimckitt/bug-updates
updates
2 parents e0a763c + 346b81c commit 622dd89

File tree

3 files changed

+14
-6
lines changed

3 files changed

+14
-6
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ The upgrade policy for a Virtual Machine Scale Set can be changed at any point i
2323
Select the Virtual Machine Scale Set you want to change the upgrade policy for. In the menu under **Settings**, select **Upgrade Policy** and from the drop-down menu, select the upgrade policy you want to enable.
2424

2525
> [!NOTE]
26-
> Setting or changing the upgrade policy to automatic in the Azure Portal on Virtual Machine Scale Sets with Flexible Orchestration is not yet available. To set or change the upgrade policy to automatic, use CLI, PowerShell, ARM Template, or any other SDK.
26+
> Setting or changing the upgrade policy to automatic using the Azure Portal on Virtual Machine Scale Sets with Flexible Orchestration is not yet available. To change the upgrade policy to automatic, use CLI, PowerShell, ARM Template, or any other SDK.
2727
2828
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.
2929

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,6 @@ ms.custom: upgradepolicy, devx-track-azurepowershell
2020
>
2121
> Previews are made available to you on the condition that you agree to the [supplemental terms of use](https://azure.microsoft.com/support/legal/preview-supplemental-terms/). Some aspects of these features may change prior to general availability (GA).
2222
23-
24-
2523
Rolling upgrade policy is the safest way to apply updates to instances in a Virtual Machine Scale Set. Performing updates in batches ensures that your scale set maintains a set number of instances available to take traffic, meaning you don't need to take down your entire workload to make a change.
2624

2725
Rolling upgrade policy is best suited for production workloads.
@@ -79,12 +77,14 @@ Update an existing Virtual Machine Scale Set using [az vmss update](/cli/azure/v
7977
az vmss update \
8078
--name myScaleSet \
8179
--resource-group myResourceGroup \
80+
--set upgradePolicy.mode=Rolling \
8281
--max-batch-instance-percent 10 \
8382
--max-unhealthy-instance-percent 20 \
8483
--max-unhealthy-upgraded-instance-percent 20 \
8584
--prioritize-unhealthy-instances true \
8685
--pause-time-between-batches PT2S \
8786
--max-surge true
87+
8888
```
8989

9090
### [PowerShell](#tab/powershell1)

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

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,13 +23,17 @@ The upgrade policy can be set during scale set creation or changed post deployme
2323
During the Virtual Machine Scale Set creation in the Azure portal, under the **Management** tab, set the upgrade policy to **Rolling**, **Automatic**, or **Manual**.
2424

2525
> [!NOTE]
26-
> Setting or changing the upgrade policy to automatic in the Azure Portal on Virtual Machine Scale Sets with Flexible Orchestration is not yet available. To set or change the upgrade policy to automatic, use CLI, PowerShell, ARM Template, or any other SDK.
26+
> Setting the upgrade policy to automatic during scale set creation using the Azure Portal, Azure CLI or Azure PowerShell on Virtual Machine Scale Sets with Flexible Orchestration is not yet available. To set the upgrade policy to automatic, update the upgrade policy after scale set deployment. See [changing the upgrade policy on a Virtual Machine Scale Set](virtual-machine-scale-sets-change-upgrade-policy.md).
2727
2828
If using a rolling upgrade policy, see [configure rolling upgrade policy](virtual-machine-scale-sets-configure-rolling-upgrades.md) for configuration settings and suggestions.
2929

3030
:::image type="content" source="../virtual-machine-scale-sets/media/upgrade-policy/pick-upgrade-policy.png" alt-text="Screenshot showing deploying a scale set and enabling MaxSurge.":::
3131

3232
### [CLI](#tab/cli)
33+
34+
> [!NOTE]
35+
> Setting the upgrade policy to automatic during scale set creation using the Azure Portal, Azure CLI or Azure PowerShell on Virtual Machine Scale Sets with Flexible Orchestration is not yet available. To set the upgrade policy to automatic, update the upgrade policy after scale set deployment. See [changing the upgrade policy on a Virtual Machine Scale Set](virtual-machine-scale-sets-change-upgrade-policy.md).
36+
3337
When creating a new scale set using Azure CLI, use [az vmss create](/cli/azure/vmss#az-vmss-create) and the `-upgrade-policy-mode` to set the upgrade policy mode.
3438

3539
If using a rolling upgrade policy, see [configure rolling upgrade policy](virtual-machine-scale-sets-configure-rolling-upgrades.md) for configuration settings and suggestions.
@@ -41,13 +45,17 @@ az vmss create \
4145
--orchestration-mode Flexible \
4246
--image Ubuntu2204 \
4347
--lb myLoadBalancer \
44-
--upgrade-policy-mode automatic \
48+
--upgrade-policy-mode manual \
4549
--instance-count 5 \
4650
--admin-username azureuser \
4751
--generate-ssh-keys
4852
```
4953

5054
### [PowerShell](#tab/powershell)
55+
56+
> [!NOTE]
57+
> Setting the upgrade policy to automatic during scale set creation using the Azure Portal, CLI or PowerShell on Virtual Machine Scale Sets with Flexible Orchestration is not yet available. To set the upgrade policy to automatic, update the upgrade policy after scale set deployment. See [changing the upgrade policy on a Virtual Machine Scale Set](virtual-machine-scale-sets-change-upgrade-policy.md).
58+
5159
When creating a new scale set using Azure PowerShell, use [New-AzVmss](/powershell/module/az.compute/new-azvmss) and the `-UpgradePolicyMode` parameter to set the upgrade policy mode.
5260

5361
If using a rolling upgrade policy, see [configure rolling upgrade policy](virtual-machine-scale-sets-configure-rolling-upgrades.md) for configuration settings and suggestions.
@@ -73,7 +81,7 @@ If using a rolling upgrade policy, see [configure rolling upgrade policy](virtua
7381
```ARM
7482
"properties": {
7583
"upgradePolicy": {
76-
"mode": "Automatic",
84+
"mode": "manual",
7785
}
7886
}
7987
```

0 commit comments

Comments
 (0)