Issue with Installing Azure Monitor Agent (AMA) on VMs Using OS Disk Images Despite Policy Configuration using this policy - "Configure Windows virtual machines to run Azure Monitor Agent using system-assigned managed identity"

Pardeep 80 Reputation points
2025-08-19T07:20:31.8966667+00:00

Hello Team,

I’ve configured the Azure Policy “Configure Windows virtual machines to run Azure Monitor Agent using system-assigned managed identity” to ensure AMA is installed across all Windows VMs in our environment.

Here’s what I’ve observed in testing scenarios:

  1. VMs with standard images: AMA was successfully installed.
  2. VMs using custom images: I included the relevant image IDs in the policy parameters, and AMA was installed correctly.
  3. VMs using OS disk images: These VMs did not get the AMA installed, even though they are compliant with the policy in other aspects. Especially these VMs using their OS disk images.

Could you please let me know, Why AMA is not being installed on VMs created from OS disk images, What are the possible ways to ensure AMA installation on these VMs?

Thanks in advance!

Azure Policy
Azure Policy
An Azure service that is used to implement corporate governance and standards at scale for Azure resources.
{count} votes

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.