【发布时间】:2017-05-18 13:29:12
【问题描述】:
我正在尝试按照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 'myemail@outlook.com' -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,但仍然出现同样的错误。请帮我解决这个问题。
【问题讨论】:
标签: visual-studio powershell azure automated-deploy