azure-cli: cannot delete wcf relay that has empty string as a name
This is autogenerated. Please review and update as needed.
Describe the bug
When trying to delete a wcf relay that has no name this error is thrown. Using the list command the wcf relay shows up with “name”: “”.
Command Name
az relay wcfrelay delete
Errors:
Parameter 'relay_name' must have length greater than 1.
Traceback (most recent call last):
Temp\pip-install-68v0_w99\knack\knack\cli.py, ln 206, in invoke
azure\cli\core\commands\__init__.py, ln 523, in execute
azure\cli\core\commands\__init__.py, ln 581, in _run_jobs_serially
azure\cli\core\commands\__init__.py, ln 574, in _run_job
Local\Temp\pip-install-68v0_w99\six\six.py, ln 693, in reraise
azure\cli\core\commands\__init__.py, ln 551, in _run_job
azure\cli\core\commands\__init__.py, ln 289, in __call__
azure-cli-core\azure\cli\core\__init__.py, ln 453, in default_command_handler
azure\mgmt\relay\operations\wcf_relays_operations.py, ln 204, in delete
Temp\pip-install-68v0_w99\msrest\msrest\serialization.py, ln 592, in url
Temp\pip-install-68v0_w99\msrest\msrest\serialization.py, ln 672, in validate
msrest.exceptions.ValidationError: Parameter 'relay_name' must have length greater than 1.
To Reproduce:
Steps to reproduce the behavior. Note that argument values have been redacted, as they may contain sensitive information.
- Put any pre-requisite steps here…
az relay wcfrelay delete --ids {}
Expected Behavior
Environment Summary
Windows-10-10.0.17134-SP0
Python 3.6.6
Shell: powershell.exe
azure-cli 2.0.63
Additional Context
About this issue
- Original URL
- State: closed
- Created 5 years ago
- Comments: 19 (11 by maintainers)
Thanks @tbock. I hope you get it straightened out, and I did open a PR so that you at least don’t get an ugly stack trace when a validation error is thrown by the SDK, so you are helping make the CLI better 😃
Thanks for your attention. I will look into that option.
sidenote… cli is great so thanks for that.