Let us discuss how to fix the error “The term ‘Add-AzureAccount’ is not recognized” which I got while executing the Add-AzureAccount PowerShell command.
Table of Contents
The term ‘Add-AzureAccount’ is not recognized
I was executing the below PowerShell command recently and got this error.
Add-AzureAccount
The complete error message is as follows.
Add-AzureAccount: The term ‘Add-AzureAccount’ 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.
At line:1 char:1
- Add-AzureAccount
~~~~- CategoryInfo : ObjectNotFound: (Add-AzureAccount:String) [], CommandNotFoundException
- FullyQualifiedErrorId : CommandNotFoundException
You can see the same error in the below screenshot.

The term ‘Add-AzureAccount’ is not recognized [Solved]
Follow the below steps to fix this error.
- Open the PowerShell ISE with “Run as administrator” mode.
- Execute the below PowerShell command to install the Azure module.
Install-Module Azure
Click on the Yes to All button.

It took a few seconds to complete the installation.

3. Re-ran the below command; this time, the command was executed successfully without any issues.
Add-AzureAccount
You can see the same successful output in the below screenshot.

Wrapping Up
We discussed fixing the error “The term ‘Add-AzureAccount’ is not recognized,” which I got while executing the Add-AzureAccount PowerShell command. Thanks for reading this article !!!

I am Rajkishore, and I have over 14 years of experience in Microsoft Azure and AWS, with good experience in Azure Functions, Storage, Virtual Machine, Logic Apps, PowerShell Commands, CLI Commands, Machine Learning, AI, Azure Cognitive Services, DevOps, etc. Not only that, I do have good real-time experience in designing and developing cloud-native data integrations on Azure or AWS, etc. I hope you will learn from these practical Azure tutorials. Read more.