gpt4 book ai didi

powershell - Powershell : Run Login-AzureRmAccount to login

转载 作者:行者123 更新时间:2023-12-03 16:50:03 28 4
gpt4 key购买 nike

我想通过 power shell 使用以下命令在 azure 中创建一个新的资源组:

New-AzureRmResourceGroup - Name name -Location "WesternEurope" 

然后我收到错误消息:

New-AzureRmResourceGroup : Run Login-AzureRmAccount to login."

但我已经使用“Login-AzureRmAccount”登录并输入了我的 Azure 凭据。

编辑:

我明白了。在此页面中,有两个用于为 powershell 安装 azure 模块的命令。 https://azure.microsoft.com/en-gb/documentation/articles/powershell-install-configure/

从 PowerShell 库安装 Azure 资源管理器模块

Install-Module AzureRM

从 PowerShell 库安装 Azure 服务管理模块

Install-Module Azure

使用 AzureRm 模块,它可以工作。

最佳答案

这可能不相关,但 WesternEurope 不是 Location 的有效值。西欧或“西欧”都可以。

这似乎有些牵强,但这有什么区别吗?

关于powershell - Powershell : Run Login-AzureRmAccount to login,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38182741/

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