我已经从现有的Azure API管理资源生成了模板,对其进行了一些修改,并尝试使用Azure CLI进行部署。但出现以下错误:
Deployment failed. Correlation ID: 7561a68f-54d1-4370-bf6a-175fd93a4b99. {
"error": {
"code": "MethodNotAllowed",
"message": "System group membership cannot be changed",
"details": null
}
}
但是所有API都已创建并且可以正常工作。谁能帮我解决错误。这是我尝试在ubuntu机器中部署的命令:
az group deployment create -g XXXX --template-file azuredeploy.json --parameters @param.json
服务组模板:
{
"type": "Microsoft.ApiManagement/service/groups",
"apiVersion": "2018-06-01-preview",
"name": "[concat(parameters('service_name'), '/administrators')]",
"dependsOn": [
"[resourceId('Microsoft.ApiManagement/service', parameters('service_name'))]"
],
"properties": {
"displayName": "Administrators",
"description": "Administrators is a built-in group. Its membership is managed by the system. Microsoft Azure subscription administrators fall into this group.",
"type": "system"
}
}
答案 0 :(得分:2)
如果要将API管理实例复制到新实例,则有几个选择。 here未列出使用模板。
更新:
我已与Microsoft工程师确认,APIM的ARM模板部署失败是一个已知问题,并计划予以解决。(5/7/2019)