Skip to content

AttributeError after login through the browser #13995

@Dissonant-Tech

Description

@Dissonant-Tech

Describe the bug

AttributeError after login through the browser.

Command Name
az login

Errors:

'SubscriptionClient' object has no attribute 'config'
Traceback (most recent call last):
python3.8/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())
lib/python3.8/site-packages/six.py, ln 703, in reraise
    raise value
...
azure/cli/core/_profile.py, ln 888, in _find_using_common_tenant
    client = self._arm_client_factory(token_credential)
azure/cli/core/_profile.py, ln 807, in create_arm_client_factory
    configure_common_settings(cli_ctx, client)
cli/core/commands/client_factory.py, ln 79, in configure_common_settings
    client.config.enable_http_logger = True
AttributeError: 'SubscriptionClient' object has no attribute 'config'

Expected Behavior

The azure-cli should login to azure.

Environment Summary

Linux-5.6.15-arch1-1-x86_64-with-glibc2.2.5
Python 3.8.3
Installer: PIP

azure-cli 2.7.0

Additional Context

Currently using SSO through office365 for login.

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions