azure-cli icon indicating copy to clipboard operation
azure-cli copied to clipboard

az feature register fails with exception

Open DavideDelVecchio opened this issue 6 years ago • 3 comments

This is autogenerated. Please review and update as needed.

Describe the bug

Command Name az feature register

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 654, in execute
    raise ex
cli/core/commands/__init__.py, ln 718, in _run_jobs_serially
    results.append(self._run_job(expanded_arg, cmd_copy))
cli/core/commands/__init__.py, ln 711, in _run_job
    six.reraise(*sys.exc_info())
...
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 feature register --namespace Microsoft.Storage
    --name AllowAccountEncryptionKeyForQueues az feature register --namespace Microsoft.Storage
    --name AllowAccountEncryptionKeyForTables

Expected Behavior

The command should complete correctly

Environment Summary

Linux-4.15.0-1083-azure-x86_64-with-debian-stretch-sid
Python 3.6.10
Installer: DEB

azure-cli 2.7.0

Additional Context

DavideDelVecchio avatar Jun 08 '20 13:06 DavideDelVecchio

add to S172

yonzhan avatar Jun 08 '20 13:06 yonzhan

hi @DavideDelVecchio did you meet the error at CloudShell? If yes, it's an known issue same as #11749. Pls workaround by run az login.

yungezz avatar Jun 08 '20 14:06 yungezz

@DavideDelVecchio any update?

yonzhan avatar Jul 04 '20 14:07 yonzhan