![](/img/trans.png)
[英]creating a Microsoft.Web/serverfarms resource using ARM template
[英]Deployment template validation failed: 'The resource 'Microsoft.Web/serverfarms/#########' is not defined in the template
嗨,我正在尝试部署 Azure 机器人,但是当我尝试在 Azure Z531B84AD41B2A753DA83ACF367990703ACD9364 上执行命令时收到错误消息
az deployment create --template-file "./template-with-new-rg.json" --location "#####" --parameters appId="#####" appSecret="#####" botId="#####" botSku=## newAppServicePlanName="#####" newWebAppName="#####" groupName="#####" groupLocation="#####" newAppServicePlanLocation="#####" --name "#####"
以下错误:
Azure Error: InvalidTemplate
Message: Deployment template validation failed: 'The resource 'Microsoft.Web/serverfarms/#########' is not defined in the template. Please see https://aka.ms/arm-template for usage details.'.
Additional Information:
Type: TemplateViolation
Info: {
"lineNumber": 0,
"linePosition": 0,
"path": ""
}
模板链接如下
https://www.dropbox.com/s/hxdkbedl2a6sswu/template-with-new-rg.json?dl=0
编辑:截至 2020 年 10 月 1 日,ARM 模板已更新。 请使用当前的 ARM 模板尝试部署。
这是当前(截至 2020 年 8 月 10 日)持续存在的部署问题。 例如,这里提出的问题是相同的,并且链接到另一个再次跟踪它的问题。 机器人框架团队目前正在努力修复。
解决方法是在 Azure 上手动创建空资源组,然后运行命令部署到现有 RG 而不是新的。
我正在监视修复的进度,并会在发布修复后立即更新此答案。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.