gpt4 book ai didi

powershell - New-AzureRmResourceGroupDeployment 命令给出错误

转载 作者:行者123 更新时间:2023-12-04 15:19:01 25 4
gpt4 key购买 nike

当我运行 New-AzureRmResourceGroupDeployment 并传递 JSON 参数文件时,出现以下错误:

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

但是,当我运行相同的命令但传递参数而不是文件时,它工作正常。任何想法我可能会错过什么?

最佳答案

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

关于powershell - New-AzureRmResourceGroupDeployment 命令给出错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/43791442/

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