Connect-AzureAD not recognized

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.

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.

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

Solution

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

2. The next step is to run the following 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 window below.

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. Please refer to the screenshot below 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 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 !!!

Azure Virtual Machine

DOWNLOAD FREE AZURE VIRTUAL MACHINE PDF

Download our free 25+ page Azure Virtual Machine guide and master cloud deployment today!