部署模板验证失败:模板中未定义资源'Microsoft.Web / serverfarms / ##########'

时间:2020-08-09 22:45:14

标签: azure botframework

嗨,我正在尝试部署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": ""
        }

下面的模板链接

https://www.dropbox.com/s/hxdkbedl2a6sswu/template-with-new-rg.json?dl=0

1 个答案:

答案 0 :(得分:2)

编辑:自2020年10月1日起,ARM模板已更新。请使用当前的ARM模板尝试部署。

这是当前(截至2020年8月10日)正在进行的部署问题。例如,引发here的问题是相同的,并且链接到另一个跟踪它的问题。机器人框架团队目前正在研究修复程序。

解决方法是在Azure上手动创建您的空资源组,然后运行该命令以部署到现有RG,而不是新的RG。

我正在监视修补程序的进度,并将在发布修补程序后立即更新此答案。

相关问题