2017-05-04 65 views
5

当我运行New-AzureRmResourceGroupDeployment并传递一个JSON参数文件,我得到了以下错误:新AzureRmResourceGroupDeployment命令给错误

New-AzureRmResourceGroupDeployment : 2:29:31 PM - Resource Microsoft.Sql/servers 'qsservername' failed with message '{ 
    "code": "15021", 
    "message": "Invalid value given for parameter Login. Specify a valid parameter value.", 
    "target": null, 
    "details": [ 
    { 
     "code": "15021", 
     "message": "Invalid value given for parameter Login. Specify a valid parameter value.", 
     "target": null, 
     "severity": "16" 
    } 
    ], 
    "innererror": [] 
}' 
At M:\Azure\Azure Scripts\Something\somethingdeploy.psm1:63 char:4 
+ New-AzureRmResourceGroupDeployment -ResourceGroupName $resourceGro ... 
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 
    + CategoryInfo   : NotSpecified: (:) [New-AzureRmResourceGroupDeployment], Exception 
    + FullyQualifiedErrorId : Microsoft.Azure.Commands.ResourceManager.Cmdlets.Implementation.NewAzureResourceGroupDeploymentCmdlet 

然而,当我运行相同的命令,但传递的参数,而不是该文件,它工作正常。任何想法我可能会失踪?

+0

我刚刚遇到同样的问题 - 您最终解决了它吗? – antmeehan

+0

我的参数文件缺少登录所需的基本参数,导致此错误, – Amy

回答

1

对我来说,当我尝试使用现有的SQL Azure实例资源运行ARM模板时发生此错误。问题是在模板中我指定了一个DB用户名,它与现有实例的管理员用户名不匹配。可以更新密码,但用户名必须在SQL Azure实例的生命周期中保持不变,

+0

可以确认您描述的情况,触发相同的错误 –