Establish patch and recovery readiness

Completed

Even with the patching tools in place, a VM might not be ready for a particular window. Before patching orders-01, find out which updates it needs, whether it already needs a restart, and whether an order lookup works on it now. That baseline helps you distinguish an existing fault from a patching problem. If the team can't recover the replica within the time the orders owner can tolerate, defer the change.

Diagram that shows the update, restart, and order lookup checks on orders-01 before the owner compares recovery time with the outage limit.

Azure Update Manager uses guest extensions to assess and install updates. On the Windows Server 2025 VMs, Windows Update or Windows Server Update Services (WSUS) supplies the updates. On the Ubuntu Linux VMs, APT uses the configured package repositories. A successful Windows assessment doesn't establish that the Ubuntu VMs can reach their repositories. A maintenance schedule neither supplies missing packages nor repairs a broken source.

Diagram that shows Windows guests using Windows Update or WSUS and Ubuntu guests using APT repositories. Each source needs its own assessment.

The workload owner decides how recent an assessment must be and which application health checks must pass. These aren't Azure service limits. Before approving the window, the patch operator records the following evidence for each target VM:

What to establish Evidence to use When to hold the change
Supported and reachable guest Record the VM's OS release, architecture, image publisher, offer, SKU, version, and region. Confirm that the exact image supports scheduled guest patching and that Update Manager is available in that region. In instance view, look for a Ready VM Agent and resolve any extension error. Update Manager deploys its patch extension when needed. Image or regional support is uncertain, the agent isn't ready, or an extension error is unresolved. Investigate before reinstalling anything.
VM available for the scheduled occurrence Name the person or approved automation responsible for starting a stopped/deallocated VM. Microsoft requires the machine to be running at least 15 minutes before the scheduled update. Start it earlier when pre-event checks require it, confirm VM Agent readiness, and coordinate any stop/deallocate schedules. The target can't be ready before prechecks, or unrelated shutdown automation could interrupt installation, reboot recovery, or application validation. Leave the wave unscheduled. If already scheduled, request cancellation of the verified occurrence before the earlier of its event cutoff and ten minutes before the start, then confirm Cancelled.
Working update source In Azure Update Manager > Machines, select only intended VMs and choose Check for updates. Record the assessment ID, UTC time, source, classifications and eligible KBs or package versions. The source is unreachable, the assessment is stale (for example, over 24 hours old), or its errors are unexplained. A failed scan isn't evidence of zero updates.
Scheduled patching enabled Record the original Update settings. For Azure VMs, Customer Managed Schedules means patchMode=AutomaticByPlatform and bypassPlatformSafetyChecksOnUserSchedule=true. Inspect the values rather than relying on an older display name. The settings don't support the schedule. Change them only on approved VMs. Azure Arc-enabled servers have different orchestration prerequisites.
Known reboot state Check whether Update Manager and the guest OS both report a pending restart. If they disagree, investigate. If a restart is needed, follow the workload's approved reboot policy. An earlier reboot is outstanding or unexplained. Resolve it before attributing a later reboot to this run.
Effective reboot policy Record the schedule's reboot option and the VM model's OS-specific patchSettings.automaticByPlatformSettings.rebootSetting. Establish whether an explicit VM-level value conflicts with the approved reboot plan, and check whether Windows Group Policy or Ubuntu's unattended-upgrades can restart the guest independently. An explicit conflict is unresolved, or the effective behavior needed for the approved window isn't established. Reconcile it with the owner before scheduling; don't assume the schedule overrides the VM model.
Healthy workload and spare capacity Record a successful application operation on the canary, the freshness of its health signal, and the capacity and health of the serving replicas. The baseline is unhealthy, or the remaining replicas can't serve the load while the canary is offline.
Usable recovery and administration paths Name the person responsible for recovery. Confirm that the team has tested the restore or rebuild procedure and has enough capacity to meet the workload's limits for downtime and data loss. Test private administrative access, such as Bastion with RDP or SSH, independently of the VM Agent. Recovery depends on the failed agent, an untested backup, or the assumption that every update can be uninstalled.

Diagram that shows six checks before a patch window: guest support, update source, schedule, restart state, workload capacity, and recovery.

Allow the VM to reach its approved update source and Azure agent endpoints. On a private subnet, verify the outbound route rather than assuming internet access. Don't open public inbound ports for patching. On Linux, check the supported distribution and image, package-manager errors, service manager (such as systemd), and the distribution's reboot indicators. Windows service and registry checks aren't substitutes.

Diagram that shows outbound routes to update sources and Azure agent endpoints, plus package, service, and reboot checks inside a Linux VM.

If a fresh assessment succeeds but finds no eligible security update, record no eligible updates. Don't downgrade a package or use an obsolete image to force an installation. If the canary installs nothing, a successful order lookup shows that the service works now. It doesn't show whether the service will still work after the update.

Choose a reboot policy the application owner can support, commonly If required, and reconcile the maintenance configuration's option with the VM-model setting. Selecting Never reboot in the maintenance configuration doesn't, by itself, guarantee no restart: an explicit VM-model setting can take precedence, and Windows policy or another update agent can also initiate a restart. Resolve conflicting policies before the window.

For a Windows VM, inspect properties.osProfile.windowsConfiguration.patchSettings.automaticByPlatformSettings.rebootSetting; for Linux, inspect properties.osProfile.linuxConfiguration.patchSettings.automaticByPlatformSettings.rebootSetting. These VM-model settings apply to all AutomaticByPlatform patch installation operations, which includes the orchestration mode used by Customer Managed Schedules. An explicit VM-level reboot setting takes precedence over the maintenance configuration.

Record an omitted value or Unknown as such. Don't reinterpret either as Never, assume it necessarily overrides the schedule, or invent a fallback rule. Resolve uncertainty about the behavior required by this campaign before approval. Change only the approved VM's relevant setting when authorized; don't reset the whole fleet or alter patchMode or the required schedule-bypass flag to solve a reboot-policy mismatch. Keep reconciling actual reboot status and guest boot time after installation.

A rebuild from a known image may be appropriate for a stateless replica, while a stateful service may need application-consistent recovery. Don't promise universal patch rollback.

Diagram that shows how to record a scan with no eligible updates, agree on restarts, and choose a recovery path for the workload.