首页 > 解决方案 > 使用 api 管理配置服务结构 api 时出错

问题描述

我正在尝试使用 ARM 模板通过 API 管理网关配置托管在服务结构集群中的 Api。我收到以下错误:

New-AzureRmResourceGroupDeployment:晚上 9:08:39 - 资源 Microsoft.ApiManagement/service 'RCISAPIGateway' 失败并显示消息

{
  "code": "UpdateApiServiceFailed",
  "message": "Subnet Subnet-0 is in use by /subscriptions/d1b97a81-6cd1-4929-bd0b-afc8eedb8ee7/resourceGroups/RCIS_ResourceGroup/providers/Microsoft.Network/networkInterfaces/|providers|Microsoft.Compute|virtualMachineScaleSets|nod06rcis|virtualMachines|0|networkInterfaces|NIC-comsvfab06rciscimax-0/ipConfigurations/NIC-comsvfab06rciscimax-0 and cannot be updated with resource navigation links for external resources.",
  "details": null,
  "innerError": null
}

我的问题是:

  1. 我该如何解决这个问题?
  2. 有什么方法可以从 Azure 门户为 Service Fabric 配置 API 管理?

标签: apiazure-service-fabricazure-api-managementsubnetvnet

解决方案


我认为不可能将两种不同的资源添加到 Azure 中的同一个 VNET 子网中。尝试为 APIM 服务添加单独的子网。


推荐阅读