{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/microsoft-azure-sql-database/json-schema/microsoft-azure-sql-database-elastic-pool-update-schema.json",
  "title": "ElasticPoolUpdate",
  "description": "An elastic pool update.",
  "x-generated": "2026-11-05",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/microsoft-azure-sql-database-elasticpools-api-openapi.yml#/components/schemas/ElasticPoolUpdate",
  "type": "object",
  "properties": {
    "sku": {
      "$ref": "#/$defs/sku"
    },
    "properties": {
      "$ref": "#/$defs/ElasticPoolUpdateProperties"
    },
    "tags": {
      "type": "object",
      "description": "Resource tags.",
      "additionalProperties": {
        "type": "string"
      }
    }
  },
  "$defs": {
    "ElasticPoolPerDatabaseSettings": {
      "type": "object",
      "description": "Per database settings of an elastic pool.",
      "properties": {
        "minCapacity": {
          "type": "number",
          "format": "double",
          "description": "The minimum capacity all databases are guaranteed."
        },
        "maxCapacity": {
          "type": "number",
          "format": "double",
          "description": "The maximum capacity any one database can consume."
        },
        "autoPauseDelay": {
          "type": "integer",
          "format": "int32",
          "description": "Auto Pause Delay for per database within pool"
        }
      }
    },
    "ElasticPoolUpdateProperties": {
      "type": "object",
      "description": "Properties of an elastic pool",
      "properties": {
        "maxSizeBytes": {
          "type": "integer",
          "format": "int64",
          "description": "The storage limit for the database elastic pool in bytes."
        },
        "minCapacity": {
          "type": "number",
          "format": "double",
          "description": "Minimal capacity that serverless pool will not shrink below, if not paused"
        },
        "perDatabaseSettings": {
          "$ref": "#/$defs/ElasticPoolPerDatabaseSettings"
        },
        "zoneRedundant": {
          "type": "boolean",
          "description": "Whether or not this elastic pool is zone redundant, which means the replicas of this elastic pool will be spread across multiple availability zones."
        },
        "licenseType": {
          "$ref": "#/$defs/licenseType"
        },
        "maintenanceConfigurationId": {
          "type": "string",
          "description": "Maintenance configuration id assigned to the elastic pool. This configuration defines the period when the maintenance updates will will occur."
        },
        "highAvailabilityReplicaCount": {
          "type": "integer",
          "format": "int32",
          "description": "The number of secondary replicas associated with the Business Critical, Premium, or Hyperscale edition elastic pool that are used to provide high availability. Applicable only to Hyperscale elastic pools."
        },
        "autoPauseDelay": {
          "type": "integer",
          "format": "int32",
          "description": "Time in minutes after which elastic pool is automatically paused. A value of -1 means that automatic pause is disabled"
        },
        "preferredEnclaveType": {
          "$ref": "#/$defs/preferredEnclaveType"
        },
        "availabilityZone": {
          "$ref": "#/$defs/availabilityZone"
        }
      }
    }
  }
}