{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/microsoft-azure/json-schema/microsoft-azure-deployment-script-list-result-schema.json",
  "title": "DeploymentScriptListResult",
  "description": "List of deployment scripts.",
  "x-generated": "2026-11-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/microsoft-azure-deploymentscripts-api-openapi.yml#/components/schemas/DeploymentScriptListResult",
  "type": "object",
  "properties": {
    "value": {
      "type": "array",
      "description": "An array of deployment scripts.",
      "items": {
        "$ref": "#/$defs/DeploymentScript"
      }
    },
    "nextLink": {
      "type": "string",
      "description": "The URL to use for getting the next set of results.",
      "readOnly": true
    }
  },
  "$defs": {
    "DeploymentScript": {
      "type": "object",
      "description": "Deployment script object.",
      "properties": {
        "kind": {
          "$ref": "#/$defs/ScriptType",
          "description": "Type of the script."
        },
        "identity": {
          "$ref": "#/$defs/ManagedServiceIdentity",
          "description": "Optional property. Managed identity to be used for this deployment script. Currently, only user-assigned MSI is supported."
        }
      },
      "required": [
        "kind"
      ],
      "allOf": [
        {
          "$ref": "#/$defs/TrackedResource"
        }
      ]
    },
    "ManagedServiceIdentity": {
      "type": "object",
      "description": "Describes the managed identities for an Azure resource.",
      "properties": {
        "type": {
          "$ref": "#/$defs/ManagedServiceIdentityType",
          "description": "Type of the managed identity."
        },
        "tenantId": {
          "type": "string",
          "description": "The tenant id of the managed identity.",
          "readOnly": true
        },
        "userAssignedIdentities": {
          "type": "object",
          "description": "The list of user-assigned managed identities associated with the resource. Key is the Azure resource Id of the managed identity.",
          "additionalProperties": {
            "$ref": "#/$defs/UserAssignedIdentity"
          }
        }
      }
    },
    "ManagedServiceIdentityType": {
      "type": "string",
      "description": "Type of the managed identity.",
      "enum": [
        "UserAssigned"
      ],
      "x-ms-enum": {
        "name": "ManagedServiceIdentityType",
        "modelAsString": true,
        "values": [
          {
            "name": "UserAssigned",
            "value": "UserAssigned",
            "description": "User assigned identity."
          }
        ]
      }
    },
    "ScriptType": {
      "type": "string",
      "description": "Type of the script.",
      "enum": [
        "AzurePowerShell",
        "AzureCLI"
      ],
      "x-ms-enum": {
        "name": "ScriptType",
        "modelAsString": true,
        "values": [
          {
            "name": "AzurePowerShell",
            "value": "AzurePowerShell",
            "description": "Azure PowerShell script."
          },
          {
            "name": "AzureCLI",
            "value": "AzureCLI",
            "description": "Azure CLI script."
          }
        ]
      }
    },
    "TrackedResource": {
      "type": "object",
      "title": "Tracked Resource",
      "description": "The resource model definition for an Azure Resource Manager tracked top level resource which has 'tags' and a 'location'",
      "properties": {
        "tags": {
          "type": "object",
          "description": "Resource tags.",
          "additionalProperties": {
            "type": "string"
          },
          "x-ms-mutability": [
            "read",
            "create",
            "update"
          ]
        },
        "location": {
          "type": "string",
          "description": "The geo-location where the resource lives",
          "x-ms-mutability": [
            "read",
            "create"
          ]
        }
      },
      "required": [
        "location"
      ],
      "allOf": [
        {
          "$ref": "#/$defs/Resource"
        }
      ]
    },
    "UserAssignedIdentity": {
      "type": "object",
      "description": "User-assigned managed identity.",
      "properties": {
        "principalId": {
          "type": "string",
          "description": "Azure Active Directory principal ID associated with this identity.",
          "readOnly": true
        },
        "clientId": {
          "type": "string",
          "description": "Client App Id associated with this identity.",
          "readOnly": true
        }
      }
    }
  }
}