Extracting resource compliance states | How to download data for resource compliance states in Azure Policies|

prasannarajayya 0 Reputation points
2024-03-12T17:32:17.7+00:00

I have several Azure Policies, and from the portal If I go to the assignments and look at the policy I can get the compliance percentage and status of each resource (Compliant or not-compliant), However there is no way for me to download to the data to make actionable tasks.

I want to know what is the best way to download that data.

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

1 answer

Sort by: Most helpful
  1. Monalla-MSFT 11,636 Reputation points
    2024-03-12T18:59:31.5433333+00:00

    @prasannarajayya - Welcome to Microsoft Q&A and thanks for reaching out to us.

    To download the data to make actionable tasks, the recommendation is to export desired compliance states via an ARG query in Resource Graph explorer.

    Here are some examples: Azure Resource Graph sample queries for Azure Policy - Azure Policy | Microsoft Learn

    Hope this helps. and please feel free to reach out if you have any further questions.


    If the above response was helpful, please feel free to "Accept as Answer" and click "Yes" so it can be beneficial to the community.

    0 comments No comments