Azure policy exception

Az Cloud Learner 71 Reputation points
2021-01-28T05:48:45.193+00:00

Hello,

Is there any command (PowerShell or AzCLI command) to get the Azure policy exception details ??

Thank you.

Azure Monitor
Azure Monitor
An Azure service that is used to collect, analyze, and act on telemetry data from Azure and on-premises environments.
3,257 questions
Azure Policy
Azure Policy
An Azure service that is used to implement corporate governance and standards at scale for Azure resources.
883 questions
{count} votes

Accepted answer
  1. Stanislav Zhelyazkov 24,051 Reputation points MVP
    2021-01-28T13:50:24.267+00:00

    Hi,
    Can you try:

    $policy = Get-AzPolicyAssignment -Name <your policy name>  
    $policy.Properties.NotScopes  
    

    Please "Accept the answer" if the information helped you. This will help us and others in the community as well.


0 additional answers

Sort by: Most helpful

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.