Login-AzureRmAccount和Select-AzureRmSubscription [英] Login-AzureRmAccount and Select-AzureRmSubscription

查看:107
本文介绍了Login-AzureRmAccount和Select-AzureRmSubscription的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经在Windows Server 2012 R2上安装了AzureRm和Azure模块.我可以从此模块运行其他cmdlet(例如AddAzureRmAccount,Get-AzureRmSubscription),但Login-AzureRmAccount和Select-AzureRmSubscription抛出无法识别的错误:

I have installed AzureRm and Azure module on Windows server 2012 R2. I can run other cmdlets from this module (eg.AddAzureRmAccount, Get-AzureRmSubscription) but Login-AzureRmAccount and Select-AzureRmSubscription are throwing not recognized 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

我已经尝试过卸载,重新安装和重新启动VM.

I have already tried uninstalling-reinstalling and restarting the VM.

我在这里做错了什么?如果以前有人解决过此问题,请提出解决方案.

What am I doing wrong here? If anyone has solved this before, please suggest solution.

推荐答案

似乎他们的powergallery设置已损坏,我使用webPI安装了它,并且工作正常.

Seems like their powergallery setup is broken, I installed it using webPI and it is working fine.

有关webPI下载说明:

For webPI download instructions:

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

这篇关于Login-AzureRmAccount和Select-AzureRmSubscription的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆