File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
src/Resources/Policy.Autorest Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -62,7 +62,7 @@ The final command exempts the policy assignment in $Assignment at the level of t
6262``` powershell
6363$VM = Get-AzVM -Name 'SpecialVM'
6464$Assignment = Get-AzPolicyAssignment -Name 'VirtualMachinePolicyAssignment'
65- New-AzPolicyExemption -Name 'VirtualMachinePolicyAssignment' -PolicyAssignment $Assignment -Scope $SpecialVM .Id -ExemptionCategory Waiver
65+ New-AzPolicyExemption -Name 'VirtualMachinePolicyAssignment' -PolicyAssignment $Assignment -Scope $VM .Id -ExemptionCategory Waiver
6666```
6767
6868The first command gets a VM named SpecialVM by using the Get-AzVM cmdlet and stores it in the $VM variable.
Original file line number Diff line number Diff line change @@ -35,7 +35,7 @@ The final command exempts the policy assignment in $Assignment at the level of t
3535``` powershell
3636$VM = Get-AzVM -Name 'SpecialVM'
3737$Assignment = Get-AzPolicyAssignment -Name 'VirtualMachinePolicyAssignment'
38- New-AzPolicyExemption -Name 'VirtualMachinePolicyAssignment' -PolicyAssignment $Assignment -Scope $SpecialVM .Id -ExemptionCategory Waiver
38+ New-AzPolicyExemption -Name 'VirtualMachinePolicyAssignment' -PolicyAssignment $Assignment -Scope $VM .Id -ExemptionCategory Waiver
3939```
4040
4141The first command gets a VM named SpecialVM by using the Get-AzVM cmdlet and stores it in the $VM variable.
You can’t perform that action at this time.
0 commit comments