Skip to content

Conversation

@flo-kn
Copy link

@flo-kn flo-kn commented Feb 6, 2024

Checklist

  • The title of the PR is clear and informative
  • If applicable, the changes made in the PR have proper test coverage
  • Issues addressed by the PR are mentioned in the description followed by Fixes.

Description

closes #1591

The json output format of the az aks get-version command might have changed since the creation of this guide. Here is an attempt to fix it by adjusting the --query parameter in order to follow up on the change so that variable kubernetesVersion get populated.

Fixes

before:

"...orchestrators[-1].orchestratorVersion..."

now:

patchedVersions=$(az aks get-versions --location $location --query "values[?isDefault==\`true\`].patchVersions" -o json)
kubernetesVersion=$(echo $patchedVersions | jq -r 'map(keys[]) | sort_by(split(".") | map(tonumber)) | .[-1]')

with in intermediate step to get the latest isDefault patchedVersion from the patchedVersions list using jq. Reason: The subsequent deployment template requires the version in the format major.minor.patch

… this guide. fixing --query parameter to follow up on the change
…on requires version in the format major.minor.patch
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

az cli command from install guide evaluates with empty value

1 participant