-
Notifications
You must be signed in to change notification settings - Fork 3.4k
Description
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