Azure Update Manager: Machine is Required to reboot. However, the customer-specified reboot setting doesn't allow reboots.

AGlezB-7121 26 Reputation points
2025-10-15T15:18:49.8833333+00:00

I'm having an issue with AUM where some Windows VMs aren't rebooting after an update:

"0 errors reported. The latest 3 errors are shared in details. To view all errors, review this log file on the machine:[C:\WindowsAzure\Logs\Plugins\Microsoft.CPlat.Core.WindowsPatchExtension\1.5.75] "["Machine is Required to reboot. However, the customer-specified reboot setting doesn't allow reboots.]."

The Maintenance Configuration has "rebootSetting": "AlwaysReboot" and "duration": "03:55" so I expected the VMs to reboot no matter what but something is preventing the reboot despite the updates using only a small fraction of the maintenance window. I followed the steps provided by the troubleshooter and checked the update policies but nothing seems out of place.

This might be related to Azure Update does not reboot.

I need help finding what is preventing the reboot. Thanks in advance.

Azure Update Manager
Azure Update Manager

An Azure service to centrally manages updates and compliance at scale.


Answer accepted by question author
Suchitra Suregaunkar 16,620 Reputation points Microsoft External Staff Moderator
2025-10-24T00:14:44.22+00:00

Hello AGlezB-7121 Following up on this thread because the earlier resolution didn’t resolve the behavior.

VMs didn’t reboot even with AlwaysReboot: When Azure Update Manager (AUM) shows: Machine is Required to reboot. However, the customer-specified reboot setting doesn't allow reboots.

The “customer‑specified reboot setting” typically isn’t your Maintenance Configuration. It’s the per‑VM setting on the VM model:

osProfile.windowsConfiguration.patchSettings.automaticByPlatformSettings.rebootSetting

On Azure VMs using Azure‑orchestrated patching (Customer Managed Schedules), this VM‑level rebootSetting takes precedence over the Maintenance Configuration’s rebootSetting. If the VM’s value is Never (or unset in a way that forbids reboots), AUM will not reboot even if the schedule says AlwaysReboot.

As a workaround please try below checks:

  1. Check the VM’s rebootSetting : If it returns Never or is blank/unknown, that is the blocker.

Azure CLI:


az vm show -g <resourceGroup> -n <vmName> \
  --query "osProfile.windowsConfiguration.patchSettings.automaticByPlatformSettings.rebootSetting" -o tsv


Go to Azure Portal: VM ➜ JSON view ➜ find osProfile.windowsConfiguration.patchSettings.automaticByPlatformSettings.rebootSetting.

  1. Set patch mode + reboot policy correctly:
  • Ensure patch mode is AutomaticByPlatform (Azure‑orchestrated).
  • Set rebootSetting to IfRequired (reboot only when needed) or Always (unconditional).
  • Enable BypassPlatformSafetyChecksOnUserSchedule = true (prereq used by AUM schedules & supported by Azure Policy).
$vm = Get-AzVM -ResourceGroupName "<rg>" -Name "<vm>"

# Use Azure-orchestrated patching for Customer Managed Schedules
$vm.OSProfile.WindowsConfiguration.PatchSettings.PatchMode = "AutomaticByPlatform"

# Configure reboot behavior and bypass safety checks for user schedules
$vm.OSProfile.WindowsConfiguration.PatchSettings.AutomaticByPlatformSettings = `
  New-Object Microsoft.Azure.Management.Compute.Models.WindowsVMGuestPatchAutomaticByPlatformSettings -Property @{
    RebootSetting = "IfRequired"   # or "Always"
    BypassPlatformSafetyChecksOnUserSchedule = $true
  }

Update-AzVM -ResourceGroupName "<rg>" -VM $vm

Reference: https://learn.microsoft.com/en-us/javascript/api/@azure/arm-compute/patchsettings?view=azure-node-latest

When the VM model allows reboots, AUM can honor your schedule’s AlwaysReboot or IfRequired intent. The platform‑documented precedence is the reason the schedule alone couldn’t force the reboot earlier.

  1. Re‑run the AUM schedule and confirm in logs: After updating the VM property, run the schedule again (or trigger an on‑demand update), then verify in the Windows patch extension logs: *C:\WindowsAzure\Logs\Plugins\Microsoft.CPlat.Core.WindowsPatchExtension<version>*

These logs record the patch operation and reboot decision paths.

If needed you can try below additional checks as well:

Active Hours suppression: If Windows Active Hours overlap your maintenance window, Windows Update may suppress restarts. Align the schedule or adjust Active Hours to avoid overlap.

Maintenance window time left: AUM reserves time for reboot. If insufficient time remains in the window near the end, the reboot can be skipped (commonly ~10 minutes reserved for reboot)

Reference: https://learn.microsoft.com/en-us/azure/virtual-machines/automatic-vm-guest-patching
Thanks,

Suchitra.

Was this answer helpful?

1 person found this answer helpful.
0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.