Login-AzureRmAccount and Select-AzureRmSubscription

I installed the AzureRm and Azure module on a Windows R2 R2 server. I can run other cmdlets from this module (for example, AddAzureRmAccount, Get-AzureRmSubscription), but Login-AzureRmAccount and Select-AzureRmSubscription throw an unrecognized error:

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 

I have already tried uninstalling, reinstalling and restarting the virtual machine.

What am I doing wrong here? If someone has decided this before, suggest a solution.

+2
powershell azure-powershell
source share
2 answers

It looks like their powergallery setting is broken, I installed it using webPI and it works fine.

Instructions for loading web pages:

https://regularitguy.com/2014/03/13/installing-the-windows-azure-powershell-cmdlets/

+2
source share
  • Install Azure Powershell using the latest installer web platform.
  • You may need to restart your computer for the latest powershell upgrade to take effect.
  • Open Powershell or Powershell_ise and try the following command:

Login-AzureRmAccount

  • A pop-up will appear asking for the credentials of your Microsoft azure account.

AzureRM Installation Module -Scope CurrentUser

  • Also test your modules with azure using the command below.

Get-module -list

  • You have completed the setup. Go with your Azure powershell script.
+1
source share

All Articles