Azure / Azure/azure-cli

az aks get-versions output changed to crap

Open
#27,281 9 comments 0 reactions 0 assignees View on GitHub
act-observability-squad AKS Auto-Assign Auto-Resolve bug customer-reported Service Attention
Dominant language
Python
Stars
4.6k
Forks
3.5k
Avg merge
3d 2h
Merged PRs (30d)
60

Description

### 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_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.