Skip to content
Permalink
Browse files

Merge pull request #51 from kpantos/staging

Get version query which does not include preview orchestrator versions
  • Loading branch information
sabbour committed Dec 6, 2019
2 parents b26a481 + d9a8d85 commit 17dc69dcc629e5ab7f3bb8bcf00882cf2bbc26e0
Showing with 2 additions and 2 deletions.
  1. +2 −2 _entries/02-01 challenge1.md
@@ -13,10 +13,10 @@ Azure has a managed Kubernetes service, AKS (Azure Kubernetes Service), we'll us

{% collapsible %}

Get the latest available Kubernetes version in your preferred region into a bash variable. Replace `<region>` with the region of your choosing, for example `eastus`.
Get the latest available Kubernetes version in your preferred region into a bash variable. Replace `<region>` with the region of your choosing, for example `eastus`. The query also filters out preview versions.

```sh
version=$(az aks get-versions -l <region> --query 'orchestrators[-1].orchestratorVersion' -o tsv)
version=$(az aks get-versions -l <region> --query 'orchestrators[?!isPreview] | [-1].orchestratorVersion' -o tsv)
```

{% endcollapsible %}

0 comments on commit 17dc69d

Please sign in to comment.
You can’t perform that action at this time.