{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/microsoft-azure-automation/json-schema/microsoft-azure-automation-software-update-configuration-run-schema.json",
  "title": "softwareUpdateConfigurationRun",
  "description": "Software update configuration Run properties.",
  "x-generated": "2026-11-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/microsoft-azure-automation-software-update-configuration-run-api-openapi.yml#/components/schemas/softwareUpdateConfigurationRun",
  "type": "object",
  "properties": {
    "name": {
      "type": "string",
      "description": "Name of the software update configuration run.",
      "readOnly": true
    },
    "id": {
      "type": "string",
      "description": "Resource Id of the software update configuration run",
      "readOnly": true
    },
    "properties": {
      "$ref": "#/$defs/softwareUpdateConfigurationRunProperties",
      "description": "Software update configuration Run properties.",
      "x-ms-client-flatten": true
    }
  },
  "$defs": {
    "softwareUpdateConfigurationRunProperties": {
      "type": "object",
      "description": "Software update configuration properties.",
      "properties": {
        "softwareUpdateConfiguration": {
          "$ref": "#/$defs/updateConfigurationNavigation",
          "description": "software update configuration triggered this run"
        },
        "status": {
          "type": "string",
          "description": "Status of the software update configuration run.",
          "readOnly": true
        },
        "configuredDuration": {
          "type": "string",
          "description": "Configured duration for the software update configuration run.",
          "readOnly": true
        },
        "osType": {
          "type": "string",
          "description": "Operating system target of the software update configuration triggered this run",
          "readOnly": true
        },
        "startTime": {
          "type": "string",
          "format": "date-time",
          "description": "Start time of the software update configuration run.",
          "readOnly": true
        },
        "endTime": {
          "type": [
            "string",
            "null"
          ],
          "format": "date-time",
          "description": "End time of the software update configuration run.",
          "readOnly": true
        },
        "computerCount": {
          "type": "integer",
          "format": "int32",
          "description": "Number of computers in the software update configuration run.",
          "readOnly": true
        },
        "failedCount": {
          "type": "integer",
          "format": "int32",
          "description": "Number of computers with failed status.",
          "readOnly": true
        },
        "creationTime": {
          "type": "string",
          "format": "date-time",
          "description": "Creation time of the resource, which only appears in the response.",
          "readOnly": true
        },
        "createdBy": {
          "type": "string",
          "description": "CreatedBy property, which only appears in the response.",
          "readOnly": true
        },
        "lastModifiedTime": {
          "type": "string",
          "format": "date-time",
          "description": "Last time resource was modified, which only appears in the response.",
          "readOnly": true
        },
        "lastModifiedBy": {
          "type": "string",
          "description": "LastModifiedBy property, which only appears in the response.",
          "readOnly": true
        },
        "tasks": {
          "$ref": "#/$defs/softwareUpdateConfigurationRunTasks",
          "description": "Software update configuration tasks triggered in this run"
        }
      }
    },
    "softwareUpdateConfigurationRunTaskProperties": {
      "type": "object",
      "description": "Task properties of the software update configuration.",
      "properties": {
        "status": {
          "type": "string",
          "description": "The status of the task."
        },
        "source": {
          "type": "string",
          "description": "The name of the source of the task."
        },
        "jobId": {
          "type": "string",
          "description": "The job id of the task."
        }
      }
    },
    "softwareUpdateConfigurationRunTasks": {
      "type": "object",
      "description": "Software update configuration run tasks model.",
      "properties": {
        "preTask": {
          "$ref": "#/$defs/softwareUpdateConfigurationRunTaskProperties",
          "description": "Pre task properties."
        },
        "postTask": {
          "$ref": "#/$defs/softwareUpdateConfigurationRunTaskProperties",
          "description": "Post task properties."
        }
      }
    },
    "updateConfigurationNavigation": {
      "type": "object",
      "description": "Software update configuration Run Navigation model.",
      "properties": {
        "name": {
          "type": "string",
          "description": "Name of the software update configuration triggered the software update configuration run",
          "readOnly": true
        }
      }
    }
  }
}