Using resource graph explorer to fetch VM status whether it is part of Maintenance configuration

Diptesh Kumar 101 Reputation points
2024-05-15T03:14:57.47+00:00

I have tried to navigate to compute-->virtual machine-->OS profile--> Patch settings .....

but not sure what is the exact parameter I need to use to fetch the VM status whether that any VM in subscription if not available in maintenance configuration I should have query for that and i need to have alert for that..

User's image

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

1 answer

Sort by: Most helpful
  1. Nikhil Mengaram 25 Reputation points Microsoft Employee
    2024-05-15T08:38:12.2566667+00:00

    https://learn.microsoft.com/en-us/azure/update-manager/prerequsite-for-schedule-patching?tabs=new-prereq-portal%2Cauto-portal

    1. You need to check combination of patchSettings -> windowsConfiguration/linuxConfiguration -> patchMode == "Azure-orchestrated" and patchSettings -> windowsConfiguration/linuxConfiguration -> automaticByPlatformSettings -> BypassSafetyChecksOnUserScheduled == true User's image

    Having these conditions enables user to create maintenance configurations for update management

    One can join resources table with maintenanceconfigrations tables to see resources without configuration

    User's image


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.