Skip to content

Commit

Permalink
Example 2 to use New-AzPolicyExemption (Azure#14716)
Browse files Browse the repository at this point in the history
  • Loading branch information
remcoeissing authored Apr 10, 2021
1 parent e026e41 commit 86b5ceb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Resources/Resources/help/New-AzPolicyExemption.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ The final command exempts the policy assignment in $Assignment at the level of t
```
PS C:\> $ResourceGroup = Get-AzResourceGroup -Name 'ResourceGroup11'
PS C:\> $Assignment = Get-AzPolicyAssignment -Name 'VirtualMachinePolicyAssignment'
PS C:\> New-AzPolicyAssignment -Name 'VirtualMachinePolicyAssignment' -PolicyAssignment $Assignment -Scope $ResourceGroup.ResourceId -ExemptionCategory Mitigated
PS C:\> New-AzPolicyExemption -Name 'VirtualMachinePolicyAssignment' -PolicyAssignment $Assignment -Scope $ResourceGroup.ResourceId -ExemptionCategory Mitigated
```

The first command gets a resource group named ResourceGroup11 by using the Get-AzResourceGroup cmdlet and stores it in the $ResourceGroup variable.
Expand Down

0 comments on commit 86b5ceb

Please sign in to comment.