Azure / Azure/azure-cli

Modified the sort to: Show the latest version of the Docker extension.

Open
#19,649 2 comments 0 reactions 1 assignee Claimed by @zhoxing-ms View on GitHub
act-observability-squad Compute customer-reported feature-request
Dominant language
Python
Stars
4.6k
Forks
3.5k
Avg merge
3d 2h
Merged PRs (30d)
60

Description

Hello,

We must modify the spell in order to really have the latest version which is the "Show the latest version of the Docker extension." section:

az vm extension image list-versions --publisher Microsoft.EnterpriseCloud.Monitoring --location westeurope --name OmsAgentForLinux --query "[].name" -o tsv | sort | tail -n 1
1.9.1 => This is not the latest version

az vm extension image list-versions --publisher Microsoft.EnterpriseCloud.Monitoring --location westeurope --name OmsAgentForLinux --query "[].name" -o tsv | sort -t. -k 1,1n -k 2,2n -k 3,3n -k 4,4n | tail -n 1
1.13.40 => This is the latest version

---
#### Document Details

⚠ *Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.*

* ID: 75b43753-55c6-9a97-79e7-cb102ca16905
* Version Independent ID: b88b763f-9855-5a37-ab97-375e7438f8c9
* Content: [az vm extension image](https://docs.microsoft.com/en-us/cli/azure/vm/extension/image?view=azure-cli-latest#az_vm_extension_image_show)
* Content Source: [latest/docs-ref-autogen/vm/extension/image.yml](https://github.com/MicrosoftDocs/azure-docs-cli/blob/master/latest/docs-ref-autogen/vm/extension/image.yml)
* Service: **virtual-machines**
* GitHub Login: @rloutlaw
* Microsoft Alias: **routlaw**

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.