{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/microsoft-cognitive-services/json-schema/microsoft-cognitive-services-agent-deployment-schema.json",
  "title": "AgentDeployment",
  "description": "Agent Deployment resource",
  "x-generated": "2026-11-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_superseded/microsoft-cognitive-services-agentdeployment-api-openapi.yml#/components/schemas/AgentDeployment",
  "type": "object",
  "properties": {
    "properties": {
      "$ref": "#/$defs/AgentDeploymentProperties",
      "description": "[Required] Additional attributes of the entity."
    }
  },
  "required": [
    "properties"
  ],
  "allOf": [
    {
      "$ref": "../../../../../../common-types/resource-management/v3/types.json#/definitions/ProxyResource"
    }
  ],
  "$defs": {
    "AgentDeploymentProperties": {
      "type": "object",
      "description": "Type representing an agent deployment as a management construct.",
      "properties": {
        "displayName": {
          "type": [
            "string",
            "null"
          ],
          "description": "Gets or sets the display name of the deployment."
        },
        "deploymentId": {
          "type": [
            "string",
            "null"
          ],
          "description": "Gets or sets the unique identifier of the deployment."
        },
        "state": {
          "$ref": "#/$defs/AgentDeploymentState",
          "description": "Gets or sets the current operational state of the deployment (and, intrinsically, of the comprising agents)."
        },
        "protocols": {
          "type": [
            "array",
            "null"
          ],
          "description": "Gets or sets the supported protocol types and versions exposed by this deployment.",
          "items": {
            "$ref": "#/$defs/AgentProtocolVersion"
          }
        },
        "agents": {
          "type": [
            "array",
            "null"
          ],
          "description": "Returns a flat list of agent:version deployed in this deployment.",
          "items": {
            "$ref": "#/$defs/VersionedAgentReference"
          }
        },
        "deploymentType": {
          "$ref": "#/$defs/AgentDeploymentType",
          "description": "Gets or sets the type of deployment for the agent."
        },
        "provisioningState": {
          "$ref": "#/$defs/AgentDeploymentProvisioningState",
          "description": "Gets or sets the provisioning state of the agent deployment.",
          "readOnly": true
        }
      },
      "required": [
        "deploymentType"
      ],
      "allOf": [
        {
          "$ref": "#/$defs/ResourceBase"
        }
      ]
    },
    "AgentDeploymentProvisioningState": {
      "type": "string",
      "description": "Provisioning state of an agentic deployment, as an Azure resource.",
      "enum": [
        "Succeeded",
        "Failed",
        "Canceled",
        "Creating",
        "Updating",
        "Deleting"
      ],
      "x-ms-enum": {
        "name": "AgentDeploymentProvisioningState",
        "modelAsString": true,
        "values": [
          {
            "name": "Succeeded",
            "value": "Succeeded",
            "description": "The deployment was successfully completed."
          },
          {
            "name": "Failed",
            "value": "Failed",
            "description": "The deployment failed."
          },
          {
            "name": "Canceled",
            "value": "Canceled",
            "description": "The deployment was canceled."
          },
          {
            "name": "Creating",
            "value": "Creating",
            "description": "The deployment is being created."
          },
          {
            "name": "Updating",
            "value": "Updating",
            "description": "The deployment is being updated."
          },
          {
            "name": "Deleting",
            "value": "Deleting",
            "description": "The deployment is being deleted."
          }
        ]
      },
      "readOnly": true
    },
    "AgentDeploymentState": {
      "type": "string",
      "description": "Current operational state of the agentic functionality represented by this deployment.",
      "enum": [
        "Starting",
        "Running",
        "Stopping",
        "Stopped",
        "Failed",
        "Deleting",
        "Deleted",
        "Updating"
      ],
      "x-ms-enum": {
        "name": "AgentDeploymentState",
        "modelAsString": true,
        "values": [
          {
            "name": "Starting",
            "value": "Starting",
            "description": "The deployment is starting."
          },
          {
            "name": "Running",
            "value": "Running",
            "description": "The deployment started/is operational."
          },
          {
            "name": "Stopping",
            "value": "Stopping",
            "description": "The deployment is being stopped."
          },
          {
            "name": "Stopped",
            "value": "Stopped",
            "description": "The deployment was stopped."
          },
          {
            "name": "Failed",
            "value": "Failed",
            "description": "The deployment failed."
          },
          {
            "name": "Deleting",
            "value": "Deleting",
            "description": "The deployment is being deleted."
          },
          {
            "name": "Deleted",
            "value": "Deleted",
            "description": "The deployment was deleted."
          },
          {
            "name": "Updating",
            "value": "Updating",
            "description": "The deployment is being updated."
          }
        ]
      }
    },
    "AgentDeploymentType": {
      "type": "string",
      "description": "Specifies the type of deployment for an agent, indicating how the underlying compute and network infrastructure is managed.",
      "enum": [
        "Managed",
        "Hosted",
        "Custom"
      ],
      "x-ms-enum": {
        "name": "AgentDeploymentType",
        "modelAsString": true,
        "values": [
          {
            "name": "Managed",
            "value": "Managed",
            "description": "The underlying infra is managed by the platform in the deployer's subscription"
          },
          {
            "name": "Hosted",
            "value": "Hosted",
            "description": "The underlying infra is owned by the platform"
          },
          {
            "name": "Custom",
            "value": "Custom",
            "description": "The underlying infra is provisioned by the deployer (BYO)"
          }
        ]
      }
    },
    "AgentProtocol": {
      "type": "string",
      "description": "Protocol used by the agent/exposed by a deployment.",
      "enum": [
        "Agent",
        "A2A",
        "Responses"
      ],
      "x-ms-enum": {
        "name": "AgentProtocol",
        "modelAsString": true,
        "values": [
          {
            "name": "Agent",
            "value": "Agent",
            "description": "Agent protocol (aka Active)"
          },
          {
            "name": "A2A",
            "value": "A2A",
            "description": "Agent2Agent standard"
          },
          {
            "name": "Responses",
            "value": "Responses",
            "description": "OpenAI-compatible"
          }
        ]
      }
    },
    "AgentProtocolVersion": {
      "type": "object",
      "description": "Type modeling the protocol and version used by an agent/exposed by a deployment.",
      "properties": {
        "protocol": {
          "$ref": "#/$defs/AgentProtocol",
          "description": "The protocol used by the agent/exposed by a deployment."
        },
        "version": {
          "type": [
            "string",
            "null"
          ],
          "description": "The version of the protocol."
        }
      }
    },
    "AgentReferenceProperties": {
      "type": "object",
      "description": "Type modeling a reference to a version of an agent definition.",
      "properties": {
        "agentId": {
          "type": [
            "string",
            "null"
          ],
          "description": "Gets the agent's unique identifier within the organization (subscription)."
        },
        "agentName": {
          "type": [
            "string",
            "null"
          ],
          "description": "Gets the agent's name (unique within the project/app)."
        }
      }
    },
    "ResourceBase": {
      "type": "object",
      "properties": {
        "description": {
          "type": [
            "string",
            "null"
          ],
          "description": "The asset description text."
        },
        "tags": {
          "type": [
            "object",
            "null"
          ],
          "description": "Tag dictionary. Tags can be added, removed, and updated.",
          "additionalProperties": {
            "type": "string"
          }
        }
      }
    },
    "VersionedAgentReference": {
      "type": "object",
      "description": "Type modeling a reference to a version of an agent definition.",
      "properties": {
        "agentVersion": {
          "type": [
            "string",
            "null"
          ],
          "description": "Gets the agent's version (unique for each agent lineage)."
        }
      },
      "allOf": [
        {
          "$ref": "#/$defs/AgentReferenceProperties"
        }
      ]
    }
  }
}