question

tbgangav-MSFT avatar image
0 Votes"
tbgangav-MSFT asked ·

Azure Monitor for VMs using Policy

How to enable Azure Monitor for VMs for Azure virtual machines or virtual machine scale sets by using Azure Policy?

[Note: As we migrate from MSDN, this answer has been posted by an Azure Cloud Engineer as a frequently asked question] Source: Azure Docs


azure-policy
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

SwathiDhanwada-MSFT avatar image
0 Votes"
SwathiDhanwada-MSFT answered ·

@tbgangav-MSFT To configure enabling the Log Analytics and Dependency agents and identified virtual machines that aren't compliant using Policy i.e., to enable Azure Monitor for VMs by using Azure Policy in your tenant:

Assign the initiative to a scope: management group, subscription, or resource group.

Review and remediate compliance results.

For more information w.r.t it, refer this document.


· Share
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.