Hello experts,
I would like for some guidance regarding the best ways to automate actions on newly created virtual machines.
What I would like to do is to develop someway to automate the creation of managed system identities, install certain extensions, or enabling diagnostic settings as soon as a new VM is created.
My initial thought was to use log analytics to create an alert that runs every 5 minutes and queries for newly created VMs, then use an automation runbook as the action group, to run a piece of powershell code to enable the desired features.
Would anyone suggest a better approach to accomplish my requirement?