Azure Update Manager Dynamic Scopes: do not deploy without at least 1 attached resource

Mick Collins 0 Reputation points
2024-01-05T08:04:40.51+00:00

We would like to confirm if the following observation is by design or maybe a bug:

From our testing of template deployments of Azure Update Manager (maintenance configurations) we've found that a Maintenance Configuration that has a dynamic scope but no statically attached resources will run but will not install any updates.

The scenario is that we want to deploy via Bicep/ARM, maintenance configurations with dynamic scopes, also policies for machine pre-requisites. Then also ensure orchestration settings we are set on machines that already exist.

We have most of this in place and testing, however a maintenance configuration with only dynamic scope/s will have maintenance runs, but will not engage any installations on machines (no activity in agent logs on machines).

As soon as a single machine is manually directly attached to the maintenance configuration the dynamic scopes then start working for all machines.

So we we're seeking if this is by design or maybe not expected to be the behaviour. With this current behaviour we'll also have to plan to deploy some configuration assignments to our at scale implementations and not rely on only dynamic scopes.

Thanks

Azure Update Manager
Azure Update Manager
An Azure service to centrally manages updates and compliance at scale.
224 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Ryan Hill 25,981 Reputation points Microsoft Employee
    2024-01-11T14:42:58.22+00:00

    Apologies for the late reply @Mick Collins.

    If I understand you correctly, you want to confirm that an update won't be applied to a virtual machine is attached to the configuration defined in the dynamic scope.

    Rather than using the term attached, meet would be a better term. Updates won't get be applied until your Azure VM meets the following prerequisites,

    • Patch Orchestration must be set to Customer Managed Schedules. This sets patch mode to AutomaticByPlatform and the BypassPlatformSafetyChecksOnUserSchedule = True.
    • Associate a Schedule with the VM.

    and the VM meets the criteria set forth in your dynamic scope. The dynamic scope gets evaluated at the scheduled runtime of the maintenance window. Meaning, it is possible to adjust the VM resource, so it doesn't meet the criteria and therefore patches not be applied and vice versa.See Manage various operations of Dynamic Scoping. | Microsoft Learn for additional information.