{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/microsoft-azure-machine-learning/json-schema/microsoft-azure-machine-learning-compute-resource-schema.json",
  "title": "ComputeResource",
  "description": "Machine Learning compute object wrapped into ARM resource envelope.",
  "x-generated": "2026-11-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/microsoft-azure-machine-learning-openapi.yml#/components/schemas/ComputeResource",
  "type": "object",
  "properties": {
    "properties": {
      "$ref": "#/$defs/Compute"
    },
    "location": {
      "type": "string",
      "description": "Specifies the location of the resource."
    },
    "tags": {
      "type": [
        "object",
        "null"
      ],
      "description": "Contains resource tags defined as key/value pairs.",
      "additionalProperties": {
        "type": "string"
      }
    },
    "sku": {
      "$ref": "../../../../../../common-types/resource-management/v3/types.json#/definitions/Sku"
    },
    "identity": {
      "$ref": "../../../../../../common-types/resource-management/v3/managedidentity.json#/definitions/ManagedServiceIdentity"
    }
  },
  "allOf": [
    {
      "$ref": "../../../../../../common-types/resource-management/v3/types.json#/definitions/ProxyResource"
    }
  ],
  "$defs": {
    "Compute": {
      "type": "object",
      "description": "Machine Learning compute object.",
      "properties": {
        "computeType": {
          "$ref": "#/$defs/ComputeType"
        },
        "computeLocation": {
          "type": "string",
          "description": "Location for the underlying compute",
          "x-ms-mutability": [
            "read",
            "create"
          ]
        },
        "provisioningState": {
          "$ref": "#/$defs/ProvisioningState"
        },
        "description": {
          "type": [
            "string",
            "null"
          ],
          "description": "The description of the Machine Learning compute."
        },
        "createdOn": {
          "type": "string",
          "format": "date-time",
          "description": "The time at which the compute was created.",
          "readOnly": true
        },
        "modifiedOn": {
          "type": "string",
          "format": "date-time",
          "description": "The time at which the compute was last modified.",
          "readOnly": true
        },
        "resourceId": {
          "type": [
            "string",
            "null"
          ],
          "description": "ARM resource id of the underlying compute"
        },
        "provisioningErrors": {
          "type": [
            "array",
            "null"
          ],
          "description": "Errors during provisioning",
          "items": {
            "$ref": "../../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse"
          },
          "readOnly": true
        },
        "isAttachedCompute": {
          "type": "boolean",
          "description": "Indicating whether the compute was provisioned by user and brought from outside if true, or machine learning service provisioned it if false.",
          "readOnly": true
        },
        "disableLocalAuth": {
          "type": "boolean",
          "description": "Opt-out of local authentication and ensure customers can use only MSI and AAD exclusively for authentication.",
          "x-ms-mutability": [
            "read",
            "create"
          ]
        }
      },
      "required": [
        "computeType"
      ]
    },
    "ComputeType": {
      "type": "string",
      "description": "The type of compute",
      "enum": [
        "AKS",
        "Kubernetes",
        "AmlCompute",
        "ComputeInstance",
        "DataFactory",
        "VirtualMachine",
        "HDInsight",
        "Databricks",
        "DataLakeAnalytics",
        "SynapseSpark"
      ],
      "x-ms-enum": {
        "name": "ComputeType",
        "modelAsString": true,
        "values": [
          {
            "name": "AKS",
            "value": "AKS"
          },
          {
            "name": "Kubernetes",
            "value": "Kubernetes"
          },
          {
            "name": "AmlCompute",
            "value": "AmlCompute"
          },
          {
            "name": "ComputeInstance",
            "value": "ComputeInstance"
          },
          {
            "name": "DataFactory",
            "value": "DataFactory"
          },
          {
            "name": "VirtualMachine",
            "value": "VirtualMachine"
          },
          {
            "name": "HDInsight",
            "value": "HDInsight"
          },
          {
            "name": "Databricks",
            "value": "Databricks"
          },
          {
            "name": "DataLakeAnalytics",
            "value": "DataLakeAnalytics"
          },
          {
            "name": "SynapseSpark",
            "value": "SynapseSpark"
          }
        ]
      }
    },
    "ProvisioningState": {
      "type": "string",
      "description": "The provision state of the cluster. Valid values are Unknown, Updating, Provisioning, Succeeded, and Failed.",
      "enum": [
        "Unknown",
        "Updating",
        "Creating",
        "Deleting",
        "Succeeded",
        "Failed",
        "Canceled"
      ],
      "x-ms-enum": {
        "name": "ProvisioningState",
        "modelAsString": true,
        "values": [
          {
            "name": "Unknown",
            "value": "Unknown"
          },
          {
            "name": "Updating",
            "value": "Updating"
          },
          {
            "name": "Creating",
            "value": "Creating"
          },
          {
            "name": "Deleting",
            "value": "Deleting"
          },
          {
            "name": "Succeeded",
            "value": "Succeeded"
          },
          {
            "name": "Failed",
            "value": "Failed"
          },
          {
            "name": "Canceled",
            "value": "Canceled"
          }
        ]
      },
      "readOnly": true
    }
  }
}