Environmental prerequisites
Before Contoso schedules its first patch window, you need to answer two questions: Can Azure Update Manager patch the selected VMs? and Can the team safely patch the workload? A successful assessment on orders-01 helps answer the first. It doesn't tell you whether a cancellation alert will reach the on-call operator or whether orders-02 can serve customers alone while the canary restarts.
What each VM needs
Before scheduling a Windows or Ubuntu VM for patching, confirm that Azure Update Manager supports its image, its update client can reach the configured source, and its patch and restart settings match the planned window:
| Requirement | How to confirm it |
|---|---|
| Supported image and healthy VM Agent | Inspect each VM's image publisher, offer, SKU, version, and CPU architecture. Supported x64 Marketplace examples for this fleet include Windows Server 2025 under MicrosoftWindowsServer:WindowsServer and Ubuntu Server 24.04 LTS published by Canonical. If the image or architecture differs, establish that Update Manager supports scheduled guest patching for that combination before approving it; the OS name alone isn't enough. In the VM's instance view, confirm that the VM Agent reports Ready. The VM must be running for prechecks and at least 15 minutes before its scheduled update; coordinate planned starts and unrelated shutdowns with its owner. Confirm that policy allows the patch extension; Update Manager installs it on first use. |
| Working guest update client | On Windows, confirm that the Windows Update client uses the intended source: Windows Update or the organization's Windows Server Update Services (WSUS) server. On Ubuntu, inspect the enabled APT repositories and run python3 --version to confirm Python 3 is installed. The Linux patch extension runs as root; the guest's sudoers policy must let root use sudo to perform assessment and installation. This doesn't require enabling remote root login or granting patch operators root access. |
| Network access from the guest | From each distinct subnet or proxy configuration, confirm that DNS resolves the configured source and that the route, firewall, and proxy permit the guest update client and VM Agent traffic. Run Azure Update Manager > Machines > Check for updates on the approved targets. Require a fresh assessment without source errors on each target; a successful scan on Windows doesn't validate the Ubuntu repository path. |
| Compatible patch and restart settings | For each VM approved for scheduled patching, verify Customer Managed Schedules under Update settings. Record the maintenance configuration's reboot option and the VM model's reboot setting under the relevant Windows or Linux patchSettings.automaticByPlatformSettings object. Microsoft documents that the VM-model rebootSetting takes precedence over the maintenance configuration. Reconcile any explicit conflict with the workload owner before scheduling; choosing If required in the schedule alone doesn't override a VM-level Never or Always. Keep patchMode=AutomaticByPlatform and bypassPlatformSafetyChecksOnUserSchedule=true when you resolve a reboot conflict. Check Windows Group Policy and Ubuntu's unattended-upgrades configuration for installs or restarts outside the approved window. Resolve competing policies with the OS owner rather than disabling security updates across the fleet. |
What the team needs before rolling out security updates
Before scheduling the first wave, agree with the workload owners on four things:
- A trustworthy target list. Map the 16 full VM resource IDs to workload, owner, OS, and proposed wave. Record each VM's full availability-set resource ID when present, or record that the VM isn't in an availability set. This lets owners identify other campaigns targeting different VMs in the same set; it doesn't require creating an availability set. Verify workload and wave tags against that list. Check that the subscription has the
Microsoft.Maintenanceresource provider registered and that the deployment identity can manage the Guest maintenance configuration and its assignments. The patch operator needs rights on the intended VMs; the identity checking membership needs read visibility across the whole approved scope, including possible exclusions. - A working cancellation path. Configure Event Grid to deliver pre- and post-maintenance events. Grant the handler and the on-call operator
Microsoft.Maintenance/applyUpdates/readandMicrosoft.Maintenance/applyUpdates/writeon the approved configuration so they can identify and cancel a run. If using Azure Automation, confirm that its managed identity can sign in, the published runbook hasAz.Accounts,Az.Resources, andAz.ResourceGraph(plusAz.Computeif using VM Run Command), and Event Grid validates its webhook. Before production assignment, use a separately approved nonproduction configuration to demonstrate that the actual published handler parses a delivered event, validates its configuration and run IDs, and completes the approved checks, cancellation, and post-event actions. Retain the runtime, module versions, and action results; endpoint validation or a queued job alone isn't enough. Alert the operator if delivery or a job fails. The operator must be able to act without the handler. Neither an Automation account nor a Log Analytics workspace is required for basic VM patching. - A safe workload check. Before patching, run the workload owner's health check against the intended VM and record the result. After the restart, repeat the same check against that VM. Examples include looking up a known customer order, reading a supplier payment batch without releasing funds, comparing a payroll preview with control totals, retrieving a designated HR test record, running a compliance test with a known outcome, and comparing an analysis query against a fixed dataset. Record the expected result without copying sensitive business data into patch logs.
- Capacity, recovery, and evidence. Confirm the remaining replicas can carry the workload, or obtain approval for an outage if there's no spare capacity. Identify who can restore service, confirm the recovery procedure has been tested, and verify private administrative access independent of the VM Agent. Give operators an approved location to retain target lists, run and handler results, health observations, and owner decisions.
Agree how the workload owner will stop new production work from reaching the VM, allow in-flight work to finish safely, and return the VM to service. For the orders service, identify the control that keeps the canary out of production routing during patching and validation, including across a restart. Identify how to observe active requests or transactions, the allowed drain time, and who can restore traffic. Use a workload-specific control with narrowly scoped authority; don't assume Update Manager drains application traffic.
If a prerequisite is missing, leave the affected wave unscheduled. For the orders canary, the other replica must be able to serve traffic, and the orders owner must be able to test a lookup on the patched VM itself. The operator must also be ready to request cancellation before the earlier of the pre-event's CancellationCutOffDateTime and ten minutes before the scheduled start.