Hi mj,
It seems like this could be an issue with existenceCondition
block in your policy or the permissions. The existenceCondition
block is used to specify conditions for compliance evaluations. If the conditions specified in this block are not met, the resource is marked as non-compliant.
Take in consideration that a new policy or initiative assignment takes about five minutes to be applied. New or updated resources within the scope of an existing assignment become available in about 15 minutes. A standard compliance scan occurs every 24 hours. So, you might want to wait for some time for the evaluation to finish and compliance results to become available.
More information
- https://learn.microsoft.com/en-us/azure/governance/policy/samples/pattern-effect-details
- https://learn.microsoft.com/en-us/azure/governance/policy/troubleshoot/general
Let me know if this help or if you need further assisstance.
Luis
If the information helped address your question, please Accept the answer.