The term ‘connect-azuread’ is not recognized as the name of a cmdlet

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.

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.

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

The term ‘connect-azuread’ is not recognized as the name of a cmdlet [Solution]

  1. To fix the error, 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, you can able to execute the connect-azuread PowerShell command successfully.

You may like the following Azure tutorials:

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 !!!