-
Notifications
You must be signed in to change notification settings - Fork 3.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Get-AzVmss Accepts Empty Values for -ResourceGroupName and -VMScaleSetName #20095
Comments
Thank you for your feedback. This has been routed to the support team for assistance. |
@mbrat2005 Thanks for your feedback! We will investigate and update as appropriate. |
@mbrat2005 Is this issue fixed as I see you have submitted PR's ? |
Hi @SaurabhSharma-MSFT, I have not submitted a PR which would address this issue. |
Hi @SaurabhSharma-MSFT & @mbrat2005. I also came across this as well and created a PR with the changes. Hope it can be merged despite it sort of being a breaking change, but honestly I don't see why anyone would want to keep this behaviour since |
Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @TravisCragg-MSFT, @sandeepraichura. |
Description
The 'Get-AzVMSS' command accepts empty strings for the -ResourceGroupName and -VMScaleSetName parameters and proceeds as if those parameters were not provided. This is inconsistent with other Az module commands.
For example, this is how I'd expect the cmdlet to repond to a blank value:
Get-AzVM -ResourceGroupName "rg-vmss" -Name ''
Get-AzVM: Cannot validate argument on parameter 'Name'. The argument is null or empty. Provide an argument that is not null or empty, and then try the command again.
Issue script & Debug output
Environment data
Module versions
Error output
No response
The text was updated successfully, but these errors were encountered: