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



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

EDIT:截至2020年10月1日,ARM模板已更新。请使用当前的ARM模板尝试部署。

这是目前(截至2020年8月10日(持续存在的部署问题。例如,这里提出的问题是相同的,并链接到另一个问题,再次跟踪它。机器人框架团队目前正在进行修复。

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

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

最新更新