Azure / azure-cli

Azure Command-Line Interface
MIT License
4.01k stars 2.98k forks source link

AttributeError: 'SubscriptionClient' object has no attribute 'config' #18934

Open kasunsjc opened 3 years ago

kasunsjc commented 3 years ago

This is autogenerated. Please review and update as needed.

Describe the bug

Command Name az login

Errors:

'SubscriptionClient' object has no attribute 'config'
Traceback (most recent call last):
python3.8/site-packages/knack/cli.py, ln 231, 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())
...
azure/cli/core/_profile.py, ln 808, 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'

To Reproduce:

Steps to reproduce the behavior. Note that argument values have been redacted, as they may contain sensitive information.

Expected Behavior

Environment Summary

macOS-11.4-x86_64-i386-64bit
Python 3.8.11
Installer: HOMEBREW

azure-cli 2.26.1

Extensions:
next 0.1.2
azure-iot 0.10.0
azure-firewall 0.9.0
aks-preview 0.5.10
azure-devops 0.12.0
resource-graph 1.1.0
subscription 0.1.4
interactive 0.4.2

Additional Context

yonzhan commented 3 years ago

@jiasli for awareness

jiasli commented 2 years ago

This is issue still happening? If so, could you share the full call stack?