{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/microsoft-azure/json-schema/microsoft-azure-deployment-operation-schema.json",
  "title": "DeploymentOperation",
  "description": "Deployment operation information.",
  "x-generated": "2026-11-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/microsoft-azure-deployment-operations-api-openapi.yml#/components/schemas/DeploymentOperation",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "description": "Full deployment operation ID.",
      "readOnly": true
    },
    "operationId": {
      "type": "string",
      "description": "Deployment operation ID.",
      "readOnly": true
    },
    "properties": {
      "$ref": "#/$defs/DeploymentOperationProperties",
      "description": "Deployment properties."
    }
  },
  "$defs": {
    "DeploymentExtensionConfigItem": {
      "type": "object",
      "description": "Represents the value for an extension config property.",
      "properties": {
        "value": {
          "description": "The value of the extension config property."
        },
        "keyVaultReference": {
          "$ref": "#/$defs/KeyVaultParameterReference",
          "description": "The Azure Key Vault reference used to retrieve the secret value of the extension config property."
        }
      }
    },
    "DeploymentExtensionDefinition": {
      "type": "object",
      "properties": {
        "alias": {
          "type": "string",
          "description": "The alias of the extension as defined in the deployment template.",
          "readOnly": true
        },
        "name": {
          "type": "string",
          "description": "The extension name.",
          "readOnly": true
        },
        "version": {
          "type": "string",
          "description": "The extension version.",
          "readOnly": true
        },
        "configId": {
          "type": "string",
          "description": "The extension configuration ID. It uniquely identifies a deployment target within an extension.",
          "readOnly": true
        },
        "configHash": {
          "type": "string",
          "description": "The extension configuration hash. Can be used to distinguish different configurations that have the same config ID.",
          "readOnly": true
        },
        "config": {
          "type": "object",
          "description": "The extension configuration.",
          "additionalProperties": {
            "$ref": "#/$defs/DeploymentExtensionConfigItem"
          },
          "readOnly": true
        }
      }
    },
    "DeploymentOperationProperties": {
      "type": "object",
      "description": "Deployment operation properties.",
      "properties": {
        "provisioningOperation": {
          "$ref": "#/$defs/ProvisioningOperation",
          "description": "The name of the current provisioning operation.",
          "readOnly": true
        },
        "provisioningState": {
          "type": "string",
          "description": "The state of the provisioning.",
          "readOnly": true
        },
        "timestamp": {
          "type": "string",
          "format": "date-time",
          "description": "The date and time of the operation.",
          "readOnly": true
        },
        "duration": {
          "type": "string",
          "description": "The duration of the operation.",
          "readOnly": true
        },
        "serviceRequestId": {
          "type": "string",
          "description": "Deployment operation service request id.",
          "readOnly": true
        },
        "statusCode": {
          "type": "string",
          "description": "Operation status code from the resource provider. This property may not be set if a response has not yet been received.",
          "readOnly": true
        },
        "statusMessage": {
          "$ref": "#/$defs/StatusMessage",
          "description": "Operation status message from the resource provider. This property is optional.  It will only be provided if an error was received from the resource provider.",
          "readOnly": true
        },
        "targetResource": {
          "$ref": "#/$defs/TargetResource",
          "description": "The target resource.",
          "readOnly": true
        },
        "request": {
          "$ref": "#/$defs/HttpMessage",
          "description": "The HTTP request message.",
          "readOnly": true
        },
        "response": {
          "$ref": "#/$defs/HttpMessage",
          "description": "The HTTP response message.",
          "readOnly": true
        }
      }
    },
    "ErrorAdditionalInfo": {
      "type": "object",
      "description": "The resource management error additional info.",
      "properties": {
        "type": {
          "type": "string",
          "description": "The additional info type.",
          "readOnly": true
        },
        "info": {
          "type": "object",
          "description": "The additional info.",
          "readOnly": true
        }
      }
    },
    "ErrorResponse": {
      "type": "object",
      "description": "Common error response for all Azure Resource Manager APIs to return error details for failed operations. (This also follows the OData error response format.)",
      "properties": {
        "code": {
          "type": "string",
          "description": "The error code.",
          "readOnly": true
        },
        "message": {
          "type": "string",
          "description": "The error message.",
          "readOnly": true
        },
        "target": {
          "type": "string",
          "description": "The error target.",
          "readOnly": true
        },
        "details": {
          "type": "array",
          "description": "The error details.",
          "items": {
            "$ref": "#/$defs/ErrorResponse"
          },
          "readOnly": true,
          "x-ms-identifiers": [
            "message",
            "target"
          ]
        },
        "additionalInfo": {
          "type": "array",
          "description": "The error additional info.",
          "items": {
            "$ref": "#/$defs/ErrorAdditionalInfo"
          },
          "readOnly": true,
          "x-ms-identifiers": []
        }
      }
    },
    "HttpMessage": {
      "type": "object",
      "description": "HTTP message.",
      "properties": {
        "content": {
          "description": "HTTP message content."
        }
      }
    },
    "KeyVaultParameterReference": {
      "type": "object",
      "description": "Azure Key Vault parameter reference.",
      "properties": {
        "keyVault": {
          "$ref": "#/$defs/KeyVaultReference",
          "description": "Azure Key Vault reference."
        },
        "secretName": {
          "type": "string",
          "description": "Azure Key Vault secret name."
        },
        "secretVersion": {
          "type": "string",
          "description": "Azure Key Vault secret version."
        }
      },
      "required": [
        "keyVault",
        "secretName"
      ]
    },
    "KeyVaultReference": {
      "type": "object",
      "description": "Azure Key Vault reference.",
      "properties": {
        "id": {
          "type": "string",
          "description": "Azure Key Vault resource id."
        }
      },
      "required": [
        "id"
      ]
    },
    "ProvisioningOperation": {
      "type": "string",
      "description": "The name of the current provisioning operation.",
      "enum": [
        "NotSpecified",
        "Create",
        "Delete",
        "Waiting",
        "AzureAsyncOperationWaiting",
        "ResourceCacheWaiting",
        "Action",
        "Read",
        "EvaluateDeploymentOutput",
        "DeploymentCleanup"
      ],
      "x-ms-enum": {
        "name": "ProvisioningOperation",
        "modelAsString": false,
        "values": [
          {
            "name": "NotSpecified",
            "value": "NotSpecified",
            "description": "The provisioning operation is not specified."
          },
          {
            "name": "Create",
            "value": "Create",
            "description": "The provisioning operation is create."
          },
          {
            "name": "Delete",
            "value": "Delete",
            "description": "The provisioning operation is delete."
          },
          {
            "name": "Waiting",
            "value": "Waiting",
            "description": "The provisioning operation is waiting."
          },
          {
            "name": "AzureAsyncOperationWaiting",
            "value": "AzureAsyncOperationWaiting",
            "description": "The provisioning operation is waiting Azure async operation."
          },
          {
            "name": "ResourceCacheWaiting",
            "value": "ResourceCacheWaiting",
            "description": "The provisioning operation is waiting for resource cache."
          },
          {
            "name": "Action",
            "value": "Action",
            "description": "The provisioning operation is action."
          },
          {
            "name": "Read",
            "value": "Read",
            "description": "The provisioning operation is read."
          },
          {
            "name": "EvaluateDeploymentOutput",
            "value": "EvaluateDeploymentOutput",
            "description": "The provisioning operation is evaluate output."
          },
          {
            "name": "DeploymentCleanup",
            "value": "DeploymentCleanup",
            "description": "The provisioning operation is cleanup. This operation is part of the 'complete' mode deployment."
          }
        ]
      }
    },
    "StatusMessage": {
      "type": "object",
      "description": "Operation status message object.",
      "properties": {
        "status": {
          "type": "string",
          "description": "Status of the deployment operation."
        },
        "error": {
          "$ref": "#/$defs/ErrorResponse",
          "description": "The error reported by the operation."
        }
      }
    },
    "TargetResource": {
      "type": "object",
      "description": "Target resource.",
      "properties": {
        "id": {
          "type": "string",
          "description": "The Azure resource ID of the resource."
        },
        "resourceName": {
          "type": "string",
          "description": "The name of the resource."
        },
        "resourceType": {
          "type": "string",
          "description": "The type of the resource."
        },
        "extension": {
          "$ref": "#/$defs/DeploymentExtensionDefinition",
          "description": "The extension the resource was deployed with."
        },
        "identifiers": {
          "description": "The extensible resource identifiers."
        },
        "apiVersion": {
          "type": "string",
          "description": "The API version the resource was deployed with."
        },
        "symbolicName": {
          "type": "string",
          "description": "The symbolic name of the resource as defined in the deployment template."
        },
        "symbolicNamePath": {
          "type": "array",
          "description": "The symbolic name path to the resource in the deployment template, including nested deployment(s) and extension if applicable.",
          "items": {
            "type": "string"
          }
        }
      }
    }
  }
}