I need to retrieve a list of all Azure AD groups with the naming convention
I have tried using the
-Filter parameter of the
Get-AzureADGroup Cmdlet, but I have encountered some errors. For example,
Get-AzureADGroup -Filter "startswith(DisplayName, 'Department_XY')" works fine, but
Get-AzureADGroup -Filter "endswith(DisplayName, 'Member') throws an error.
I have the AzureAD module installed. Is there a better way to do this?