Skip to content

Commit

Permalink
Merge pull request #634 from Azure/617-build-exemptionsplan-function-…
Browse files Browse the repository at this point in the history
…fails-when-trying-to-add-builtin-and-custom-policy-sets-as-exemptions

bug fix for 617
  • Loading branch information
apybar authored May 17, 2024
2 parents faea595 + a8e7e35 commit b7747af
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Scripts/Helpers/Build-ExemptionsPlan.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -381,7 +381,7 @@ function Build-ExemptionsPlan {
$policySetDefinitionId = Confirm-PolicySetDefinitionUsedExists `
-Name $policySetDefinitionName `
-PolicyDefinitionsScopes $PacEnvironment.policyDefinitionsScopes `
-AllDefinitions $AllDefinitions.policysetdefinitions
-AllPolicySetDefinitions $AllDefinitions.policysetdefinitions
if ($null -eq $policySetDefinitionId) {
Write-Warning "Row $($entryNumber): policySetDefinitionName '$policySetDefinitionName' not found in current root scope $($PacEnvironment.deploymentRootScope), skipping row"
}
Expand All @@ -398,7 +398,7 @@ function Build-ExemptionsPlan {
$policySetDefinitionId = Confirm-PolicySetDefinitionUsedExists `
-Id $policySetDefinitionId `
-PolicyDefinitionsScopes $PacEnvironment.policyDefinitionsScopes `
-AllDefinitions $AllDefinitions.policysetdefinitions
-AllPolicySetDefinitions $AllDefinitions.policysetdefinitions
if ($null -eq $policySetDefinitionId) {
Write-Warning "Row $($entryNumber): policySetDefinitionId '$($epacMetadataDefinitionSpecification.policySetDefinitionId)' not found in current root scope $($PacEnvironment.deploymentRootScope), skipping row"
}
Expand Down

0 comments on commit b7747af

Please sign in to comment.