{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/microsoft-azure-sql-database/json-schema/microsoft-azure-sql-database-job-agent-update-schema.json",
  "title": "JobAgentUpdate",
  "description": "An update to an Azure SQL job agent.",
  "x-generated": "2026-11-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/microsoft-azure-sql-database-jobagents-api-openapi.yml#/components/schemas/JobAgentUpdate",
  "type": "object",
  "properties": {
    "identity": {
      "$ref": "#/$defs/JobAgentIdentity",
      "description": "Managed identity assigned to job agent"
    },
    "sku": {
      "$ref": "#/$defs/Sku",
      "description": "The name and tier of the SKU."
    },
    "tags": {
      "type": "object",
      "description": "Resource tags.",
      "additionalProperties": {
        "type": "string"
      }
    }
  },
  "$defs": {
    "Azure.Core.uuid": {
      "type": "string",
      "format": "uuid",
      "description": "Universally Unique Identifier"
    },
    "JobAgentIdentity": {
      "type": "object",
      "description": "Azure Active Directory identity configuration for a resource.",
      "properties": {
        "tenantId": {
          "$ref": "#/$defs/Azure.Core.uuid",
          "description": "The job agent identity tenant id"
        },
        "type": {
          "$ref": "#/$defs/JobAgentIdentityType",
          "description": "The job agent identity type"
        },
        "userAssignedIdentities": {
          "type": "object",
          "description": "The resource ids of the user assigned identities to use",
          "additionalProperties": {
            "$ref": "#/$defs/JobAgentUserAssignedIdentity"
          }
        }
      },
      "required": [
        "type"
      ]
    },
    "JobAgentIdentityType": {
      "type": "string",
      "description": "The job agent identity type",
      "enum": [
        "None",
        "SystemAssigned",
        "UserAssigned",
        "SystemAssignedUserAssigned"
      ],
      "x-ms-enum": {
        "name": "JobAgentIdentityType",
        "modelAsString": true,
        "values": [
          {
            "name": "None",
            "value": "None",
            "description": "None"
          },
          {
            "name": "SystemAssigned",
            "value": "SystemAssigned",
            "description": "SystemAssigned"
          },
          {
            "name": "UserAssigned",
            "value": "UserAssigned",
            "description": "UserAssigned"
          },
          {
            "name": "SystemAssignedUserAssigned",
            "value": "SystemAssignedUserAssigned",
            "description": "SystemAssignedUserAssigned"
          }
        ]
      }
    },
    "JobAgentUserAssignedIdentity": {
      "type": "object",
      "description": "Azure Active Directory identity configuration for a resource.",
      "properties": {
        "principalId": {
          "$ref": "#/$defs/Azure.Core.uuid",
          "description": "The Azure Active Directory principal id.",
          "readOnly": true
        },
        "clientId": {
          "$ref": "#/$defs/Azure.Core.uuid",
          "description": "The Azure Active Directory client id.",
          "readOnly": 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"
      ]
    }
  }
}