PS C:\WINDOWS\system32> Login-AzureRMAccount
Login-AzureRMAccount : The term ‘Login-AzureRMAccount’ 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
+ Login-AzureRMAccount
+ ~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (Login-AzureRMAccount:String) [],
+ FullyQualifiedErrorId : CommandNotFoundException

Install Azure resource powershell module using the below command

Open Powershell in elevated module and run the below command
Install-Module AzureRM -AllowClobber

if you don’t have local system admin previleges, you can still install using the -Scope option

Install-Module AzureRM -AllowClobber -Scope CurrentUser

Now, run the command Import-module -Name Azurerm and Get-Module

you can see the module is ready to use. Good Luck!!

2 thoughts on “The term ‘Login-AzureRMAccount’ is not recognized”
  1. does not work for me.. stil Login-AzureRmAccount : The term ‘Login-AzureRmAccount’ is not recognized as the name of a cmdlet

Leave a Reply

Your email address will not be published. Required fields are marked *