Skip to content

Commit 1d9e4e6

Browse files
authored
Merge pull request #177427 from mgreenegit/patch-27
make automatic upgrades more clear
2 parents 3a3dbf5 + 5de2a86 commit 1d9e4e6

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

articles/virtual-machines/extensions/guest-configuration.md

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,13 @@ of property _autoUpgradeMinorVersion_ defaults to "true" unless it is otherwise
5959
specified. You do not need to worry about updating your code when
6060
new versions of the extension are released.
6161

62+
## Automatic upgrade
63+
64+
The guest configuration extension supports property `enableAutomaticUpgrade`. When this
65+
property is set to `true`, Azure will automatically upgrade to the latest version
66+
of the extension as future releases become available. For more information, see the page
67+
[Automatic Extension Upgrade for VMs and Scale Sets in Azure](../automatic-extension-upgrade.md)
68+
6269
### Azure Policy
6370

6471
To deploy the latest version of the extension at scale including identity requirements,
@@ -72,13 +79,13 @@ To deploy the extension for Linux:
7279

7380

7481
```azurecli
75-
az vm extension set --publisher Microsoft.GuestConfiguration --name ConfigurationforLinux --extension-instance-name AzurePolicyforLinux --resource-group myResourceGroup --vm-name myVM
82+
az vm extension set --publisher Microsoft.GuestConfiguration --name ConfigurationforLinux --extension-instance-name AzurePolicyforLinux --resource-group myResourceGroup --vm-name myVM --enable-auto-upgrade true
7683
```
7784

7885
To deploy the extension for Windows:
7986

8087
```azurecli
81-
az vm extension set --publisher Microsoft.GuestConfiguration --name ConfigurationforWindows --extension-instance-name AzurePolicyforWindows --resource-group myResourceGroup --vm-name myVM
88+
az vm extension set --publisher Microsoft.GuestConfiguration --name ConfigurationforWindows --extension-instance-name AzurePolicyforWindows --resource-group myResourceGroup --vm-name myVM --enable-auto-upgrade true
8289
```
8390

8491
### PowerShell
@@ -92,7 +99,7 @@ Set-AzVMExtension -Publisher 'Microsoft.GuestConfiguration' -Type 'Configuration
9299
To deploy the extension for Windows:
93100

94101
```powershell
95-
Set-AzVMExtension -Publisher 'Microsoft.GuestConfiguration' -Type 'ConfigurationforWindows' -Name 'AzurePolicyforWindows' -TypeHandlerVersion 1.0 -ResourceGroupName 'myResourceGroup' -Location 'myLocation' -VMName 'myVM' --enable-auto-upgrade
102+
Set-AzVMExtension -Publisher 'Microsoft.GuestConfiguration' -Type 'ConfigurationforWindows' -Name 'AzurePolicyforWindows' -TypeHandlerVersion 1.0 -ResourceGroupName 'myResourceGroup' -Location 'myLocation' -VMName 'myVM' -EnableAutomaticUpgrade $true
96103
```
97104

98105
### Resource Manager template

0 commit comments

Comments
 (0)