2016-12-08 11 views
2

Windowsサーバー2012 R2にAzureRmとAzureモジュールをインストールしました。私は、このモジュール(eg.AddAzureRmAccountは、Get-AzureRmSubscription)から他のコマンドレットを実行しますが、ログイン-AzureRmAccountをして選択し、AzureRmSubscriptionはない認識エラーを投げていることができます。Login-AzureRmAccountとSelect-AzureRmSubscription

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 

は、私はすでにアンインストールし、再インストールして、VMを再起動しようとしています。

私はここで間違っていますか?これまで誰かが解決した場合は、解決策を提案してください。

答えて

2

powergalleryセットアップが壊れているようですが、webPIを使用してインストールしても問題ありません。 webPIのダウンロード手順については

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

+0

私は、GitHubでホストされているインストーラを使用して終了しました。https://github.com/Azure/azure-powershell/releases https://docs.microsoft.com/en-us/powershell/azureps- cmdlets-docs / – jackofallcode

1
  • は、Webプラットフォーム インストーラの最新バージョンを使用してAzureのPowerShellをインストールします。
  • 最新の のPowerShellのアップグレードが有効になるように、マシンを再起動する必要があります。
  • オープンPowerShellのかPowershell_iseとは、以下のコマンドを実行してみてください:

Login-AzureRmAccount

  • ポップアップウィンドウがあなたのMicrosoft Azureのアカウントの資格情報を促すアップします。

Install-Module AzureRM -Scope CurrentUser

  • また、以下のコマンドを使用して、紺碧のインストールモジュールを確認してください。

Get-Module -List

  • あなたは、セットアップで行われます。あなたのAzure powershell Scriptingで行ってください。
関連する問題