- I have an Azure policy which install Microsoft monitoring agent on all the VMs
- I have Automation Account which is linked to the Log analytics workspace.
- The Automation Account has a scheduler which has a dynamic query to fetch all the VMs with Tag "PatchManagement" Enabled = $true.
- The scheduler makes use of the Microsoft Runbook "Patch-MicrosoftOMSComputers" to apply the patched on the Dynamic VMs fetched by the above query.
The Issue is
- The update management is not Enabled on the Automation Account and the VM's
- Is there a way we can automate enabling of the Update management on all the VM's created in a subscription and link into the automation account update management using the query of the scheduler.
I followed the link "enter link description here", to implement this solution.