系统组成员资格无法更改



我已经从现有的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管理实例复制到新实例,则有几个选项。使用模板在此处未列出。

  • 在API管理中使用备份和还原功能。有关更多信息,请参阅如何通过使用服务备份并在Azure API管理中还原实施灾难恢复。
  • 使用API管理REST API创建自己的备份和还原功能。使用REST API保存并从您想要的服务实例中恢复实体。
  • 使用GIT下载服务配置,然后将其上传到新实例。有关更多信息,请参阅如何使用git保存和配置API管理服务配置。

更新:

我已经与Microsoft Engineer确认,APIM失败的ARM模板部署是一个已知问题,并计划修复它。(5/7/2019(

最新更新