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
Filter uses DisplayName. Which is not a uniqe property. script fails if you have multiple groups with same displayname, typically security and distribution groups with same displayname.
Changing to GUID or adding something that handles multple groups solves it.
To make it work in my case where it has multiple groups with the same displayname, I just picked the first one. Should work regardless of result size.
if ($AzureAdGroupDetails.Count-gt1) {
# Some message here about multiple groups. and selecting the first 1$AzureAdGroupDetails=$AzureAdGroupDetails|Select-Object-First 1
}
The text was updated successfully, but these errors were encountered:
Get-RubrikM365SizingInfo.ps1, line 311.
Filter uses DisplayName. Which is not a uniqe property. script fails if you have multiple groups with same displayname, typically security and distribution groups with same displayname.
Changing to GUID or adding something that handles multple groups solves it.
To make it work in my case where it has multiple groups with the same displayname, I just picked the first one. Should work regardless of result size.
alternatively
The text was updated successfully, but these errors were encountered: