File tree 2 files changed +2
-2
lines changed
src/Resources/Policy.Autorest
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
62
62
``` powershell
63
63
$VM = Get-AzVM -Name 'SpecialVM'
64
64
$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
66
66
```
67
67
68
68
The 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
35
35
``` powershell
36
36
$VM = Get-AzVM -Name 'SpecialVM'
37
37
$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
39
39
```
40
40
41
41
The 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