Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

az vm image list command does not have all the necessary features like nvme and more #30666

Open
ebolton-cyber opened this issue Jan 15, 2025 · 2 comments
Assignees
Labels
Auto-Assign Auto assign by bot Auto-Resolve Auto resolve by bot Azure CLI Team The command of the issue is owned by Azure CLI team Compute az vm/vmss/image/disk/snapshot question The issue doesn't require a change to the product in order to be resolved. Most issues start as that
Milestone

Comments

@ebolton-cyber
Copy link

Describe the bug

az cli command needs improvement. It is currently showing limited properties like ARM64 and deprecation Status. It is not showing other properties like hibernate, nvme, hyperVgeneration and so on. As a result, customers cannot list images that support these properties making the customer experience difficult. It seems like these features are not a top level data in the listing query

See example of az vm image list command:

C:\Windows\System32>az vm image list --all --publisher Canonical --offer UbuntuServer --architecture arm64 --query "[?contains(imageDeprecationStatus.imageState,'Active')]"
[
{
"architecture": "Arm64",
"imageDeprecationStatus": {
"imageState": "Active",
"scheduledDeprecationTime": null
},
"offer": "UbuntuServer",
"publisher": "Canonical",
"sku": "18_04-daily-lts-arm64",
"urn": "Canonical:UbuntuServer:18_04-daily-lts-arm64:18.04.202211080",
"version": "18.04.202211080"

See example of az vm image show command with all the properties listed (these properties should be on the az vm image list command as well):

C:\Windows\System32>az vm image show --publisher Canonical --offer UbuntuServer --sku 18_04-lts-arm64 --version 18.04.202401161 --location westus2
{
"architecture": "Arm64",
"automaticOsUpgradeProperties": {
"automaticOsUpgradeSupported": false
},
"dataDiskImages": [],
"disallowed": {
"vmDiskType": "Unmanaged"
},
"extendedLocation": null,
"features": [
{
"name": "IsAcceleratedNetworkSupported",
"value": "True"
},
{
"name": "DiskControllerTypes",
"value": "SCSI, NVMe"
},
{
"name": "IsHibernateSupported",
"value": "True"
}
],
"hyperVGeneration": "V2",
"id": "/Subscriptions/64fd5901-028e-49a1-9484-5b9f6792d9e5/Providers/Microsoft.Compute/Locations/westus2/Publishers/Canonical/ArtifactTypes/VMImage/Offers/UbuntuServer/Skus/18_04-lts-arm64/Versions/18.04.202401161",
"imageDeprecationStatus": {
"alternativeOption": null,
"imageState": "Active",
"scheduledDeprecationTime": null
},
"location": "westus2",
"name": "18.04.202401161",
"osDiskImage": {
"operatingSystem": "Linux",
"sizeInGb": 30
},
"plan": null,
"tags": null
}

Related command

az vm image list --all --publisher Canonical --offer UbuntuServer --architecture arm64 --query "[?contains(imageDeprecationStatus.imageState,'Active')]"
[
{
"architecture": "Arm64",
"imageDeprecationStatus": {
"imageState": "Active",
"scheduledDeprecationTime": null
},
"offer": "UbuntuServer",
"publisher": "Canonical",
"sku": "18_04-daily-lts-arm64",
"urn": "Canonical:UbuntuServer:18_04-daily-lts-arm64:18.04.202211080",
"version": "18.04.202211080"

Errors

The command is not listing all the features properly

Issue script & Debug output

No debug output

Expected behavior

The az vm image list command show show all top level properties like ARM64, NVME, hibernate, hyperVgeneration like below so customers can list and filter images based on these properties:

C:\Windows\System32>az vm image show --publisher Canonical --offer UbuntuServer --sku 18_04-lts-arm64 --version 18.04.202401161 --location westus2
{
"architecture": "Arm64",
"automaticOsUpgradeProperties": {
"automaticOsUpgradeSupported": false
},
"dataDiskImages": [],
"disallowed": {
"vmDiskType": "Unmanaged"
},
"extendedLocation": null,
"features": [
{
"name": "IsAcceleratedNetworkSupported",
"value": "True"
},
{
"name": "DiskControllerTypes",
"value": "SCSI, NVMe"
},
{
"name": "IsHibernateSupported",
"value": "True"
}
],
"hyperVGeneration": "V2",
"id": "/Subscriptions/64fd5901-028e-49a1-9484-5b9f6792d9e5/Providers/Microsoft.Compute/Locations/westus2/Publishers/Canonical/ArtifactTypes/VMImage/Offers/UbuntuServer/Skus/18_04-lts-arm64/Versions/18.04.202401161",
"imageDeprecationStatus": {
"alternativeOption": null,
"imageState": "Active",
"scheduledDeprecationTime": null
},
"location": "westus2",
"name": "18.04.202401161",
"osDiskImage": {
"operatingSystem": "Linux",
"sizeInGb": 30
},
"plan": null,
"tags": null
}

Environment Summary

azure-cli 2.65.0 *

core 2.65.0 *
telemetry 1.1.0

Extensions:
ai-examples 0.2.5
ml 2.30.1
ssh 2.0.5

Dependencies:
msal 1.31.0
azure-mgmt-resource 23.1.1

Python location '/usr/bin/python3.9'
Extensions directory '/home/edewe/.azure/cliextensions'
Extensions system directory '/usr/lib/python3.9/site-packages/azure-cli-extensions'

Python (Linux) 3.9.19 (main, Aug 23 2024, 00:07:48)
[GCC 11.2.0]

Additional context

No response

@ebolton-cyber ebolton-cyber added the bug This issue requires a change to an existing behavior in the product in order to be resolved. label Jan 15, 2025
Copy link

Hi @ebolton-cyber,

2.65.0 is not the latest Azure CLI(2.68.0).

If you haven't already attempted to do so, please upgrade to the latest Azure CLI version by following https://learn.microsoft.com/en-us/cli/azure/update-azure-cli.

@azure-client-tools-bot-prd azure-client-tools-bot-prd bot added the Auto-Resolve Auto resolve by bot label Jan 15, 2025
@microsoft-github-policy-service microsoft-github-policy-service bot added the Compute az vm/vmss/image/disk/snapshot label Jan 15, 2025
@yonzhan
Copy link
Collaborator

yonzhan commented Jan 15, 2025

Thank you for opening this issue, we will look into it.

@microsoft-github-policy-service microsoft-github-policy-service bot added Auto-Assign Auto assign by bot Azure CLI Team The command of the issue is owned by Azure CLI team question The issue doesn't require a change to the product in order to be resolved. Most issues start as that labels Jan 15, 2025
@ebolton-cyber ebolton-cyber changed the title az vm image list command does not have all the necessary features like nvme az vm image list command does not have all the necessary features like nvme and more Jan 15, 2025
@yonzhan yonzhan removed the bug This issue requires a change to an existing behavior in the product in order to be resolved. label Jan 15, 2025
@yonzhan yonzhan added this to the Backlog milestone Jan 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Auto-Assign Auto assign by bot Auto-Resolve Auto resolve by bot Azure CLI Team The command of the issue is owned by Azure CLI team Compute az vm/vmss/image/disk/snapshot question The issue doesn't require a change to the product in order to be resolved. Most issues start as that
Projects
None yet
Development

No branches or pull requests

4 participants