Azure Iot Hub List command not working
This is autogenerated. Please review and update as needed.
Describe the bug
Command Name
az iot hub list
Errors:
400 Client Error: Bad Request for url: http://localhost:50342/oauth2/token
Traceback (most recent call last):
python3.6/site-packages/knack/cli.py, ln 215, in invoke
cmd_result = self.invocation.execute(args)
cli/core/commands/__init__.py, ln 631, in execute
raise ex
cli/core/commands/__init__.py, ln 695, in _run_jobs_serially
results.append(self._run_job(expanded_arg, cmd_copy))
...
python3.6/site-packages/msrestazure/azure_active_directory.py, ln 486, in get_msi_token
result.raise_for_status()
python3.6/site-packages/requests/models.py, ln 940, in raise_for_status
raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 400 Client Error: Bad Request for url: http://localhost:50342/oauth2/token
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 iot hub list
Expected Behavior
Environment Summary
Linux-4.15.0-1082-azure-x86_64-with-debian-stretch-sid
Python 3.6.5
Installer: DEB
azure-cli 2.5.1 *
Extensions:
azure-iot 0.9.2
interactive 0.4.4
Additional Context
Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @rkmanda, @chieftn.
iot hub
@Azure/azure-iot-cli-triage
There is currently an open issue in cloudshell that manifests this error. The solution is to [re]run az login and then execute the original command.
Linking to the running issue thread Azure/azure-cli#11749
Closed as the root cause is the known CloudShell issue @prbans mentioned.