gpt4 book ai didi

visual-studio - Azure 资源组错误 : A parameter cannot be found that matches parameter name 'EnvironmentName'

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

我正在尝试按照 this 使用 Visual Studio 2015 创建 Azure 资源组项目教程。但是当我部署时,出现了一个奇怪的错误:

[ERROR] Add-AzureRmAccount : A parameter cannot be found that matches parameter name 
[ERROR] 'EnvironmentName'.
[ERROR] At line:1 char:2379
[ERROR] + ... xmg' -AccountId '<a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="264b5f434b474f4a664953524a49494d0845494b" rel="noreferrer noopener nofollow">[email protected]</a>' -EnvironmentName 'AzureC ...
[ERROR] + ~~~~~~~~~~~~~~~~
[ERROR] + CategoryInfo : InvalidArgument: (:) [Add-AzureRmAccount], Param
[ERROR] eterBindingException
[ERROR] + FullyQualifiedErrorId : NamedParameterNotFound,Microsoft.Azure.Commands.
[ERROR] Profile.AddAzureRMAccountCommand
[ERROR]
[ERROR] Run Login-AzureRmAccount to login.

我更新了最新版本的Azure SDK,但仍然出现同样的错误。请帮我解决这个问题。

最佳答案

Azure PowerShell cmdlet 4.x 版本中发生了重大更改,短期修复是回滚到 3.8。

如果您使用“Install-Module AzureRM”安装 cmdlet,请使用 -RequiredVersion 参数卸载并重新安装,例如

Install-Module AzureRM -RequiredVersion 3.8.0 -Force -AllowClobber

如果您通过 WebPI/MSI/AzureSDK 安装安装了 cmdlet,请从控制面板卸载 Azure PowerShell 并从此处安装 3.8 版本:https://github.com/Azure/azure-powershell/releases/download/v3.8.0-April2017/azure-powershell.3.8.0.msi

我们正在修复 4.x...

关于visual-studio - Azure 资源组错误 : A parameter cannot be found that matches parameter name 'EnvironmentName' ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/44049146/

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