Edit

Share via


How Update Manager works

Update Manager assesses and applies updates to all Azure machines and Azure Arc-enabled servers for both Windows and Linux.

Screenshot that shows the update manager workflow.

Update Manager VM extensions

When an Azure Update Manager operation(AUM) is enabled or triggered on your Azure or Arc-enabled server, AUM installs an Azure extension or Arc-enabled servers extensions respectively on your machine to manage the updates.

The extension is automatically installed on your machine when you initiate any Update Manager operation on your machine for the first time, such as Check for updates, Install one-time update, Periodic Assessment or when scheduled update deployment runs on your machine for the first time.

Customer doesn't have to explicitly install the extension and its lifecycle as it is managed by Azure Update Manager including installation and configuration. The Update Manager extension is installed and managed by using the below agents, which are required for Update Manager to work on your machines:

Note

Arc connectivity is a prerequisite for Update Manager, non-Azure machines including Arc-enabled VMWare, SCVMM etc.

For Azure machines, single extension is installed whereas for Azure Arc-enabled machines, two extensions are installed. Below are the details of extensions, which get installed:

Operating system Extension
Windows Microsoft.CPlat.Core.WindowsPatchExtension
Linux Microsoft.CPlat.Core.LinuxPatchExtension

Update source

Azure Update Manager honors the update source settings on the machine and will fetch updates accordingly. AUM doesn't publish or provide updates.

If the Windows Update Agent (WUA) is configured to fetch updates from Windows Update repository or Microsoft Update repository or Windows Server Update Services (WSUS), AUM will honor these settings. For more information, see how to configure Windows Update client. By default, it is configured to fetch updates from Windows Updates repository.

AUM performs the following steps:

  • Retrieve the assessment information about status of system updates for it specified by the Windows Update client or Linux package manager.
  • Initiate the download and installation of updates with the Windows Update client or Linux package manager.

Note

  1. The machines will report their update status based on the source they are configured to synchronize with. If the Windows Update service is configured to report to WSUS, the results in Update Manager might differ from what Microsoft Update shows, depending on when WSUS last synchronized with Microsoft Update. This behavior is the same for Linux machines that are configured to report to a local repository instead of a public package repository.
  2. Update Manager will only find updates that the Windows Update service finds when you select the local Check for updates button on the local Windows system. On Linux systems only updates on the local repository will be discovered.

Updates data stored in Azure Resource Graph

Update Manager extension pushes all the pending updates information and update installation results to Azure Resource Graph where data is retained for below time periods:

Data Retention period in Azure Resource graph
Pending updates (ARG table name: patchassessmentresources) Seven Days
Update installation results (ARG table name: patchinstallationresources) 30 days

For more information, see log structure of Azure Resource Graph and sample queries.

How patches are installed in Azure Update Manager

In Azure Update Manager, patches are installed in the following manner:

  1. It begins with a fresh assessment of the available updates on the VM.

  2. Update installation follows the assessment.

    • In Windows, the selected updates that meet the customer's criteria are installed one by one,
    • In Linux, they're installed in batches.
  3. During update installation, Maintenance window utilization is checked at multiple steps. For Windows and Linux, 10 and 15 minutes of the maintenance window are reserved for reboot at any point respectively. Before proceeding with the installation of the remaining updates, it checks whether the expected reboot time plus the average update installation time (for the next update or next set of updates) doesn't exceed the maintenance window. In the case of Windows, the average update installation time is 10 minutes for all types of updates except for service pack updates. For service pack updates, it’s 15 minutes.

  4. Note that an ongoing update installation (once started based on the calculation above) isn't forcibly stopped even if it exceeds the maintenance window, to avoid landing the machine in a possibly undetermined state. However, it doesn't continue installing the remaining updates once the maintenance window has been exceeded, and a maintenance window exceeded error is thrown in such cases.

  5. Patching/Update installation is only marked as successful if all selected updates are installed, and all operations involved (including Reboot & Assessment) succeed. Otherwise, it's marked as Failed or Completed with warnings. For example,

    Scenario Update installation status
    One of the selected updates fails to install. Failed
    Reboot doesn't happen for any reason & wait time for reboot times out. Failed
    Machine fails to start during a reboot. Failed
    Initial or final assessment failed Failed
    Reboot is required by the updates, but Never reboot option is selected. Completed with warnings
    ESM packages skipped patching in ubuntu 18 or lower if Ubuntu pro license wasn't present. Completed with warnings
  6. An assessment is conducted at the end. Note that the reboot and assessment done at the end of the update installation may not occur in some cases, for example if the maintenance window has already been exceeded, if the update installation fails for some reason, etc.

Next steps