Skip to content

Commit 72f8fd7

Browse files
Merge pull request #278477 from mimckitt/reverting-changes
Adding Upgrade Policy Changes back
2 parents f597e30 + 81af7f9 commit 72f8fd7

7 files changed

+78
-58
lines changed

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

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,30 @@
11
---
2-
title: Change the upgrade policy on Virtual Machine Scale Sets
2+
title: Change the upgrade policy on Virtual Machine Scale Sets (Preview)
33
description: Learn how to change the upgrade policy on Virtual Machine Scale Sets
44
author: mimckitt
55
ms.author: mimckitt
66
ms.topic: how-to
77
ms.service: virtual-machine-scale-sets
8-
ms.date: 06/14/2024
8+
ms.date: 6/6/2024
99
ms.reviewer: ju-shim
1010
ms.custom: upgradepolicy
1111
---
12-
# Change the upgrade policy on Virtual Machine Scale Sets
12+
# Change the upgrade policy on Virtual Machine Scale Sets (Preview)
1313

1414
> [!NOTE]
15-
> Automatic, manual and rolling upgrade policy is available for Virtual Machine Scale sets with Uniform Orchestration.
15+
> Automatic, manual and rolling upgrade policy for Virtual Machine Scale Sets with Uniform Orchestration are in general availability (GA) .
1616
>
17-
>**Only manual upgrade policy is available for Virtual Machine scale Sets with Flexible Orchestration. Manual upgrade policy for Virtual Machine Scale Sets with Flexible Orchestration is currently in preview.**. 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).
17+
>**Automatic, manual and rolling upgrade policy for Virtual Machine Scale Sets with Flexible Orchestration are currently in preview.** 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).
1818
1919
The upgrade policy for a Virtual Machine Scale Set can be changed at any point in time. Depending on your scenario, you may want to use a particular upgrade policy when setting up and developing your workload and once you're ready to move to production, change it to another upgrade policy mode.
2020

2121
### [Portal](#tab/portal)
2222

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

25+
> [!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.
27+
2528
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.
2629

2730
:::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.":::
@@ -35,7 +38,7 @@ If using a rolling upgrade policy, see [configure rolling upgrade policy](virtua
3538
az vmss update \
3639
--name myScaleSet \
3740
--resource-group myResourceGroup \
38-
--set upgradePolicy.mode=manual
41+
--set upgradePolicy.mode=Automatic
3942
```
4043

4144
### [PowerShell](#tab/powershell)
@@ -63,7 +66,7 @@ If using a rolling upgrade policy, see [configure rolling upgrade policy](virtua
6366
```ARM
6467
"properties": {
6568
"upgradePolicy": {
66-
"mode": "manual",
69+
"mode": "automatic",
6770
}
6871
}
6972
```

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

Lines changed: 31 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,52 @@
11
---
2-
title: Configure rolling upgrades on Virtual Machine Scale Sets
2+
title: Configure rolling upgrades on Virtual Machine Scale Sets (Preview)
33
description: Learn about how to configure rolling upgrades on Virtual Machine Scale Sets.
44
author: mimckitt
55
ms.author: mimckitt
66
ms.topic: how-to
77
ms.service: virtual-machine-scale-sets
8-
ms.date: 06/14/2024
8+
ms.date: 6/14/2024
99
ms.reviewer: ju-shim
1010
ms.custom: upgradepolicy, devx-track-azurepowershell
1111
---
12-
# Configure rolling upgrades on Virtual Machine Scale Sets
12+
# Configure rolling upgrades on Virtual Machine Scale Sets (Preview)
1313

1414
> [!NOTE]
15-
> Rolling upgrade policy is only available for Virtual Machine Scale Sets with Uniform Orchestration.
15+
> Rolling upgrade policy for Virtual Machine Scale sets with Uniform Orchestration is in general availability (GA) .
16+
>
17+
> **Rolling upgrade policy for Virtual Machine scale Sets with Flexible Orchestration is currently in preview.**
18+
>
19+
> **MaxSurge for Virtual Machine Scale Sets with Flexible Orchestration and Uniform Orchestration is currently in preview.**
20+
>
21+
> 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).
22+
23+
1624

1725
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.
1826

1927
Rolling upgrade policy is best suited for production workloads.
2028

29+
## Prerequisites
30+
31+
Before configuring a rolling upgrade policy on a Virtual Machine Scale Set with Flexible Orchestration or enabling MaxSurge on either Flexible or Uniform Orchestration deployments, register the feature providers to your subscription.
32+
33+
## Feature Registration
34+
35+
```azurepowershell-interactive
36+
Register-AzProviderFeature -FeatureName VMSSFlexRollingUpgrade -ProviderNameSpace Microsoft.Compute
37+
38+
Register-AzProviderFeature -FeatureName MaxSurgeRollingUpgrade -ProviderNamespace Microsoft.Compute
39+
```
40+
2141

2242
## Requirements
2343

24-
- If using a rolling upgrade policy, the scale set must have a [health probe](../load-balancer/load-balancer-custom-probe-overview.md) or use the [Application Health Extension](virtual-machine-scale-sets-health-extension.md) to monitor application health.
44+
- When using a rolling upgrade policy on Virtual Machine Scale Sets with Flexible Orchestration, the scale set must also use the [Application Health Extension](virtual-machine-scale-sets-health-extension.md) to monitor application health.
2545

26-
- If using rolling upgrades with MaxSurge, new VMs are created using the latest scale set model to replace VMs using the old scale set model. These newly created VMs have new instance Ids and IP addresses. Ensure you have enough quota and address space in your subnet to accommodate these new VMs before enabling MaxSurge. For more information on quotas and limits, see [Azure subscription and service limits](../azure-resource-manager/management/azure-subscription-service-limits.md).
46+
- When using a rolling upgrade policy on Virtual Machine Scale Sets with Uniform Orchestration, the scale set must also have a [health probe](../load-balancer/load-balancer-custom-probe-overview.md) or use the [Application Health Extension](virtual-machine-scale-sets-health-extension.md) to monitor application health.
47+
48+
- When using rolling upgrades with MaxSurge, new VMs are created using the latest scale set model to replace VMs using the old scale set model. These newly created VMs have new instance Ids and IP addresses. Ensure you have enough quota and address space in your subnet to accommodate these new VMs before enabling MaxSurge. For more information on quotas and limits, see [Azure subscription and service limits](../azure-resource-manager/management/azure-subscription-service-limits.md).
2749

28-
>[!IMPORTANT]
29-
> MaxSurge is currently in preview for Virtual Machine Scale Sets. To use this preview feature, register the provider feature using Azure Cloud Shell.
30-
>
31-
> `Register-AzProviderFeature -FeatureName MaxSurgeRollingUpgrade -ProviderNamespace Microsoft.Compute`
32-
>
33-
>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).
3450

3551
## Concepts
3652

@@ -43,12 +59,12 @@ Rolling upgrade policy is best suited for production workloads.
4359
| **Max unhealthy upgrade %**| Specifies the total number of instances allowed to be marked as unhealthy after being upgraded. <br><br>Example: A max unhealthy upgrade % of 20 means if you have a scale set of 10 instances and more than two instances in the entire scale set report back as unhealthy after being upgraded, the rolling upgrade is canceled. <br><br>Max unhealthy upgrade % is an important setting because it allows the scale set to catch unstable or poor updates before they roll out to the entire scale set. |
4460
|**Prioritize unhealthy instances** | Tells the scale set to upgrade instances marked as unhealthy before upgrading instances marked as healthy. <br><br>Example: If some instances in your scale set that show as failed or unhealthy when a rolling upgrade begins, the scale set updates those instances first. |
4561
| **Enable cross-zone upgrade** | Allows the scale set to ignore Availability Zone boundaries when determining batches. |
46-
| **MaxSurge** | MaxSurge is currently in preview for Virtual Machine Scale Sets Uniform Orchestration. To use this preview feature, register the provider feature using `Register-AzProviderFeature -FeatureName MaxSurgeRollingUpgrade -ProviderNamespace Microsoft.Compute`.<br><br> With MaxSurge enabled, new instances are created in batches using the latest scale model. Once the batch of new instances are successfully created and marked as healthy, they begin taking traffic. The scale set then deletes instances in batches matching the old scale set model. This continues until all instances are brought up-to-date. rolling upgrades with MaxSurge can help improve service uptime during upgrade events. <br><br>With MaxSurge disabled, the existing instances in a scale set are brought down in batches to be upgraded. Once the upgraded batch is complete, the instances begin taking traffic again, and the next batch begins. This continues until all instances brought up-to-date. |
62+
| **MaxSurge (Preview)** | With MaxSurge enabled, new instances are created in batches using the latest scale model. Once the batch of new instances are successfully created and marked as healthy, they begin taking traffic. The scale set then deletes instances in batches matching the old scale set model. This continues until all instances are brought up-to-date. rolling upgrades with MaxSurge can help improve service uptime during upgrade events. <br><br>With MaxSurge disabled, the existing instances in a scale set are brought down in batches to be upgraded. Once the upgraded batch is complete, the instances begin taking traffic again, and the next batch begins. This continues until all instances brought up-to-date. |
4763

4864

4965
## Setting or updating the rolling upgrade policy
5066

51-
Rolling upgrade policy can be configured during scale set creation. Because Rolling upgrade policy requires successfully monitoring application health and there are specific settings that determine how upgrades are completed, it's suggested to first create your scale set using manual upgrade policy. Once you have confirmed the application health is being successfully reported, update your upgrade policy from manual to Rolling.
67+
Rolling upgrade policy can be configured during scale set creation. Because rolling upgrade policy requires successfully monitoring application health and there are specific settings that determine how upgrades are completed, it's suggested to first create your scale set using manual upgrade policy. Once you have confirmed the application health is being successfully reported, update your upgrade policy from manual to rolling.
5268

5369
### [Portal](#tab/portal1)
5470

@@ -95,7 +111,7 @@ Update-Azvmss -ResourceGroupName "myResourceGroup" `
95111

96112
### [ARM Template](#tab/template1)
97113

98-
Update the properties section of your ARM template and set the upgrade policy to Rolling and various rolling upgrade options.
114+
Update the properties section of your ARM template and set the upgrade policy to rolling and various rolling upgrade options.
99115

100116

101117
``` ARM Template

articles/virtual-machine-scale-sets/virtual-machine-scale-sets-perform-manual-upgrades.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
11
---
2-
title: Performing manual upgrades on Virtual Machine Scale Sets
2+
title: Performing manual upgrades on Virtual Machine Scale Sets (Preview)
33
description: Learn about how to perform a manual upgrade on Virtual Machine Scale Sets.
44
author: mimckitt
55
ms.author: mimckitt
66
ms.topic: how-to
77
ms.service: virtual-machine-scale-sets
8-
ms.date: 06/14/2024
8+
ms.date: 6/14/2024
99
ms.reviewer: ju-shim
1010
ms.custom: upgradepolicy
1111
---
12-
# Performing manual upgrades on Virtual Machine Scale Sets
12+
# Performing manual upgrades on Virtual Machine Scale Sets (Preview)
1313

1414
> [!NOTE]
15-
> Manual upgrade policy is available for both Virtual Machine Scale Sets with Uniform Orchestration and Virtual Machine Scale Sets with Flexible Orchestration.
15+
> Manual upgrade policy for Virtual Machine Scale Sets with Uniform Orchestration is in general availability (GA) .
1616
>
17-
>**Manual upgrade policy for Virtual Machine Scale Sets with Flexible Orchestration is currently in preview**. 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).
17+
>**Manual upgrade policy for Virtual Machine Scale Sets with Flexible Orchestration is currently in preview.** 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).
1818
1919
If you have the upgrade policy set to manual, any changes made to the scale set model won't be applied automatically. You need to manually trigger upgrades on each individual virtual machine. The manual upgrade functionality updates the selected instances according to the virtual machine configuration set in the scale set profile.
2020

articles/virtual-machine-scale-sets/virtual-machine-scale-sets-reimage-virtual-machine.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ author: mimckitt
55
ms.author: mimckitt
66
ms.topic: how-to
77
ms.service: virtual-machine-scale-sets
8-
ms.date: 06/14/2024
8+
ms.date: 02/06/2024
99
ms.reviewer: ju-shim
1010
ms.custom: upgradepolicy
1111

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

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,38 @@
11
---
2-
title: Set the upgrade policy on Virtual Machine Scale Sets
2+
title: Set the upgrade policy on Virtual Machine Scale Sets (Preview)
33
description: Learn about to set the upgrade policy on Virtual Machine Scale Sets
44
author: mimckitt
55
ms.author: mimckitt
66
ms.topic: how-to
77
ms.service: virtual-machine-scale-sets
8-
ms.date: 06/14/2024
8+
ms.date: 6/6/2024
99
ms.reviewer: ju-shim
1010
ms.custom: upgradepolicy
1111
---
12-
# Set the upgrade policy on Virtual Machine Scale Sets
12+
# Set the upgrade policy on Virtual Machine Scale Sets (Preview)
1313

1414
> [!NOTE]
15-
> Automatic, manual and rolling upgrade policy are available for Virtual Machine Scale Sets with Uniform Orchestration.
15+
> Automatic, manual and rolling upgrade policy for Virtual Machine Scale Sets with Uniform Orchestration are in general availability (GA) .
1616
>
17-
>**Only manual upgrade policy is available for Virtual Machine scale Sets with Flexible Orchestration. Manual upgrade policy for Virtual Machine Scale Sets with Flexible Orchestration is currently in preview**. 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).
17+
>**Automatic, manual and rolling upgrade policy for Virtual Machine Scale Sets with Flexible Orchestration are currently in preview.** 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).
1818
1919
The upgrade policy can be set during scale set creation or changed post deployment. If you don't explicitly set the upgrade policy, it defaults to manual. To change the upgrade policy of an existing scale set deployment, see [changing the upgrade policy](virtual-machine-scale-sets-change-upgrade-policy.md).
2020

2121
### [Portal](#tab/portal)
2222

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

25+
> [!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.
27+
2528
If using a rolling upgrade policy, see [configure rolling upgrade policy](virtual-machine-scale-sets-configure-rolling-upgrades.md) for configuration settings and suggestions.
2629

2730
:::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.":::
2831

2932
### [CLI](#tab/cli)
3033
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.
3134

32-
If using a rolling upgrade policy, see [Configure rolling upgrade policy](virtual-machine-scale-sets-configure-rolling-upgrades.md) for configuration settings and suggestions.
35+
If using a rolling upgrade policy, see [configure rolling upgrade policy](virtual-machine-scale-sets-configure-rolling-upgrades.md) for configuration settings and suggestions.
3336

3437
```azurecli-interactive
3538
az vmss create \
@@ -38,7 +41,7 @@ az vmss create \
3841
--orchestration-mode Flexible \
3942
--image Ubuntu2204 \
4043
--lb myLoadBalancer \
41-
--upgrade-policy-mode Manual \
44+
--upgrade-policy-mode automatic \
4245
--instance-count 5 \
4346
--admin-username azureuser \
4447
--generate-ssh-keys
@@ -65,12 +68,12 @@ New-AzVmss `
6568
### [ARM Template](#tab/template)
6669
When using an ARM template, add the `upgradePolicy` parameter to the properties section of your template to set the upgrade policy mode.
6770

68-
If using a rolling upgrade policy, see [configure Rolling upgrade policy](virtual-machine-scale-sets-configure-rolling-upgrades.md) for configuration settings and suggestions.
71+
If using a rolling upgrade policy, see [configure rolling upgrade policy](virtual-machine-scale-sets-configure-rolling-upgrades.md) for configuration settings and suggestions.
6972

7073
```ARM
7174
"properties": {
7275
"upgradePolicy": {
73-
"mode": "Manual",
76+
"mode": "Automatic",
7477
}
7578
}
7679
```

0 commit comments

Comments
 (0)