Skip to content

Commit 5b33270

Browse files
authored
fix examples for new-azpolicyexemption (#27220)
1 parent 2dacde6 commit 5b33270

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Resources/Policy.Autorest/docs/New-AzPolicyExemption.md

+1-1
Original file line numberDiff line numberDiff 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

6868
The first command gets a VM named SpecialVM by using the Get-AzVM cmdlet and stores it in the $VM variable.

src/Resources/Policy.Autorest/examples/New-AzPolicyExemption.md

+1-1
Original file line numberDiff line numberDiff 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

4141
The first command gets a VM named SpecialVM by using the Get-AzVM cmdlet and stores it in the $VM variable.

0 commit comments

Comments
 (0)