Azure / application-gateway-kubernetes-ingress

This is an ingress controller that can be run on Azure Kubernetes Service (AKS) to allow an Azure Application Gateway to act as the ingress for an AKS cluster.
https://azure.github.io/application-gateway-kubernetes-ingress
MIT License
667 stars 413 forks source link

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

Closed effelow closed 1 month ago

effelow commented 5 months ago

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 commented 1 month ago

install guide is now updated with new steps.