An Azure service to centrally manages updates and compliance at scale.
Hi,
The answer to this question is no different than the one for this one Error: Bicep deployment of maintenance configuration + dynamic scope for Update Manager just the language differs but when using AzAPI the properties part is the same or similar. Most important is that dynamic scope is basically Microsoft.Maintenance/configurationAssignments resource but deployed at subscription scope. Direct assignments are the same resource but they are scoped to the VM/Arc server where dynamic scope is a resource that is deployed at subscription scope. When at that scope it has different properties:
- maintenanceConfigurationId - the value is the resource ID of the maintenance configuration.
- resourceId - the value is the subscription resource ID where the dynamic scope is deployed.
- filter - The value is if you want to provide any filter to your dynamic scope like specific locations, OS types, resource groups, resource types or tags.
Please "Accept the answer" if the information helped you. This will help us and others in the community as well.