cannot delete wcf relay that has empty string as a name
See original GitHub issueThis 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
Issue Analytics
- State:
- Created 4 years ago
- Comments:19 (11 by maintainers)
Top Results From Across the Web
WCF Relays - Delete - REST API (Azure Relay) | Microsoft Learn
Error reponse indicates Relay service is not able to process the incoming request. The reason is provided in the error message. Name, Type,...
Read more >System.ArgumentException: The empty string '' is not a valid ...
I am using a Web Service I have consumed and has automatically generated code in Visual Studio. The service is this one: ...
Read more >Testing for Empty/Nil/Missing Source Nodes in BizTalk Maps
This will work great, covering every possible scenario for the NillableField1: Field does not exist; Field is marked nil; Field is an empty...
Read more >Reaching into your On-Prem services using Azure Hybrid ...
Azure Hybrid Connections can be used to help you connect your Cloud Applications or Microservices to existing on-premise APIs.
Read more >1. WCF Essentials - Programming WCF Services, 4th Edition ...
WCF is Microsoft's implementation of a set of industry standards defining service ... A URI can be any unique string, such as the...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
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.