In this Azure AD tutorial, we will discuss how to fix the error, the term ‘connect-azuread’ is not recognized as the name of a cmdlet function Azure which comes while trying to connect to Microsoft Azure AD.
Table of Contents
The term ‘connect-azuread’ is not recognized as the name of a cmdlet
Recently, I was trying to connect to Azure AD using the Connect-AzureAD command from Windows PowerShell, I got this error.

The term ‘connect-azuread’ is not recognized as the name of a cmdlet [Solution]
- To fix the error, open the Windows PowerShell command prompt in administrator mode

2. The next step is, to run the below PowerShell cmdlet to Install the Azure AD Module
Install-Module AzureAD
3. Confirm the installation by clicking on the Yes to All button in the below window.

Now it will install the AzureAD module successfully without any issues. Now, you can able to execute the connect-azuread PowerShell command successfully.
You may like the following Azure tutorials:
- How to Connect to Azure in PowerShell (And Azure AD)
- The term ‘Connect-MsolService’ is not recognized as the name of a cmdlet
Wrapping Up
In this Azure tutorial, we discussed how to fix the error, the term ‘connect-azuread’ is not recognized as the name of a cmdlet. Hope this information will help you. Thanks for reading this article !!!
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