You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/azure-arc/servers/manage-automatic-vm-extension-upgrade.md
+27-94Lines changed: 27 additions & 94 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,20 +1,23 @@
1
1
---
2
-
title: Automatic Extension Upgrade for Azure Arc-enabled servers
3
-
description: Learn how to enable the Automatic Extension Upgrade for your Azure Arc-enabled servers.
2
+
title: Automatic Extension Upgrade (preview) for Azure Arc-enabled servers
3
+
description: Learn how to enable the Automatic Extension Upgrade (preview) for your Azure Arc-enabled servers.
4
4
ms.topic: conceptual
5
-
ms.date: 08/10/2021
5
+
ms.date: 11/04/2021
6
6
---
7
7
8
-
# Automatic Extension Upgrade for Azure Arc-enabled servers
8
+
# Automatic Extension Upgrade (preview) for Azure Arc-enabled servers
9
9
10
-
Automatic Extension Upgrade is available for Azure Arc-enabled servers that have supported VM extensions installed. When Automatic Extension Upgrade is enabled on a machine, the extension is upgraded automatically whenever the extension publisher releases a new version for that extension.
10
+
Automatic Extension Upgrade (preview) is available for Azure Arc-enabled servers that have supported VM extensions installed. When Automatic Extension Upgrade (preview) is enabled on a machine, the extension is upgraded automatically whenever the extension publisher releases a new version for that extension.
11
11
12
12
Automatic Extension Upgrade has the following features:
13
13
14
14
- You can opt in and out of automatic upgrades at any time.
15
15
- Each supported extension is enrolled individually, and you can choose which extensions to upgrade automatically.
16
16
- Supported in all public cloud regions.
17
17
18
+
> [!NOTE]
19
+
> In this release, only the Azure CLI is supported to configure Automatic Extension Upgrade.
20
+
18
21
## How does Automatic Extension Upgrade work?
19
22
20
23
The extension upgrade process replaces the existing Azure VM extension version supported by Azure Arc-enabled servers with a new version of the same extension when published by the extension publisher. The health of the machine is monitored after the new extension is installed. If the machine is not in a healthy state within 5 minutes of the upgrade completion, the extension version is rolled back to the previous version.
@@ -27,68 +30,36 @@ How does the upgrade process work for an Arc-enabled server?
27
30
28
31
## Supported extensions
29
32
30
-
Automatic Extension Upgrade supports the following extensions (and more are added periodically):
31
-
32
-
- Dependency Agent – [Linux](../../virtual-machines/extensions/agent-dependency-linux.md) and [Windows](../../virtual-machines/extensions/agent-dependency-windows.md)
33
-
-[Guest Configuration Extension](../../virtual-machines/extensions/guest-configuration.md) – Linux and Windows
34
-
- Key Vault – [Linux](../../virtual-machines/extensions/key-vault-linux.md) and [Windows](../../virtual-machines/extensions/key-vault-windows.md)
35
-
36
-
## Enabling Automatic Extension Upgrade
37
-
38
-
To enable Automatic Extension Upgrade for an extension, you must ensure the property `enableAutomaticUpgrade` is set to `true` and added to every extension definition individually.
39
-
40
-
### Using the REST API
41
-
42
-
To enable automatic extension upgrade for an extension (in this example the Dependency Agent extension), run the following command:
43
-
44
-
```rest
45
-
PUT on `/subscriptions/<subscriptionId>/resourceGroups/<resourceGroupName>/providers/Microsoft.HybridCompute/machines/<machineName>/extensions/<extensionName>?api-version=2019-12-01`
Automatic Extension Upgrade (preview) supports the following extensions (and more are added periodically):
62
34
63
-
### Using Azure PowerShell
35
+
- Dependency agent – Linux and Windows
36
+
- Azure Monitor Agent - Linux and Windows
37
+
- Azure Security agent - Linux and Windows
38
+
- Key Vault Extension - Linux only
39
+
- Log Analytics agent - Linux only
64
40
65
-
Use the [Set-AzConnectedMachineExtension](/powershell/module/az.connectedmachine/new-azconnectedmachineextension) cmdlet with the `-MachineName`, `-ExtensionName`, `-Publisher`, `-ExtensionType`, `-EnableAutomaticUpgrade`, and `ResourceGroupName` parameters.
To enable Automatic Extension Upgrade (preview) for an extension, you must ensure the property `enable-auto-upgrade` is set to `true` and added to every extension definition individually.
79
44
80
45
Use the [az connectedmachine extension ](/cli/azure/connectedmachine/extension) cmdlet with the `--extension-name`, `--machine-name`, `-publisher`, `--enable-auto-upgrade`, and `--resource-group` parameters.
To verify Automatic Extension Upgrade (preview) is available, run the following command:
58
+
59
+
```azurecli
60
+
az connectedmachine extension list --resource-group resourceGroupName --machine-name machineName --query "[].{Name:name, AutoUpgrade:properties.enableAutoUpgrade}" --output table
61
+
```
62
+
92
63
## Extension upgrades with multiple extensions
93
64
94
65
A machine managed by Arc-enabled servers can have multiple extensions with automatic extension upgrade enabled. The same machine can also have other extensions without automatic extension upgrade enabled.
@@ -97,54 +68,16 @@ If multiple extension upgrades are available for a machine, the upgrades may be
97
68
98
69
## Disable Automatic Extension Upgrade
99
70
100
-
To disable Automatic Extension Upgrade for an extension, you must ensure the property `enableAutomaticUpgrade` is set to `false` and added to every extension definition individually.
101
-
102
-
### Using the REST API
103
-
104
-
To disable automatic extension upgrade for an extension (in this example the Dependency Agent extension), run the following command:
105
-
106
-
```rest
107
-
PUT on `/subscriptions/<subscriptionId>/resourceGroups/<resourceGroupName>/providers/Microsoft.HybridCompute/machines/<machineName>/extensions/<extensionName>?api-version=2019-12-01`
Use the [Set-AzConnectedMachineExtension](/powershell/module/az.connectedmachine/new-azconnectedmachineextension) cmdlet with the `-MachineName`, `-ExtensionName`, `-Publisher`, `-ExtensionType`, `-EnableAutomaticUpgrade`, and `ResourceGroupName` parameters.
To disable Automatic Extension Upgrade (preview) for an extension, you must ensure the property `enable-auto-upgrade` is set to `false` and added to every extension definition individually.
139
72
140
73
### Using the Azure CLI
141
74
142
75
Use the [az connectedmachine extension ](/cli/azure/connectedmachine/extension) cmdlet with the `--extension-name`, `--machine-name`, `--publisher`, `--enable-auto-upgrade`, and `--resource-group` parameters.
0 commit comments