我已经从现有的 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"
}
}
最佳答案
如果您想要将 API 管理实例复制到新实例,您有多种选择。使用未列出的模板here 。
- 使用 API 管理中的备份和恢复功能。欲了解更多信息,请参阅How to implement disaster recovery by using service backup and restore in Azure API Management .
- 使用 API Management REST API 创建您自己的备份和恢复功能。使用 REST API 从所需的服务实例中保存和恢复实体。
- 使用 Git 下载服务配置,然后将其上传到新实例。欲了解更多信息,请参阅How to save and configure your API Management service configuration by using Git .
更新:
我已与 Microsoft 工程师确认,APIM 的 ARM 模板部署失败是一个已知问题,并计划修复该问题。(2019 年 5 月 7 日)
关于azure - 系统组成员身份无法更改,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/55932603/