Skip to content

Commit f3df041

Browse files
committed
minor edits
1 parent 15dcf73 commit f3df041

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

articles/update-manager/prerequsite-for-schedule-patching.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -162,8 +162,7 @@ Set-AzVMOperatingSystem -VM $VirtualMachine -Windows -PatchMode "AutomaticByPlat
162162
$AutomaticByPlatformSettings = $VirtualMachine.OSProfile.WindowsConfiguration.PatchSettings.AutomaticByPlatformSettings
163163
164164
if ($null -eq $AutomaticByPlatformSettings) {
165-
166-
$VirtualMachine.OSProfile.WindowsConfiguration.PatchSettings.AutomaticByPlatformSettings = New-Object -TypeName Microsoft.Azure.Management.Compute.Models.WindowsVMGuestPatchAutomaticByPlatformSettings -Property @{BypassPlatformSafetyChecksOnUserSchedule = $true}
165+
$VirtualMachine.OSProfile.WindowsConfiguration.PatchSettings.AutomaticByPlatformSettings = New-Object -TypeName Microsoft.Azure.Management.Compute.Models.WindowsVMGuestPatchAutomaticByPlatformSettings -Property @{BypassPlatformSafetyChecksOnUserSchedule = $true}
167166
} else {
168167
$AutomaticByPlatformSettings.BypassPlatformSafetyChecksOnUserSchedule = $true
169168
}

0 commit comments

Comments
 (0)