An Azure service that is used to implement corporate governance and standards at scale for Azure resources.
Hello Tapasya Sharma
Thanks for sharing the screenshot.
Error code: NoPolicyEvaluationResult
This error occurs when you try to run Policy Remediation, but Azure Policy has no current compliance evaluation data for the targeted resources.
Remediation can only run on resources that already have a compliance state. If no evaluation result exists, remediation fails.
One or more of the following is true for the error that you got:
1. Policy was recently created, updated, or reassigned
- Compliance scan hasn’t run yet.
2. Policy exclusions or scope were changed
- Old compliance data became invalid.
- Resources were created before the policy existed
- They were never evaluated.
- Compliance data was cleared or expired
- Happens after policy definition/assignment changes.
As a resolution you must force a policy compliance re‑evaluation first, then rerun remediation.
Option 1: Re‑evaluate compliance (Portal – Recommended)
- Go to Azure Portal
- Navigate to Azure Policy
- Select Compliance
- Click Re-evaluate compliance
- Wait until the policy shows a Non-compliant or Compliant state
- Retry Remediation
Option 2: Re‑evaluate compliance using CLI command,
az policy state trigger-scan
Then rerun the remediation once compliance data appears.
Option 3: Delete and recreate remediation task
If re‑evaluation does not help:
- Delete the existing remediation task
- Ensure the policy assignment still exists and scope is correct
- Trigger Re-evaluate compliance
- Create a new remediation task
Remediation cannot create compliance data, Compliance must exist before remediation, Compliance evaluation is not instantaneous. Any change to policy definition, scope, or exclusions invalidates prior results.
Thanks,
Suchitra.