application-gateway-kubernetes-ingress
application-gateway-kubernetes-ingress copied to clipboard
az cli command from install guide evaluates with empty value
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
- Go to cloudshell
- paste the command
Notive the variablelocation="westus2" kubernetesVersion=$(az aks get-versions --location $location --query "orchestrators[-1].orchestratorVersion" -o tsv) echo $kubernetesVersion
$kubernetesVersion
is empty.
Solution
Replace --query
parameter like so "values[?isDefault==`true`].version | [0]"
kubernetesVersion=$(az aks get-versions --location $location --query "values[?isDefault==\`true\`].version | [0]" -o tsv)