{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/microsoft-azure-kubernetes-service/json-schema/microsoft-azure-kubernetes-service-auto-upgrade-profile-list-result-schema.json",
  "title": "AutoUpgradeProfileListResult",
  "description": "The response of a AutoUpgradeProfile list operation.",
  "x-generated": "2026-11-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_superseded/microsoft-azure-kubernetes-service-autoupgradeprofiles-api-openapi.yml#/components/schemas/AutoUpgradeProfileListResult",
  "type": "object",
  "properties": {
    "value": {
      "type": "array",
      "description": "The AutoUpgradeProfile items on this page",
      "items": {
        "$ref": "#/$defs/AutoUpgradeProfile"
      }
    },
    "nextLink": {
      "type": "string",
      "format": "uri",
      "description": "The link to the next page of items"
    }
  },
  "required": [
    "value"
  ],
  "$defs": {
    "AutoUpgradeLastTriggerStatus": {
      "type": "string",
      "description": "AutoUpgradeLastTriggerStatus is the status of the last AutoUpgrade trigger (attempt to automatically create and start UpdateRun when there are new released versions) of an auto upgrade profile.",
      "enum": [
        "Succeeded",
        "Failed"
      ],
      "x-ms-enum": {
        "name": "AutoUpgradeLastTriggerStatus",
        "modelAsString": true,
        "values": [
          {
            "name": "Succeeded",
            "value": "Succeeded",
            "description": "The last AutoUpgrade trigger was succeeded."
          },
          {
            "name": "Failed",
            "value": "Failed",
            "description": "The last AutoUpgrade trigger failed."
          }
        ]
      },
      "readOnly": true
    },
    "AutoUpgradeNodeImageSelection": {
      "type": "object",
      "description": "The node image upgrade to be applied to the target clusters in auto upgrade.",
      "properties": {
        "type": {
          "$ref": "#/$defs/AutoUpgradeNodeImageSelectionType",
          "description": "The node image upgrade type.",
          "x-ms-mutability": [
            "read",
            "create"
          ]
        }
      },
      "required": [
        "type"
      ]
    },
    "AutoUpgradeNodeImageSelectionType": {
      "type": "string",
      "description": "The node image upgrade type.",
      "enum": [
        "Latest",
        "Consistent"
      ],
      "x-ms-enum": {
        "name": "AutoUpgradeNodeImageSelectionType",
        "modelAsString": true,
        "values": [
          {
            "name": "Latest",
            "value": "Latest",
            "description": "Use the latest image version when upgrading nodes. Clusters may use different image versions (e.g., 'AKSUbuntu-1804gen2containerd-2021.10.12' and 'AKSUbuntu-1804gen2containerd-2021.10.19') because, for example, the latest available version is different in different regions."
          },
          {
            "name": "Consistent",
            "value": "Consistent",
            "description": "The image versions to upgrade nodes to are selected as described below: for each node pool in managed clusters affected by the update run, the system selects the latest image version such that it is available across all other node pools (in all other clusters) of the same image type. As a result, all node pools of the same image type will be upgraded to the same image version. For example, if the latest image version for image type 'AKSUbuntu-1804gen2containerd' is 'AKSUbuntu-1804gen2containerd-2021.10.12' for a node pool in cluster A in region X, and is 'AKSUbuntu-1804gen2containerd-2021.10.17' for a node pool in cluster B in region Y, the system will upgrade both node pools to image version 'AKSUbuntu-1804gen2containerd-2021.10.12'."
          }
        ]
      }
    },
    "AutoUpgradeProfile": {
      "type": "object",
      "description": "The AutoUpgradeProfile resource.",
      "properties": {
        "properties": {
          "$ref": "#/$defs/AutoUpgradeProfileProperties",
          "description": "The resource-specific properties for this resource.",
          "x-ms-client-flatten": true
        },
        "eTag": {
          "type": "string",
          "description": "If eTag is provided in the response body, it may also be provided as a header per the normal etag convention.  Entity tags are used for comparing two or more entities from the same requested resource. HTTP/1.1 uses entity tags in the etag (section 14.19), If-Match (section 14.24), If-None-Match (section 14.26), and If-Range (section 14.27) header fields.",
          "readOnly": true
        }
      },
      "allOf": [
        {
          "$ref": "../../../../../../common-types/resource-management/v5/types.json#/definitions/ProxyResource"
        }
      ]
    },
    "AutoUpgradeProfileProperties": {
      "type": "object",
      "description": "The properties of the AutoUpgradeProfile.",
      "properties": {
        "provisioningState": {
          "$ref": "#/$defs/AutoUpgradeProfileProvisioningState",
          "description": "The provisioning state of the AutoUpgradeProfile resource.",
          "readOnly": true
        },
        "updateStrategyId": {
          "$ref": "#/$defs/FleetUpdateStrategyResourceId",
          "description": "The resource id of the UpdateStrategy resource to reference. If not specified, the auto upgrade will run on all clusters which are members of the fleet.",
          "x-ms-mutability": [
            "read",
            "create"
          ]
        },
        "channel": {
          "$ref": "#/$defs/UpgradeChannel",
          "description": "Configures how auto-upgrade will be run."
        },
        "nodeImageSelection": {
          "$ref": "#/$defs/AutoUpgradeNodeImageSelection",
          "description": "The node image upgrade to be applied to the target clusters in auto upgrade."
        },
        "disabled": {
          "type": "boolean",
          "description": "If set to False: the auto upgrade has effect - target managed clusters will be upgraded on schedule.\nIf set to True: the auto upgrade has no effect - no upgrade will be run on the target managed clusters.\nThis is a boolean and not an enum because enabled/disabled are all available states of the auto upgrade profile.\nBy default, this is set to False."
        },
        "autoUpgradeProfileStatus": {
          "$ref": "#/$defs/AutoUpgradeProfileStatus",
          "description": "The status of the auto upgrade profile."
        },
        "targetKubernetesVersion": {
          "type": "string",
          "description": "  This is the target Kubernetes version for auto-upgrade. The format must be `{major version}.{minor version}`. For example, \"1.30\".\n  By default, this is empty.\n  If upgrade channel is set to TargetKubernetesVersion, this field must not be empty.\n  If upgrade channel is not TargetKubernetesVersion, this field must be empty."
        },
        "longTermSupport": {
          "type": "boolean",
          "description": "  If upgrade channel is not TargetKubernetesVersion, this field must be False.\n  If set to True: Fleet auto upgrade will continue generate update runs for patches of minor versions earlier than N-2 \n  (where N is the latest supported minor version) if those minor versions support Long-Term Support (LTS).\n  By default, this is set to False.\n  For more information on AKS LTS, please see https://learn.microsoft.com/en-us/azure/aks/long-term-support"
        }
      },
      "required": [
        "channel"
      ]
    },
    "AutoUpgradeProfileProvisioningState": {
      "type": "string",
      "description": "The provisioning state of the AutoUpgradeProfile resource.",
      "enum": [
        "Succeeded",
        "Failed",
        "Canceled"
      ],
      "x-ms-enum": {
        "name": "AutoUpgradeProfileProvisioningState",
        "modelAsString": true,
        "values": [
          {
            "name": "Succeeded",
            "value": "Succeeded",
            "description": "Resource has been created."
          },
          {
            "name": "Failed",
            "value": "Failed",
            "description": "Resource creation failed."
          },
          {
            "name": "Canceled",
            "value": "Canceled",
            "description": "Resource creation was canceled."
          }
        ]
      },
      "readOnly": true
    },
    "AutoUpgradeProfileStatus": {
      "type": "object",
      "description": "AutoUpgradeProfileStatus is the status of an auto upgrade profile.",
      "properties": {
        "lastTriggeredAt": {
          "type": "string",
          "format": "date-time",
          "description": "The UTC time of the last attempt to automatically create and start an UpdateRun as triggered by the release of new versions.",
          "readOnly": true
        },
        "lastTriggerStatus": {
          "$ref": "#/$defs/AutoUpgradeLastTriggerStatus",
          "description": "The status of the last AutoUpgrade trigger.",
          "readOnly": true
        },
        "lastTriggerError": {
          "$ref": "../../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorDetail",
          "description": "The error details of the last trigger.",
          "readOnly": true
        },
        "lastTriggerUpgradeVersions": {
          "type": "array",
          "description": "The target Kubernetes version or node image versions of the last trigger.",
          "items": {
            "type": "string"
          },
          "readOnly": true
        },
        "lastTriggerMessage": {
          "type": "string",
          "description": "Additional information about the last trigger attempt.",
          "readOnly": true
        }
      }
    },
    "FleetUpdateStrategyResourceId": {
      "type": "string",
      "format": "arm-id",
      "description": "A type definition that refers the id to an Azure Resource Manager resource.",
      "x-ms-arm-id-details": {
        "allowedResources": [
          {
            "type": "Microsoft.ContainerService/fleets/updateStrategies"
          }
        ]
      }
    },
    "UpgradeChannel": {
      "type": "string",
      "description": "Configuration of how auto upgrade will be run.",
      "enum": [
        "Stable",
        "Rapid",
        "NodeImage",
        "TargetKubernetesVersion",
        "SecurityPatch"
      ],
      "x-ms-enum": {
        "name": "UpgradeChannel",
        "modelAsString": true,
        "values": [
          {
            "name": "Stable",
            "value": "Stable",
            "description": " Upgrades the clusters kubernetes version to the latest supported patch release on minor version N-1, where N is the latest supported minor version.\n For example, if a cluster runs version 1.17.7 and versions 1.17.9, 1.18.4, 1.18.6, and 1.19.1 are available, the cluster upgrades to 1.18.6."
          },
          {
            "name": "Rapid",
            "value": "Rapid",
            "description": "Upgrades the clusters kubernetes version to the latest supported patch release on the latest supported minor version."
          },
          {
            "name": "NodeImage",
            "value": "NodeImage",
            "description": "Upgrade node image version of the clusters."
          },
          {
            "name": "TargetKubernetesVersion",
            "value": "TargetKubernetesVersion",
            "description": "  Upgrades the clusters Kubernetes version to the latest supported patch version of the specified target Kubernetes version.\n  For information on the behavior of update run for Kubernetes version upgrade, \n  see https://learn.microsoft.com/en-us/azure/kubernetes-fleet/update-orchestration?tabs=azure-portal"
          },
          {
            "name": "SecurityPatch",
            "value": "SecurityPatch",
            "description": "  Applies security patches to the nodes of the target clusters.\n  For information on the behavior of update run for security patch upgrade,\n  see https://learn.microsoft.com/en-us/azure/kubernetes-fleet/update-orchestration?tabs=azure-portal"
          }
        ]
      }
    }
  }
}