Skip to content

az vm get-instance-view doesn’t accept multiple ids... #7818

@ecc256

Description

@ecc256

Describe the bug
az vm get-instance-view doesn’t accept multiple ids

To Reproduce
Single id works:
az vm list --query "[0:1].id" -o tsv | az vm get-instance-view --ids @- --query instanceView.statuses[1] --output table
Two and more won’t work:
az vm list --query "[0:2].id" -o tsv | az vm get-instance-view --ids @- --query instanceView.statuses[1] --output table

Expected behavior
Command should work with multiple ids passed

Environment summary
Install Method (e.g. pip, interactive script, apt-get, Docker, MSI, edge build) / CLI version (az --version) / OS version / Shell Type (e.g. bash, cmd.exe, Bash on Windows)
MSI / azure-cli (2.0.42) / Windows server 2016 / cmd / Python (Windows) 3.6.5 (v3.6.5:f59c0932b4, Mar 28 2018, 16:07:46) [MSC v.1900 32 bit (Intel)]

Additional context
Add any other context about the problem here.
Nothing

Metadata

Metadata

Assignees

Labels

Compute-clibugThis issue requires a change to an existing behavior in the product in order to be resolved.questionThe issue doesn't require a change to the product in order to be resolved. Most issues start as that

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions