Skip to content

Commit

Permalink
Merge pull request #43 from wetwicky/patch-1
Browse files Browse the repository at this point in the history
Child management groups (if any), are part of the notScope
  • Loading branch information
techlake authored Apr 15, 2022
2 parents bf692ee + 3c11f09 commit 4bcfdb1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Scripts/Helpers/Get-AzPolicyNotScope.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ function Get-NotScope {
$notScope += "$($child.id)"
# Write-Host "##[debug] notScope added $($child.Id)"
}
elseif ($child.type -eq "/providers/Microsoft.Management/managementGroups") {
elseif ($child.type -eq "Microsoft.Management/managementGroups") {
$null = $queuedManagementGroups.Enqueue($child)
# Write-Host "##[debug] enqueue child $($child.Id)"
}
Expand Down

0 comments on commit 4bcfdb1

Please sign in to comment.