Skip to content

Commit e70ee7a

Browse files
authored
Update automatic-vm-guest-patching.md
Modified the code for enabling auto patch through powershell
1 parent e200ba4 commit e70ee7a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

articles/virtual-machines/automatic-vm-guest-patching.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,7 @@ Use the [Set-AzVMOperatingSystem](/powershell/module/az.compute/set-azvmoperatin
231231

232232
```azurepowershell-interactive
233233
Get-AzVM -VM $VirtualMachine -Windows -ComputerName $ComputerName -Credential $Credential
234-
Set-AzVMOperatingSystem -VM $VirtualMachine -ProvisionVMAgent -EnableAutoUpdate -PatchMode "AutomaticByPlatform"
234+
Set-AzVMOperatingSystem -VM $VirtualMachine -PatchMode "AutomaticByPlatform"
235235
Update-AzVM -VM $VirtualMachine
236236
```
237237

0 commit comments

Comments
 (0)