{
  "$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-list-result-schema.json",
  "title": "softwareUpdateConfigurationListResult",
  "description": "result of listing all software update configuration",
  "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/softwareUpdateConfigurationListResult",
  "type": "object",
  "properties": {
    "value": {
      "type": "array",
      "description": "outer object returned when listing all software update configurations",
      "items": {
        "$ref": "#/$defs/softwareUpdateConfigurationCollectionItem"
      }
    }
  },
  "$defs": {
    "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"
          }
        ]
      }
    },
    "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"
          }
        ]
      }
    },
    "softwareUpdateConfigurationCollectionItem": {
      "type": "object",
      "description": "Software update configuration collection item properties.",
      "properties": {
        "name": {
          "type": "string",
          "description": "Name of the software update configuration.",
          "readOnly": true
        },
        "id": {
          "type": "string",
          "description": "Resource Id of the software update configuration",
          "readOnly": true
        },
        "properties": {
          "$ref": "#/$defs/softwareUpdateConfigurationCollectionItemProperties",
          "description": "Software update configuration properties.",
          "x-ms-client-flatten": true
        }
      },
      "required": [
        "properties"
      ]
    },
    "softwareUpdateConfigurationCollectionItemProperties": {
      "type": "object",
      "description": "Software update configuration collection item properties.",
      "properties": {
        "updateConfiguration": {
          "$ref": "#/$defs/updateConfiguration",
          "description": "Update specific properties of the software update configuration."
        },
        "tasks": {
          "$ref": "#/$defs/softwareUpdateConfigurationTasks",
          "description": "Pre and Post Tasks defined"
        },
        "frequency": {
          "$ref": "#/$defs/ScheduleFrequency",
          "description": "execution frequency of the schedule associated with the software update configuration"
        },
        "startTime": {
          "type": "string",
          "format": "date-time",
          "description": "the start time of the update."
        },
        "creationTime": {
          "type": "string",
          "format": "date-time",
          "description": "Creation time of the software update configuration, which only appears in the response.",
          "readOnly": true
        },
        "lastModifiedTime": {
          "type": "string",
          "format": "date-time",
          "description": "Last time software update configuration was modified, which only appears in the response.",
          "readOnly": true
        },
        "provisioningState": {
          "type": "string",
          "description": "Provisioning state for the software update configuration, which only appears in the response.",
          "readOnly": true
        },
        "nextRun": {
          "type": [
            "string",
            "null"
          ],
          "format": "date-time",
          "description": "ext run time of the update."
        }
      }
    },
    "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"
      ]
    }
  }
}