My customer needs to send Windows Event Log Diagnostic Data and perfmon logs to Azure Event Hub from Azure Diagnostic Data as only Azure Diagnostic Extension can send data to Event Hubs . I saw that there is a Policy that one can create in Azure which is "Enable Azure Monitor for VMs" which is in Preview. The link for the same is https://docs.microsoft.com/en-us/azure/azure-monitor/insights/vminsights-enable-at-scale-policy?toc=/azure/governance/policy/toc.json&bc=/azure/governance/policy/breadcrumb/toc.json
But i don't see any policy that would install this Diagnostic Extension. So is there any way that i can install this extension on an already existing VM ? I know for installing extension in a new VM you can specify it in the ARM template when you are declaring the VM definition. But what about already running VMs, where this extension is missing. Looking forward for some help on this.