Failed to Create Service Bus Topic on AZ cli as of 2.0.64 #9319
Labels
needs-triage
This is a new issue that needs to be triaged to the appropriate team.
Service Bus
az servicebus
Describe the bug
When "az topic create" is run, it errors out, saying "get() missing 1 required positional argument: 'topic_name'
`> az servicebus topic create --subscription (subscription) --name (topic-name) --namespace-name (namespace-name) --resource-group (resource-group) --default-message-time-to-live (ttl) --max-size (size) --enable-duplicate-detection False --duplicate-detection-history-time-window (time-window) --output json
ERROR: The command failed with an unexpected error. Here is the traceback:
ERROR: get() missing 1 required positional argument: 'topic_name'
Traceback (most recent call last):
File "/tmp/lib/python3.6/site-packages/knack/cli.py", line 206, in invoke
cmd_result = self.invocation.execute(args)
File "/tmp/lib/python3.6/site-packages/azure/cli/core/commands/init.py", line 560, in execute
raise ex
File "/tmp/lib/python3.6/site-packages/azure/cli/core/commands/init.py", line 618, in _run_jobs_serially
results.append(self._run_job(expanded_arg, cmd_copy))
File "/tmp/lib/python3.6/site-packages/azure/cli/core/commands/init.py", line 611, in _run_job
six.reraise(*sys.exc_info())
File "/tmp/lib/python3.6/site-packages/six.py", line 693, in reraise
raise value
File "/tmp/lib/python3.6/site-packages/azure/cli/core/commands/init.py", line 588, in _run_job
result = cmd_copy(params)
File "/tmp/lib/python3.6/site-packages/azure/cli/core/commands/init.py", line 297, in call
return self.handler(*args, **kwargs)
File "/tmp/lib/python3.6/site-packages/azure/cli/core/init.py", line 453, in default_command_handler
return op(**command_args)
File "/tmp/lib/python3.6/site-packages/azure/cli/command_modules/servicebus/custom.py", line 188, in cli_sbtopic_create
getnamespace = client.get(resource_group_name=resource_group_name, namespace_name=namespace_name)
TypeError: get() missing 1 required positional argument: 'topic_name'`
To Reproduce
Run "az topic create" with appropriate arguments
Expected behavior
Service bus creation with no errors
Environment summary
Install method: pip
cli version: 2.0.64
os version: VSTS Hosted agents, ubuntu 1604
shell: bash
Additional context
We pinned the cli to 2.0.63, and the same command runs successfully.
The text was updated successfully, but these errors were encountered: