Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

az cli command from install guide evaluates with empty value #1591

Closed
effelow opened this issue Feb 6, 2024 · 1 comment · May be fixed by #1592
Closed

az cli command from install guide evaluates with empty value #1591

effelow opened this issue Feb 6, 2024 · 1 comment · May be fixed by #1592
Assignees

Comments

@effelow
Copy link

effelow commented Feb 6, 2024

Describe the bug
az command this line from the install.md

az aks get-versions --location $location --query "orchestrators[-1].orchestratorVersion" -o tsv

To Reproduce

  1. Go to cloudshell
  2. paste the command
    location="westus2"
    kubernetesVersion=$(az aks get-versions --location $location --query "orchestrators[-1].orchestratorVersion" -o tsv)
    echo $kubernetesVersion
    
    Notive the variable $kubernetesVersion is empty.

Solution

Replace --queryparameter like so "values[?isDefault==`true`].version | [0]"

kubernetesVersion=$(az aks get-versions --location $location --query "values[?isDefault==\`true\`].version | [0]" -o tsv)
@akshaysngupta
Copy link
Member

install guide is now updated with new steps.

@akshaysngupta akshaysngupta self-assigned this May 28, 2024
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 a pull request may close this issue.

2 participants