-
Notifications
You must be signed in to change notification settings - Fork 3.4k
az vm get-instance-view not returning list when providing one ID #28205
Copy link
Copy link
Open
Labels
Auto-AssignAuto assign by botAuto assign by botAuto-ResolveAuto resolve by botAuto resolve by botAzure CLI TeamThe command of the issue is owned by Azure CLI teamThe command of the issue is owned by Azure CLI teamComputeaz vm/vmss/image/disk/snapshotaz vm/vmss/image/disk/snapshotSimilar-Issueact-observability-squadcustomer-reportedIssues that are reported by GitHub users external to the Azure organization.Issues that are reported by GitHub users external to the Azure organization.questionThe issue doesn't require a change to the product in order to be resolved. Most issues start as thatThe issue doesn't require a change to the product in order to be resolved. Most issues start as that
Milestone
Metadata
Metadata
Assignees
Labels
Auto-AssignAuto assign by botAuto assign by botAuto-ResolveAuto resolve by botAuto resolve by botAzure CLI TeamThe command of the issue is owned by Azure CLI teamThe command of the issue is owned by Azure CLI teamComputeaz vm/vmss/image/disk/snapshotaz vm/vmss/image/disk/snapshotSimilar-Issueact-observability-squadcustomer-reportedIssues that are reported by GitHub users external to the Azure organization.Issues that are reported by GitHub users external to the Azure organization.questionThe issue doesn't require a change to the product in order to be resolved. Most issues start as thatThe issue doesn't require a change to the product in order to be resolved. Most issues start as that
Describe the bug
According this documentation, commands which COULD return more than one object should return an array.
az vm get-instance-view --ids "$MY_IDS"This makes queries unreliable. For example:
az vm get-instance-view --ids "$MY_IDS" --query "[].id"Related command
az vm get-instance-viewErrors
No errors
Issue script & Debug output
After having a look at them I don't think they are relevant. Please let me know if actually required and I will spare some time to remove all the sensitive information and provide the logs.
Expected behavior
az vm get-instance-view --ids "my-vm-id"returns an array with a single objectEnvironment Summary
Additional context
No response