{
  "$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-schema.json",
  "title": "softwareUpdateConfiguration",
  "description": "Software update configuration properties.",
  "x-generated": "2026-11-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/microsoft-azure-automation-software-update-configuration-api-openapi.yml#/components/schemas/softwareUpdateConfiguration",
  "type": "object",
  "properties": {
    "properties": {
      "$ref": "#/$defs/softwareUpdateConfigurationProperties",
      "description": "Software update configuration properties.",
      "x-ms-client-flatten": true
    }
  },
  "required": [
    "properties"
  ],
  "allOf": [
    {
      "$ref": "#/$defs/ProxyResource"
    }
  ],
  "$defs": {
    "AdvancedSchedule": {
      "type": "object",
      "description": "The properties of the create Advanced Schedule.",
      "properties": {
        "weekDays": {
          "type": "array",
          "description": "Days of the week that the job should execute on.",
          "items": {
            "type": "string"
          }
        },
        "monthDays": {
          "type": "array",
          "description": "Days of the month that the job should execute on. Must be between 1 and 31.",
          "items": {
            "type": "integer",
            "format": "int32"
          }
        },
        "monthlyOccurrences": {
          "type": "array",
          "description": "Occurrences of days within a month.",
          "items": {
            "$ref": "#/$defs/AdvancedScheduleMonthlyOccurrence"
          },
          "x-ms-identifiers": []
        }
      }
    },
    "AdvancedScheduleMonthlyOccurrence": {
      "type": "object",
      "description": "The properties of the create advanced schedule monthly occurrence.",
      "properties": {
        "occurrence": {
          "type": "integer",
          "format": "int32",
          "description": "Occurrence of the week within the month. Must be between 1 and 5"
        },
        "day": {
          "$ref": "#/$defs/ScheduleDay",
          "description": "Day of the occurrence. Must be one of monday, tuesday, wednesday, thursday, friday, saturday, sunday."
        }
      }
    },
    "AutomationErrorResponse": {
      "type": "object",
      "description": "Error response of an operation failure",
      "properties": {
        "code": {
          "type": "string",
          "description": "Error code"
        },
        "message": {
          "type": "string",
          "description": "Error message indicating why the operation failed."
        }
      }
    },
    "AzureQueryProperties": {
      "type": "object",
      "description": "Azure query for the update configuration.",
      "properties": {
        "scope": {
          "type": "array",
          "description": "List of Subscription or Resource Group ARM Ids.",
          "items": {
            "type": "string"
          }
        },
        "locations": {
          "type": "array",
          "description": "List of locations to scope the query to.",
          "items": {
            "type": "string"
          }
        },
        "tagSettings": {
          "$ref": "#/$defs/TagSettingsProperties",
          "description": "Tag settings for the VM."
        }
      }
    },
    "LinuxProperties": {
      "type": "object",
      "description": "Linux specific update configuration.",
      "properties": {
        "includedPackageClassifications": {
          "$ref": "#/$defs/LinuxUpdateClasses",
          "description": "Update classifications included in the software update configuration."
        },
        "excludedPackageNameMasks": {
          "type": "array",
          "description": "packages excluded from the software update configuration.",
          "items": {
            "type": "string"
          }
        },
        "includedPackageNameMasks": {
          "type": "array",
          "description": "packages included from the software update configuration.",
          "items": {
            "type": "string"
          }
        },
        "rebootSetting": {
          "type": "string",
          "description": "Reboot setting for the software update configuration."
        }
      }
    },
    "LinuxUpdateClasses": {
      "type": "string",
      "description": "Update classifications included in the software update configuration.",
      "enum": [
        "Unclassified",
        "Critical",
        "Security",
        "Other"
      ],
      "x-ms-enum": {
        "name": "LinuxUpdateClasses",
        "modelAsString": true,
        "values": [
          {
            "name": "Unclassified",
            "value": "Unclassified",
            "description": "Unclassified"
          },
          {
            "name": "Critical",
            "value": "Critical",
            "description": "Critical"
          },
          {
            "name": "Security",
            "value": "Security",
            "description": "Security"
          },
          {
            "name": "Other",
            "value": "Other",
            "description": "Other"
          }
        ]
      }
    },
    "NonAzureQueryProperties": {
      "type": "object",
      "description": "Non Azure query for the update configuration.",
      "properties": {
        "functionAlias": {
          "type": "string",
          "description": "Log Analytics Saved Search name."
        },
        "workspaceId": {
          "type": "string",
          "description": "Workspace Id for Log Analytics in which the saved Search is resided."
        }
      }
    },
    "OperatingSystemType": {
      "type": "string",
      "description": "Target operating system for the software update configuration.",
      "enum": [
        "Windows",
        "Linux"
      ],
      "x-ms-enum": {
        "name": "OperatingSystemType",
        "modelAsString": false,
        "values": [
          {
            "name": "Windows",
            "value": "Windows",
            "description": "Windows"
          },
          {
            "name": "Linux",
            "value": "Linux",
            "description": "Linux"
          }
        ]
      }
    },
    "ProxyResource": {
      "type": "object",
      "title": "Proxy Resource",
      "description": "The resource model definition for a Azure Resource Manager proxy resource. It will not have tags and a location",
      "allOf": [
        {
          "$ref": "#/$defs/Resource"
        }
      ]
    },
    "Resource": {
      "type": "object",
      "description": "Referenced by this document but never defined in it. API Evangelist added this empty placeholder so the document resolves; the shape is unknown and is NOT a claim about the API.",
      "x-ae-placeholder": true
    },
    "SUCScheduleProperties": {
      "type": "object",
      "description": "Definition of schedule parameters.",
      "properties": {
        "startTime": {
          "type": "string",
          "format": "date-time",
          "description": "Gets or sets the start time of the schedule."
        },
        "startTimeOffsetMinutes": {
          "type": "number",
          "format": "double",
          "description": "Gets the start time's offset in minutes.",
          "readOnly": true
        },
        "expiryTime": {
          "type": [
            "string",
            "null"
          ],
          "format": "date-time",
          "description": "Gets or sets the end time of the schedule."
        },
        "expiryTimeOffsetMinutes": {
          "type": "number",
          "format": "double",
          "description": "Gets or sets the expiry time's offset in minutes."
        },
        "isEnabled": {
          "type": "boolean",
          "description": "Gets or sets a value indicating whether this schedule is enabled."
        },
        "nextRun": {
          "type": [
            "string",
            "null"
          ],
          "format": "date-time",
          "description": "Gets or sets the next run time of the schedule."
        },
        "nextRunOffsetMinutes": {
          "type": "number",
          "format": "double",
          "description": "Gets or sets the next run time's offset in minutes."
        },
        "interval": {
          "type": "integer",
          "format": "int64",
          "description": "Gets or sets the interval of the schedule."
        },
        "frequency": {
          "$ref": "#/$defs/ScheduleFrequency",
          "description": "Gets or sets the frequency of the schedule."
        },
        "timeZone": {
          "type": "string",
          "description": "Gets or sets the time zone of the schedule."
        },
        "advancedSchedule": {
          "$ref": "#/$defs/AdvancedSchedule",
          "description": "Gets or sets the advanced schedule."
        },
        "creationTime": {
          "type": "string",
          "format": "date-time",
          "description": "Gets or sets the creation time."
        },
        "lastModifiedTime": {
          "type": "string",
          "format": "date-time",
          "description": "Gets or sets the last modified time."
        },
        "description": {
          "type": "string",
          "description": "Gets or sets the description."
        }
      }
    },
    "ScheduleDay": {
      "type": "string",
      "description": "Day of the occurrence. Must be one of monday, tuesday, wednesday, thursday, friday, saturday, sunday.",
      "enum": [
        "Monday",
        "Tuesday",
        "Wednesday",
        "Thursday",
        "Friday",
        "Saturday",
        "Sunday"
      ],
      "x-ms-enum": {
        "name": "ScheduleDay",
        "modelAsString": true,
        "values": [
          {
            "name": "Monday",
            "value": "Monday",
            "description": "Monday"
          },
          {
            "name": "Tuesday",
            "value": "Tuesday",
            "description": "Tuesday"
          },
          {
            "name": "Wednesday",
            "value": "Wednesday",
            "description": "Wednesday"
          },
          {
            "name": "Thursday",
            "value": "Thursday",
            "description": "Thursday"
          },
          {
            "name": "Friday",
            "value": "Friday",
            "description": "Friday"
          },
          {
            "name": "Saturday",
            "value": "Saturday",
            "description": "Saturday"
          },
          {
            "name": "Sunday",
            "value": "Sunday",
            "description": "Sunday"
          }
        ]
      }
    },
    "ScheduleFrequency": {
      "type": "string",
      "description": "Gets or sets the frequency of the schedule.",
      "enum": [
        "OneTime",
        "Day",
        "Hour",
        "Week",
        "Month",
        "Minute"
      ],
      "x-ms-enum": {
        "name": "ScheduleFrequency",
        "modelAsString": true,
        "values": [
          {
            "name": "OneTime",
            "value": "OneTime",
            "description": "OneTime"
          },
          {
            "name": "Day",
            "value": "Day",
            "description": "Day"
          },
          {
            "name": "Hour",
            "value": "Hour",
            "description": "Hour"
          },
          {
            "name": "Week",
            "value": "Week",
            "description": "Week"
          },
          {
            "name": "Month",
            "value": "Month",
            "description": "Month"
          },
          {
            "name": "Minute",
            "value": "Minute",
            "description": "The minimum allowed interval for Minute schedules is 15 minutes."
          }
        ]
      }
    },
    "TagOperators": {
      "type": "string",
      "description": "Filter VMs by Any or All specified tags.",
      "enum": [
        "All",
        "Any"
      ],
      "x-ms-enum": {
        "name": "TagOperators",
        "modelAsString": false,
        "values": [
          {
            "name": "All",
            "value": "All",
            "description": "All"
          },
          {
            "name": "Any",
            "value": "Any",
            "description": "Any"
          }
        ]
      }
    },
    "TagSettingsProperties": {
      "type": "object",
      "description": "Tag filter information for the VM.",
      "properties": {
        "tags": {
          "type": "object",
          "description": "Dictionary of tags with its list of values.",
          "additionalProperties": {
            "items": {
              "type": "string"
            },
            "type": "array"
          }
        },
        "filterOperator": {
          "$ref": "#/$defs/TagOperators",
          "description": "Filter VMs by Any or All specified tags."
        }
      }
    },
    "TargetProperties": {
      "type": "object",
      "description": "Group specific to the update configuration.",
      "properties": {
        "azureQueries": {
          "type": "array",
          "description": "List of Azure queries in the software update configuration.",
          "items": {
            "$ref": "#/$defs/AzureQueryProperties"
          },
          "x-ms-identifiers": []
        },
        "nonAzureQueries": {
          "type": "array",
          "description": "List of non Azure queries in the software update configuration.",
          "items": {
            "$ref": "#/$defs/NonAzureQueryProperties"
          },
          "x-ms-identifiers": [
            "workspaceId"
          ]
        }
      }
    },
    "WindowsProperties": {
      "type": "object",
      "description": "Windows specific update configuration.",
      "properties": {
        "includedUpdateClassifications": {
          "$ref": "#/$defs/WindowsUpdateClasses",
          "description": "Update classification included in the software update configuration. A comma separated string with required values"
        },
        "excludedKbNumbers": {
          "type": "array",
          "description": "KB numbers excluded from the software update configuration.",
          "items": {
            "type": "string"
          }
        },
        "includedKbNumbers": {
          "type": "array",
          "description": "KB numbers included from the software update configuration.",
          "items": {
            "type": "string"
          }
        },
        "rebootSetting": {
          "type": "string",
          "description": "Reboot setting for the software update configuration."
        }
      }
    },
    "WindowsUpdateClasses": {
      "type": "string",
      "description": "Update classification included in the software update configuration. A comma separated string with required values",
      "enum": [
        "Unclassified",
        "Critical",
        "Security",
        "UpdateRollup",
        "FeaturePack",
        "ServicePack",
        "Definition",
        "Tools",
        "Updates"
      ],
      "x-ms-enum": {
        "name": "WindowsUpdateClasses",
        "modelAsString": true,
        "values": [
          {
            "name": "Unclassified",
            "value": "Unclassified",
            "description": "Unclassified"
          },
          {
            "name": "Critical",
            "value": "Critical",
            "description": "Critical"
          },
          {
            "name": "Security",
            "value": "Security",
            "description": "Security"
          },
          {
            "name": "UpdateRollup",
            "value": "UpdateRollup",
            "description": "UpdateRollup"
          },
          {
            "name": "FeaturePack",
            "value": "FeaturePack",
            "description": "FeaturePack"
          },
          {
            "name": "ServicePack",
            "value": "ServicePack",
            "description": "ServicePack"
          },
          {
            "name": "Definition",
            "value": "Definition",
            "description": "Definition"
          },
          {
            "name": "Tools",
            "value": "Tools",
            "description": "Tools"
          },
          {
            "name": "Updates",
            "value": "Updates",
            "description": "Updates"
          }
        ]
      }
    },
    "softwareUpdateConfigurationProperties": {
      "type": "object",
      "description": "Software update configuration properties.",
      "properties": {
        "updateConfiguration": {
          "$ref": "#/$defs/updateConfiguration",
          "description": "update specific properties for the Software update configuration"
        },
        "scheduleInfo": {
          "$ref": "#/$defs/SUCScheduleProperties",
          "description": "Schedule information for the Software update configuration"
        },
        "provisioningState": {
          "type": "string",
          "description": "Provisioning state for the software update configuration, which only appears in the response.",
          "readOnly": true
        },
        "error": {
          "$ref": "#/$defs/AutomationErrorResponse",
          "description": "Details of provisioning error"
        },
        "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/softwareUpdateConfigurationTasks",
          "description": "Tasks information for the Software update configuration."
        }
      },
      "required": [
        "updateConfiguration",
        "scheduleInfo"
      ]
    },
    "softwareUpdateConfigurationTasks": {
      "type": "object",
      "description": "Task properties of the software update configuration.",
      "properties": {
        "preTask": {
          "$ref": "#/$defs/taskProperties",
          "description": "Pre task properties."
        },
        "postTask": {
          "$ref": "#/$defs/taskProperties",
          "description": "Post task properties."
        }
      }
    },
    "taskProperties": {
      "type": "object",
      "description": "Task properties of the software update configuration.",
      "properties": {
        "parameters": {
          "type": "object",
          "description": "Gets or sets the parameters of the task.",
          "additionalProperties": {
            "type": "string"
          }
        },
        "source": {
          "type": "string",
          "description": "Gets or sets the name of the runbook."
        }
      }
    },
    "updateConfiguration": {
      "type": "object",
      "description": "Update specific properties of the software update configuration.",
      "properties": {
        "operatingSystem": {
          "$ref": "#/$defs/OperatingSystemType",
          "description": "operating system of target machines"
        },
        "windows": {
          "$ref": "#/$defs/WindowsProperties",
          "description": "Windows specific update configuration."
        },
        "linux": {
          "$ref": "#/$defs/LinuxProperties",
          "description": "Linux specific update configuration."
        },
        "duration": {
          "type": "string",
          "format": "duration",
          "description": "Maximum time allowed for the software update configuration run. Duration needs to be specified using the format PT[n]H[n]M[n]S as per ISO8601"
        },
        "azureVirtualMachines": {
          "type": "array",
          "description": "List of azure resource Ids for azure virtual machines targeted by the software update configuration.",
          "items": {
            "type": "string"
          }
        },
        "nonAzureComputerNames": {
          "type": "array",
          "description": "List of names of non-azure machines targeted by the software update configuration.",
          "items": {
            "type": "string"
          }
        },
        "targets": {
          "$ref": "#/$defs/TargetProperties",
          "description": "Group targets for the software update configuration."
        }
      },
      "required": [
        "operatingSystem"
      ]
    }
  }
}