Skip to content

az aks get-versions output changed to crap #27281

Description

@MmAtBosch

Describe the bug

Previously it was so easy to find the current default AKS version supported by Azure using following query:
az aks get-versions -l westeurope | jq -r '.orchestrators[] | select(.default == true).orchestratorVersion'

But now, since 2.50.0 we get this monster:

{
  "values": [
    {
      "capabilities": {
        "supportPlan": [
          "KubernetesOfficial",
          "AKSLongTermSupport"
        ]
      },
      "isPreview": null,
      "patchVersions": {
        "1.27.1": {
          "upgrades": [
            "1.27.3"
          ]
        },
        "1.27.3": {
          "upgrades": []
        }
      },
      "version": "1.27"
    },
    {
      "capabilities": {
        "supportPlan": [
          "KubernetesOfficial"
        ]
      },
      "isPreview": null,
      "patchVersions": {
        "1.26.3": {
          "upgrades": [
            "1.26.6",
            "1.27.3",
            "1.27.1"
          ]
        },
        "1.26.6": {
          "upgrades": [
            "1.27.3",
            "1.27.1"
          ]
        }
      },
      "version": "1.26"
    },
    {
      "capabilities": {
        "supportPlan": [
          "KubernetesOfficial"
        ]
      },
      "isPreview": null,
      "patchVersions": {
        "1.25.11": {
          "upgrades": [
            "1.26.6",
            "1.26.3"
          ]
        },
        "1.25.6": {
          "upgrades": [
            "1.26.6",
            "1.26.3",
            "1.25.11"
          ]
        }
      },
      "version": "1.25"
    }
  ]
}

which was announced with this tiny remark:
grafik

Related command

az aks get-versions -l westeurope

Errors

none

Issue script & Debug output

az aks get-versions -l westeurope

Expected behavior

it would be great to have a less complex json output where someone can get the default version easier, as it was before the change

Environment Summary

azure-cli 2.50.0 *

core 2.50.0 *
telemetry 1.0.8 *

Extensions:
authV2 0.1.2
automation 0.2.1
azure-devops 0.26.0
bastion 0.2.4
interactive 0.5.1
log-analytics-solution 0.1.1
ssh 1.1.6

Dependencies:
msal 1.22.0
azure-mgmt-resource 23.1.0b2

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    AKSaz aks/acs/openshiftAuto-AssignAuto assign by botAuto-ResolveAuto resolve by botService AttentionThis issue is responsible by Azure service team.act-observability-squadbugThis issue requires a change to an existing behavior in the product in order to be resolved.customer-reportedIssues that are reported by GitHub users external to the Azure organization.

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions