azure-cli icon indicating copy to clipboard operation
azure-cli copied to clipboard

Offline VM image list

Open rguptar opened this issue 3 years ago • 3 comments

Related command az vm image list

Describe the bug az vm image list returns an offline list of VM images across Linux and Windows as an alternative to az vm image list --all which is online. The offline list stored in the CLI source (see additional context). This file should be updated periodically to reflect the latest distro releases available on Azure. Some examples include:

  • Ubuntu 18.04 -> 20.04
  • Debian 10 -> 11
  • Centos 7.5 -> 7.9

To Reproduce az vm image list | jq -r .[].urn

Expected behavior The offline list should be periodically updated.

Additional context The config is stored src/azure-cli/azure/cli/command_modules/vm/_alias.py.

rguptar avatar Aug 01 '22 19:08 rguptar

Compute

yonzhan avatar Aug 01 '22 22:08 yonzhan

@rguptar In fact, the offline configuration file used by CLI is aliases.json, and src/azure-cli/azure/cli/command_modules/vm/_alias.py is only a backup when the aliases.json cannot access due to network problems.

Please note that because CLI team was unable to keep up with the latest information of these images, so this file aliases.json is maintained by the service team. This is our workflow to update the image information in the aliases.json: if service team wants to update the image information in the configuration file, please submit a PR like https://github.com/Azure/azure-rest-api-specs/pull/19432, and then our team will assist in reviewing it.

zhoxing-ms avatar Aug 02 '22 01:08 zhoxing-ms

Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @Drewm3, @avirishuv, @vaibhav-agar, @amjads1.

Issue Details

Related command az vm image list

Describe the bug az vm image list returns an offline list of VM images across Linux and Windows as an alternative to az vm image list --all which is online. The offline list stored in the CLI source (see additional context). This file should be updated periodically to reflect the latest distro releases available on Azure. Some examples include:

  • Ubuntu 18.04 -> 20.04
  • Debian 10 -> 11
  • Centos 7.5 -> 7.9

To Reproduce az vm image list | jq -r .[].urn

Expected behavior The offline list should be periodically updated.

Additional context The config is stored src/azure-cli/azure/cli/command_modules/vm/_alias.py.

Author: rguptar
Assignees: zhoxing-ms
Labels:

Compute, Service Attention, Auto-Assign

Milestone: Backlog

ghost avatar Aug 02 '22 01:08 ghost

Thank you for your feedback. This has been routed to the support team for assistance.

ghost avatar Aug 14 '22 03:08 ghost

The CLI team released the fix I put into the source of these images. The outdated image aliases are planned to be removed in the Oct 2023 breaking change release.

And @rguptar has confirmed the issue is fixed. Thanks!

Sandido avatar Mar 31 '23 16:03 Sandido