You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Set number of affected Items to value of filtered items (for example, original alert has two affected items, but all of them are break glass and excluded from the test)
if ($Alert.Count-gt"0"-and$AffectedRoleAssignments.Count-gt0) {
73
+
#Set number of affected Items to value of filtered items (for example, original alert has two affected items, but all of them are break glass and excluded from the test)
if ($null-ne$AffectedRoleAssignment.AssigneeDisplayName-or$null-ne$AffectedRoleAssignment.RoleDisplayName) {
92
-
" - $($AffectedRoleAssignment.AssigneeDisplayName) with $($AffectedRoleAssignment.RoleDisplayName) by AssigneeId $($AffectedRoleAssignment.AssigneeId)`n"
if ($null-ne$AffectedRoleAssignment.AssigneeDisplayName-or$null-ne$AffectedRoleAssignment.RoleDisplayName) {
93
+
" - $($AffectedRoleAssignment.AssigneeDisplayName) with $($AffectedRoleAssignment.RoleDisplayName) by AssigneeId $($AffectedRoleAssignment.AssigneeId)`n"
if ($Alert.Count-gt"0"-and$AffectedRoleAssignments.Count-gt0) {
98
100
$testResult="$($Alert.alertDescription)`n`n
99
101
$($AffectedRoleAssignmentSummary)
100
102
Get more details from the PIM alert [$($Alert.alertName)](https://portal.azure.com/#view/Microsoft_Azure_PIMCommon/AlertDetail/providerId/aadroles/alertId/$($AlertId)/resourceId/$($tenantId)) in the Azure Portal.
0 commit comments