Setting up proper dynamic scope for patching virtual machines

sns 9,116 Reputation points

I have created maintenance configuration

and I am trying to map VMs in resource group to that maintenance configuration to set up patches automatically.

but in that resource group I have 10 machines, I want to exclue 2 machines from schdueld time. is it possible?

If yes how?

I have used below filter but seems to be not working. can you please assist below on amending it to get selected machine from resource group

and second question, can we create maintenance plan with auto schedule it?

User's image

Azure Update Manager
Azure Update Manager
An Azure service to centrally manages updates and compliance at scale.
129 questions
{count} votes

Accepted answer
  1. SwathiDhanwada-MSFT 14,571 Reputation points

    sns You can add tags to the virtual machines and filter them based on your requirement. The -FilterTag parameter in the New-AzConfigurationAssignment cmdlet is used to filter the virtual machines that will be included in the maintenance configuration. The tag key-value pairs that you specify in the filter will be used to match against the tags that are assigned to the virtual machines.

    For example, if you have assigned the tag "Environment" with the value "Production" to your virtual machines, you can use the following filter to include only those virtual machines in the maintenance configuration:

    -FilterTag '{"Environment" : ["Production"]}'
    0 comments No comments

0 additional answers

Sort by: Most helpful