Skip to content

Commit

Permalink
Update Get-AzPolicyResources.ps1 (#549)
Browse files Browse the repository at this point in the history
Missing 'e' in 'retrieved'
  • Loading branch information
arrerezai authored Apr 12, 2024
1 parent 84e3a4e commit 00661c6
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 {
$numberPrincipalIds = $deployedPolicyResources.numberOfPrincipleIds
$numberPrincipalIdsWithRoleAssignments = $managedRoleAssignmentsByPrincipalId.Count
if ($numberPrincipalIds -ne $numberPrincipalIdsWithRoleAssignments) {
Write-Warning "Role assignment not retrived for every principal Id ($($numberPrincipalIds) in assignments, $($numberPrincipalIdsWithRoleAssignments) retrieved).`n This is likely due to a missing permission for the SPN running the pipeline. Please read the pipeline documentation in EPAC.`n In rare cases, this can happen when a previous role assignment failed." -WarningAction Continue
Write-Warning "Role assignment not retrieved for every principal Id ($($numberPrincipalIds) in assignments, $($numberPrincipalIdsWithRoleAssignments) retrieved).`n This is likely due to a missing permission for the SPN running the pipeline. Please read the pipeline documentation in EPAC.`n In rare cases, this can happen when a previous role assignment failed." -WarningAction Continue
$deployedPolicyResources.roleAssignmentsNotRetrieved = $numberPrincipalIdsWithRoleAssignments -eq 0
}
Write-Information "Role Assignments:"
Expand Down

0 comments on commit 00661c6

Please sign in to comment.