This Azure article will discuss the syntax and usage of the Get-AzureADGroup PowerShell command with examples and the solutions to the errors I encountered while executing this command.
Table of Contents
Get-AzureADGroup
This PowerShell command can help you retrieve the Azure AD group lists.
Syntax of Get-AzureADGroup
Below is the syntax of the Get-AzureADGroup PowerShell command.
Get-AzureADGroupGet-AzureADGroup
-ObjectId <String>Get-AzureADGroup
[-SearchString <String>]Get-AzureADGroup Example
You can execute the Azure PowerShell command below to get the available Azure AD group lists.
Get-AzureADGroup
But after executing the above PowerShell command, I got the error “the term ‘get-azureadgroup’ is not recognized as the name of a cmdlet.”
You can see the same error in the below screenshot.

The complete error was
Get-AzureADGroup : The term ‘get-azureadgroup’ is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
At line:1 char:1
- get-azureadgroup
~~~~- CategoryInfo : ObjectNotFound: (get-azureadgroup:String) [], CommandNotFoundException
- FullyQualifiedErrorId : CommandNotFoundException
Now, to fix this error, I followed the below quick steps.
1. You need to install the AzureAD module. Execute the below command using Windows PowerShell ISE or Windows PowerShell.
Install-Module -Name AzureADThere might be a chance you will get the error “No match was found for the specified search criteria and module name ‘AzureAD’”. Try Get-PSRepository to see all available registered module repositories. To fix this, follow my article No match was found for the specified search criteria and module name ‘AzureAD’
Once you successfully install the AzureAD module, You can connect to the Azure.
2. You must call the Connect-AzureAD cmdlet before calling get-azureadgroup. Use the below command and then enter your credentials when asked.

3. Now, I reran the below command to get the AzureAD group details, and I got the expected output successfully, as shown in the below screenshot.
PS C:\windows\system32> get-azureadgroupCheck out the screenshot below, where I got the lists of Azure AD groups successfully without any issues.

You may like the following Azure tutorials:
- How to add bulk guest users in Azure AD B2B from Azure Portal and PowerShell
- What is Azure Active Directory B2B collaboration (Azure AD B2B)
- The term ‘get-aduser’ is not recognized as the name of a cmdlet in Windows PowerShell
- The term ‘connect-azuread’ is not recognized as the name of a cmdlet function Azure
In this Azure tutorial, we discussed the syntax and usage of the Get-AzureADGroup PowerShell command with examples and the solutions to the errors I encountered while executing this command.
I am Bijay, a Microsoft MVP (10 times) having more than 17 years of experience in the software industry. During my IT career, I got a chance to share my expertise in SharePoint and Microsoft Azure, like Azure VM, Azure Active Directory, Azure PowerShell, etc. I hope you will learn from these Azure tutorials. Read more
