In this Azure AD tutorial, we will discuss how to resolve the error, the term connect-azuread is not recognized, that occurs while trying to connect to Microsoft Azure AD.
Table of Contents
Connect-AzureAD not recognized
Recently, I attempted to connect to Azure AD using the Connect-AzureAD command in Windows PowerShell. I encountered the error shown in the screenshot below.

Solution
- To fix this error, open the Windows PowerShell command prompt in administrator mode.

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

Now, it will install the AzureAD module successfully without any issues. Now, I was able to execute the Connect-AzureAD PowerShell command successfully. Please refer to the screenshot below for your reference.

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 resolve the error ‘connect-azuread: The term ‘connect-azuread’ is not recognized as the name of a cmdlet, function, script file, or executable program.’ check the spelling of the name, or if a path was included, verify that the path is correct and try again. 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
