Skip to content

Commit

Permalink
Merge pull request #115 from Azure/feature/fixes
Browse files Browse the repository at this point in the history
Fixes Exemption deploy
  • Loading branch information
techlake authored Jan 21, 2023
2 parents 3865a44 + 49879ea commit 52cb732
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Scripts/Deploy/Deploy-PolicyPlan.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -415,7 +415,7 @@ else {
}
else {
# Retrieve Policy Assignment
$assignment = Get-Assignment -Id $policyAssignmentId
$assignment = Get-AzPolicyAssignment -Id $policyAssignmentId
$null = $assignmentsCache.Add($policyAssignmentId, $assignment)
}
$null = New-AzPolicyExemption @filteredExemption -PolicyAssignment $assignment
Expand All @@ -442,7 +442,7 @@ else {
}
else {
# Retrieve Policy Assignment
$assignment = Get-Assignment -Id $policyAssignmentId
$assignment = Get-AzPolicyAssignment -Id $policyAssignmentId
$null = $assignmentsCache.Add($policyAssignmentId, $assignment)
}
$null = New-AzPolicyExemption @filteredExemption -PolicyAssignment $assignment
Expand Down

0 comments on commit 52cb732

Please sign in to comment.