VMSS- Monitoring policy compliances issue

Rajnish Sharma 31 Reputation points
2025-11-10T14:18:56.2666667+00:00
Azure Policy
Azure Policy
An Azure service that is used to implement corporate governance and standards at scale for Azure resources.
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Jerald Felix 9,835 Reputation points
    2025-11-11T02:32:24.07+00:00

    Hello Rajnish Sharma,

    To fix VMSS monitoring policy compliance issues quickly: Head to Azure Policy in the portal, assign built-in definitions like "Deploy Azure Monitor Agent for VMSS" (search under Compute > Virtual Machine Scale Sets) with "DeployIfNotExists" effect to auto-install agents and enable diagnostics. Check the Compliance dashboard for non-compliant VMSS, then run a remediation task to deploy missing extensions without downtime—takes about 15-30 mins. If stuck, verify agent prerequisites via https://aka.ms/gcpol and trigger an on-demand scan with PowerShell: Start-AzPolicyComplianceScan. This should get your VMSS monitored properly.​

    Best Regards,

    Jerald Felix


Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.