{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/microsoft-azure-sql-database/json-schema/microsoft-azure-sql-database-instance-pool-schema.json",
  "title": "InstancePool",
  "description": "An Azure SQL instance pool.",
  "x-generated": "2026-11-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/microsoft-azure-sql-database-instancepools-api-openapi.yml#/components/schemas/InstancePool",
  "type": "object",
  "properties": {
    "properties": {
      "$ref": "#/$defs/InstancePoolProperties",
      "description": "Resource properties.",
      "x-ms-client-flatten": true
    },
    "sku": {
      "$ref": "#/$defs/Sku",
      "description": "The name and tier of the SKU."
    }
  },
  "allOf": [
    {
      "$ref": "#/$defs/TrackedResource"
    }
  ],
  "$defs": {
    "InstancePoolLicenseType": {
      "type": "string",
      "description": "The license type. Possible values are 'LicenseIncluded' (price for SQL license is included) and 'BasePrice' (without SQL license price).",
      "enum": [
        "LicenseIncluded",
        "BasePrice"
      ],
      "x-ms-enum": {
        "name": "InstancePoolLicenseType",
        "modelAsString": true,
        "values": [
          {
            "name": "LicenseIncluded",
            "value": "LicenseIncluded",
            "description": "LicenseIncluded"
          },
          {
            "name": "BasePrice",
            "value": "BasePrice",
            "description": "BasePrice"
          }
        ]
      }
    },
    "InstancePoolProperties": {
      "type": "object",
      "description": "Properties of an instance pool.",
      "properties": {
        "subnetId": {
          "type": "string",
          "description": "Resource ID of the subnet to place this instance pool in.",
          "x-ms-mutability": [
            "read",
            "create"
          ]
        },
        "vCores": {
          "type": "integer",
          "format": "int32",
          "description": "Count of vCores belonging to this instance pool."
        },
        "licenseType": {
          "$ref": "#/$defs/InstancePoolLicenseType",
          "description": "The license type. Possible values are 'LicenseIncluded' (price for SQL license is included) and 'BasePrice' (without SQL license price)."
        },
        "dnsZone": {
          "type": "string",
          "description": "The Dns Zone that the managed instance pool is in.",
          "readOnly": true
        },
        "maintenanceConfigurationId": {
          "type": "string",
          "format": "arm-id",
          "description": "Specifies maintenance configuration id to apply to this managed instance.",
          "x-ms-arm-id-details": {
            "allowedResources": [
              {
                "type": "Microsoft.Maintenance/publicMaintenanceConfigurations"
              }
            ]
          }
        }
      },
      "required": [
        "subnetId",
        "vCores",
        "licenseType"
      ]
    },
    "Resource": {
      "type": "object",
      "description": "Referenced by this document but never defined in it. API Evangelist added this empty placeholder so the document resolves; the shape is unknown and is NOT a claim about the API.",
      "x-ae-placeholder": true
    },
    "Sku": {
      "type": "object",
      "description": "An ARM Resource SKU.",
      "properties": {
        "name": {
          "type": "string",
          "description": "The name of the SKU, typically, a letter + Number code, e.g. P3."
        },
        "tier": {
          "type": "string",
          "description": "The tier or edition of the particular SKU, e.g. Basic, Premium."
        },
        "size": {
          "type": "string",
          "description": "Size of the particular SKU"
        },
        "family": {
          "type": "string",
          "description": "If the service has different generations of hardware, for the same SKU, then that can be captured here."
        },
        "capacity": {
          "type": "integer",
          "format": "int32",
          "description": "Capacity of the particular SKU."
        }
      },
      "required": [
        "name"
      ]
    },
    "TrackedResource": {
      "type": "object",
      "title": "Tracked Resource",
      "description": "The resource model definition for an Azure Resource Manager tracked top level resource which has 'tags' and a 'location'",
      "properties": {
        "tags": {
          "type": "object",
          "description": "Resource tags.",
          "additionalProperties": {
            "type": "string"
          },
          "x-ms-mutability": [
            "read",
            "create",
            "update"
          ]
        },
        "location": {
          "type": "string",
          "description": "The geo-location where the resource lives",
          "x-ms-mutability": [
            "read",
            "create"
          ]
        }
      },
      "required": [
        "location"
      ],
      "allOf": [
        {
          "$ref": "#/$defs/Resource"
        }
      ]
    }
  }
}