-
Notifications
You must be signed in to change notification settings - Fork 3.4k
Closed
Labels
Computeaz vm/vmss/image/disk/snapshotaz vm/vmss/image/disk/snapshotquestionThe 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
Description
Describe the bug
Command Name
az vm list --resource-group
To Reproduce:
Call az vm list --resource-group with an empty string in quotes:
az vm list --resource-group ''
Expected Behavior
For the command to not return all virtual machines in a subscription and for the command to display an identical error message as is the case when just az vm list --resource-group is called.
This can have major detrimental effects if, for example, the name of the resource group is a variable whose value is undefined and then the result of that command is used as an input to something like az vm stop or even az vm delete.
Environment Summary
Linux-5.11.10-200.fc33.x86_64-x86_64-with-glibc2.32
Python 3.9.2
Installer: RPM
azure-cli 2.21.0
Additional Context
I have not tested other list-type sub-commands that also have a --resource-group parameter defined, but I believe those should be checked for this regression as well.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
Computeaz vm/vmss/image/disk/snapshotaz vm/vmss/image/disk/snapshotquestionThe 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