Powershell Gotcha:
If you want to guarantee that you always get an array from a function, wrap the call with @().
$m = @(Get-AzureADGroupMember -ObjectId $g )
$m.count will always be a number.
Exploring the Azure blue seas
Powershell Gotcha:
If you want to guarantee that you always get an array from a function, wrap the call with @().
$m = @(Get-AzureADGroupMember -ObjectId $g )
$m.count will always be a number.