Error:
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) [],
CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
Solution:
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!!
Thanks Radhakrishnan. Information is useful for me to over from the login issue.
does not work for me.. stil Login-AzureRmAccount : The term ‘Login-AzureRmAccount’ is not recognized as the name of a cmdlet