Skip to content

Commit d778c8c

Browse files
authored
Merge pull request #206945 from Jak-MS/public-move-pr-96594
Public move pr 96594
2 parents 89b0c17 + 84c330a commit d778c8c

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

articles/virtual-machines/extensions/diagnostics-linux.md

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -132,13 +132,19 @@ Set-AzVMExtension -ResourceGroupName <resource_group_name> -VMName <vm_name> -Lo
132132
---
133133

134134
### Enable auto update
135+
135136
The **recommendation** is to enable automatic update of the agent by enabling the [Automatic Extension Upgrade](../../virtual-machines/automatic-extension-upgrade.md) feature, using the following PowerShell commands.
137+
136138
# [Azure CLI](#tab/azcli)
137-
```powershell
139+
140+
```azurecli
138141
az vm extension set --publisher Microsoft.Azure.Diagnostics --name LinuxDiagnostic --version 4.0 --resource-group <resource_group_name> --vm-name <vm_name> --protected-settings ProtectedSettings.json --settings PublicSettings.json --enable-auto-upgrade true
139142
```
140-
# [Powershell](#tab/powershell)
141-
```powershellSet-AzVMExtension -ResourceGroupName <resource_group_name> -VMName <vm_name> -Location <vm_location> -ExtensionType LinuxDiagnostic -Publisher Microsoft.Azure.Diagnostics -Name LinuxDiagnostic -SettingString $publicSettings -ProtectedSettingString $protectedSettings -TypeHandlerVersion 4.0 -EnableAutomaticUpgrade $true
143+
144+
# [PowerShell](#tab/powershell)
145+
146+
```powershell
147+
Set-AzVMExtension -ResourceGroupName <resource_group_name> -VMName <vm_name> -Location <vm_location> -ExtensionType LinuxDiagnostic -Publisher Microsoft.Azure.Diagnostics -Name LinuxDiagnostic -SettingString $publicSettings -ProtectedSettingString $protectedSettings -TypeHandlerVersion 4.0 -EnableAutomaticUpgrade $true
142148
```
143149

144150
---

0 commit comments

Comments
 (0)