Skip to content
This repository has been archived by the owner on Nov 16, 2023. It is now read-only.

Commit

Permalink
Merge pull request #51 from kpantos/staging
Browse files Browse the repository at this point in the history
Get version query which does not include preview orchestrator versions
  • Loading branch information
sabbour committed Dec 6, 2019
2 parents b26a481 + d9a8d85 commit 17dc69d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions _entries/02-01 challenge1.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 %}
Expand Down

0 comments on commit 17dc69d

Please sign in to comment.