Search code examples
azureazure-cliazure-update-management-center

Is there a way to use New-AzMaintenanceConfiguration to also create a dynamic scope?


I want to programmatically create Maintenance Configurations using the new Azure Update Manager. To do this, I am utilizing the Az.Maintenance module, and specifically the New-AzMaintenanceConfiguration cmdlet. However, in the official documentation, I can't find any switch used to create a dynamic scope for assigning machines to the maintenance configuration.

I currently have no approach to this problem and would appreciate any ideas or help.


Solution

  • Okay, I found the solution: The New-AzConfigurationAssignment cmdlet fits perfectly.