Azure Custom Policy no complience Data

mj 0 Reputation points
2023-12-15T07:57:20.6633333+00:00

Hello Peoples,

I've got a little issue with the complience evaluation of my custom policy.

Let me give you a quick outline:

I deployed an initiative containing a lot of different policies which are deploying different alerts for me. Similar to the Monitor Basline Policies (https://azure.github.io/azure-monitor-baseline-alerts/welcome/) The Deployment/Policy Scope was a Subscription "over" lighthouse.

The Deployment works fine and so does the remediation, but i don't get any complience "respones".

On the lighthouse tennant i get the following message:

User's image

And if I log directly into the tennant i get the following:

User's image

And this is the existenceCondition Block.

User's image

Any ideas on what could be the issue?

BR,

Matthias

Azure Policy
Azure Policy
An Azure service that is used to implement corporate governance and standards at scale for Azure resources.
1,018 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Luis Arias 8,621 Reputation points Volunteer Moderator
    2023-12-19T22:10:45.31+00:00

    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

    Let me know if this help or if you need further assisstance.

    Luis


    If the information helped address your question, please Accept the answer.


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.