部署模板验证失败:'模板中未定义资源 'Microsoft.Web/serverfarms/#########'
Deployment template validation failed: 'The resource 'Microsoft.Web/serverfarms/#########' is not defined in the template
您好,我正在尝试部署 Azure 机器人,但是当我在 Azure Powershell 上尝试命令时收到错误 Windows:
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": ""
}
下面的模板link
https://www.dropbox.com/s/hxdkbedl2a6sswu/template-with-new-rg.json?dl=0
编辑:自 2020 年 10 月 1 日起,ARM 模板已更新。请使用当前的 ARM 模板尝试部署。
这是当前(截至 2020 年 8 月 10 日)持续存在的部署问题。例如,提出的问题 here 是相同的,并链接到另一个再次跟踪它的问题。机器人框架团队目前正在修复。
解决方法是在 Azure 上手动创建空资源组,然后 运行 命令 deploy-to-existing-RG 而不是新资源组。
我正在监控修复的进度,一旦修复发布就会更新此答案。
您好,我正在尝试部署 Azure 机器人,但是当我在 Azure Powershell 上尝试命令时收到错误 Windows:
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": ""
}
下面的模板link
https://www.dropbox.com/s/hxdkbedl2a6sswu/template-with-new-rg.json?dl=0
编辑:自 2020 年 10 月 1 日起,ARM 模板已更新。请使用当前的 ARM 模板尝试部署。
这是当前(截至 2020 年 8 月 10 日)持续存在的部署问题。例如,提出的问题 here 是相同的,并链接到另一个再次跟踪它的问题。机器人框架团队目前正在修复。
解决方法是在 Azure 上手动创建空资源组,然后 运行 命令 deploy-to-existing-RG 而不是新资源组。
我正在监控修复的进度,一旦修复发布就会更新此答案。