gpt4 book ai didi

powershell - Login-AzureRmAccount 和 Select-AzureRmSubscription

转载 作者:行者123 更新时间:2023-12-02 23:24:15 41 4
gpt4 key购买 nike

我已经在 Windows server 2012 R2 上安装了 AzureRm 和 Azure 模块。我可以从此模块运行其他 cmdlet(例如,AddAzureRmAccount、Get-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

我已经尝试过卸载-重新安装并重新启动虚拟机。

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

最佳答案

好像他们的 powergallery 设置坏了,我使用 webPI 安装了它,它工作正常。

对于 webPI 下载说明:

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

关于powershell - Login-AzureRmAccount 和 Select-AzureRmSubscription,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/41050880/

41 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com