Resource Skus API返回冲突的信息

时间:2019-02-20 21:33:17

标签: azure azure-resource-manager

我们正在使用ResourceSkus API来获取特定区域中订阅的可用VM。但是,我发现东南亚的F2S_v2大小有些奇怪的行为。 API返回信息,说明大小同时可用并受限制。检查可用性时,我应该信任locationInfo字段还是限制字段?

{
    "resourceType": "virtualMachines",
    "name": "Standard_F2s_v2",
    "tier": "Standard",
    "size": "F2s_v2",
    "family": "standardFSv2Family",
    "kind": null,
    "capacity": null,
    "locations": [ "southeastasia" ],
    "locationInfo": [
      {
        "location": "southeastasia",
        "zones": [ "3" ]
      }
    ],
    "apiVersions": null,
    "costs": null,
    "capabilities": [

    ],
    "restrictions": [
      {
        "type": "Zone",
        "values": [ "southeastasia" ],
        "restrictionInfo": {
          "locations": [ "southeastasia" ],
          "zones": [ "1", "2", "3" ]
        },
        "reasonCode": "NotAvailableForSubscription"
      }
    ]
  }

1 个答案:

答案 0 :(得分:0)

我发现有两种类型的限制:ZoneLocationZone指示无法在该位置的可用性区域中使用VM大小。 Location表示在该位置没有可用的尺寸。