Connect-AzureAD not recognized

In this Azure AD tutorial, we will discuss how to fix the error, connect-azuread: the term ‘connect-azuread’ is not recognized as a name of a cmdlet, function, script file, or executable program, which comes while trying to connect to Microsoft Azure AD.

Connect-AzureAD not recognized

Recently, I was trying to connect to Azure AD using the Connect-AzureAD command from Windows PowerShell. I got this error.

connect-azuread: the term 'connect-azuread' is not recognized as a name of a cmdlet, function, script file, or executable program.

Below is the complete error message

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.

Connect-AzureAD not recognized [Solution]

  1. To fix the error “the term connect-azuread is not recognized”, open the Windows PowerShell command prompt in administrator mode.
connect-azuread not recognized

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.

connect-azuread is not recognized

Now, it will install the AzureAD module successfully without any issues. Now, I was able to execute the connect-azuread PowerShell command successfully. Check out the below screenshot for your reference.

the term 'connect-azuread' is not recognized as the name of a cmdlet

You may like the following Azure tutorials:

Wrapping Up

In this Azure tutorial, we discussed how to fix the error, connect-azuread: the term ‘connect-azuread’ is not recognized as a 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 !!!