Skip to content

Commit

Permalink
Revert "Update Get-AzPolicyResources.ps1 (#319)" (#320)
Browse files Browse the repository at this point in the history
This reverts commit ac62307.
  • Loading branch information
techlake authored Aug 18, 2023
1 parent ac62307 commit 303a9b3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Scripts/Helpers/Get-AzPolicyResources.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -313,7 +313,7 @@ function Get-AzPolicyResources {
$scopesCovered[$scope] = $true
$results = @()
Write-Information " $scope"
$results += Get-AzRoleAssignment | Where-Object {$_.scope -eq $scope}
$results += Get-AzRoleAssignment -Scope $scope -WarningAction SilentlyContinue
$scopesCollectedCount++
$localScopesCovered = @{}
foreach ($result in $results) {
Expand Down

0 comments on commit 303a9b3

Please sign in to comment.