Setting up proper dynamic scope for patching virtual machines

sns 9,236 Reputation points
2023-11-17T05:23:11.8366667+00:00

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.
298 questions
{count} votes

Accepted answer
  1. SwathiDhanwada-MSFT 18,756 Reputation points
    2023-11-20T10:33:46.63+00:00

    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

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.