I used the below command to list and stop all the VMs in my account. VMs are listing, but an additional STDIN is getting listed. This STDIN is causing the error "invalid resource id"
What can I do to ignore the STDIN??. Your help greatly appreciated.
az vm stop --ids $(az vm list --query "[].id" -o tsv) | grep -v "ABDK"
thanks
az vm stop --ids $(az vm list --query "[].id" -o tsv) | grep -v "ABDK"
?