Azure Policy
An Azure service that is used to implement corporate governance and standards at scale for Azure resources.
961 questions
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Im trying to figure out a way to export the non-compliant resources from a specific Policy within ASC. I have tried the Get-AzPolicyState command but that does not give me the non-compliant resources within a policy.
Hello, you should be able to get results with something like this:
Get-AzPolicyState -Filter "ComplianceState eq 'NonCompliant' and PolicySetDefinitionName eq 'your_policyset_definition_name'"
----------
If any reply helped solve your question, please remember to upvote and/or "Accept Answer".
It helps others facing similar issues find the solution.