Azure API 管理 - 禁用网关:没有在子网上执行操作 'join/action' 的权限?

Azure API management - disableGateway : doesn't have permission to perform action 'join/action' on subnet?

我有 Azure API 管理 - 高级部署在东西两个位置。

我想通过 运行 下面的 Azure cli

禁用 East 位置
az apim update --name apimx --resource-group rg --set additionalLocations[0].disableGateway=true

它抛出以下错误

doesn't have permission to perform action 'join/action' on the linked scope(s) /subscription/..../subnets/APIM

为什么它会尝试更新子网,会发生什么样的更新?

How to use Azure API Management with virtual networks 页面上提到

The VIP address of the API Management instance will change each time VNET is enabled or disabled. The VIP address will also change when API Management is moved from External to Internal, or vice-versa.

因此可能是东西方的每个位置都有自己的 VIP,这就是 VNet 中正在更新的内容。

API 管理资源也可以根据其文档中的评论使用子网委派:

Enabling endpoints directly from API Management delegated subnet to these services allows them to use the Microsoft Azure backbone network providing optimal routing for service traffic.

所以我假设如果您打开和关闭它,它会更新 VNet