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

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 function Azure

Recently, I was trying to connect to Azure AD using Connect-AzureAD command from Windows PowerShell, I got the error as the term ‘connect-azuread’ is not recognized as the name of a cmdlet function script file or operable program.

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

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

To fix the error open Windows PowerShell command prompt in administrator mode and then run the below command:

Install-Module AzureAD

Once you run the command successfully, the error the term ‘connect-azuread’ is not recognized as the name of a cmdlet function script will not come.

The term ‘Connect-MsolService’ is not recognized as the name of a cmdlet function script

Similarly, if you are getting error as The term ‘Connect-MsolService’ is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again, then run the below command in Windows PowerShell.

Install-Module -Name MSOnline

After successfully executed, you will not get the error, The term ‘Connect-MsolService’ is not recognized as the name of a cmdlet function script.

You may like following Azure tutorials:

In this Azure tutorial, we discussed how to fix error, the term ‘connect-azuread’ is not recognized as the name of a cmdlet function and The term ‘Connect-MsolService’ is not recognized as the name of a cmdlet function script.

Leave a Comment