{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/microsoft-azure-functions/json-schema/microsoft-azure-functions-worker-pool-resource-schema.json",
  "title": "WorkerPoolResource",
  "description": "Worker pool of an App Service Environment ARM resource.",
  "x-generated": "2026-11-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/microsoft-azure-functions-appserviceenvironments-api-openapi.yml#/components/schemas/WorkerPoolResource",
  "type": "object",
  "properties": {
    "properties": {
      "$ref": "#/$defs/WorkerPool",
      "description": "Core resource properties",
      "x-ms-client-flatten": true
    },
    "sku": {
      "$ref": "#/$defs/SkuDescription",
      "description": "Description of a SKU for a scalable resource."
    },
    "kind": {
      "type": "string",
      "description": "Kind of resource. If the resource is an app, you can refer to https://github.com/Azure/app-service-linux-docs/blob/master/Things_You_Should_Know/kind_property.md#app-service-resource-kind-reference for details supported values for kind."
    }
  },
  "allOf": [
    {
      "$ref": "../../../../../../common-types/resource-management/v5/types.json#/definitions/ProxyResource"
    }
  ],
  "$defs": {
    "Capability": {
      "type": "object",
      "description": "Describes the capabilities/features allowed for a specific SKU.",
      "properties": {
        "name": {
          "type": "string",
          "description": "Name of the SKU capability."
        },
        "value": {
          "type": "string",
          "description": "Value of the SKU capability."
        },
        "reason": {
          "type": "string",
          "description": "Reason of the SKU capability."
        }
      }
    },
    "ComputeModeOptions": {
      "type": "string",
      "description": "Shared/dedicated workers.",
      "enum": [
        "Shared",
        "Dedicated",
        "Dynamic"
      ],
      "x-ms-enum": {
        "name": "ComputeModeOptions",
        "modelAsString": false
      }
    },
    "SkuCapacity": {
      "type": "object",
      "description": "Description of the App Service plan scale options.",
      "properties": {
        "minimum": {
          "type": "integer",
          "format": "int32",
          "description": "Minimum number of workers for this App Service plan SKU."
        },
        "maximum": {
          "type": "integer",
          "format": "int32",
          "description": "Maximum number of workers for this App Service plan SKU."
        },
        "elasticMaximum": {
          "type": "integer",
          "format": "int32",
          "description": "Maximum number of Elastic workers for this App Service plan SKU."
        },
        "default": {
          "type": "integer",
          "format": "int32",
          "description": "Default number of workers for this App Service plan SKU."
        },
        "scaleType": {
          "type": "string",
          "description": "Available scale configurations for an App Service plan."
        }
      }
    },
    "SkuDescription": {
      "type": "object",
      "description": "Description of a SKU for a scalable resource.",
      "properties": {
        "name": {
          "type": "string",
          "description": "Name of the resource SKU."
        },
        "tier": {
          "type": "string",
          "description": "Service tier of the resource SKU."
        },
        "size": {
          "type": "string",
          "description": "Size specifier of the resource SKU."
        },
        "family": {
          "type": "string",
          "description": "Family code of the resource SKU."
        },
        "capacity": {
          "type": "integer",
          "format": "int32",
          "description": "Current number of instances assigned to the resource."
        },
        "skuCapacity": {
          "$ref": "#/$defs/SkuCapacity",
          "description": "Min, max, and default scale values of the SKU."
        },
        "locations": {
          "type": "array",
          "description": "Locations of the SKU.",
          "items": {
            "type": "string"
          }
        },
        "capabilities": {
          "type": "array",
          "description": "Capabilities of the SKU, e.g., is traffic manager enabled?",
          "items": {
            "$ref": "#/$defs/Capability"
          },
          "x-ms-identifiers": [
            "name"
          ]
        }
      }
    },
    "WorkerPool": {
      "type": "object",
      "description": "Worker pool of an App Service Environment.",
      "properties": {
        "workerSizeId": {
          "type": "integer",
          "format": "int32",
          "description": "Worker size ID for referencing this worker pool."
        },
        "computeMode": {
          "$ref": "#/$defs/ComputeModeOptions",
          "description": "Shared or dedicated app hosting."
        },
        "workerSize": {
          "type": "string",
          "description": "VM size of the worker pool instances."
        },
        "workerCount": {
          "type": "integer",
          "format": "int32",
          "description": "Number of instances in the worker pool."
        },
        "instanceNames": {
          "type": "array",
          "description": "Names of all instances in the worker pool (read only).",
          "items": {
            "type": "string"
          },
          "readOnly": true
        }
      }
    }
  }
}