Skip to content

az login fails #12818

Description

@taoyama

This is autogenerated. Please review and update as needed.

Describe the bug

Command Name
az login

Errors:

'displayName'
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 625, in execute
    raise ex
cli/core/commands/__init__.py, ln 689, in _run_jobs_serially
    results.append(self._run_job(expanded_arg, cmd_copy))
cli/core/commands/__init__.py, ln 682, in _run_job
    six.reraise(*sys.exc_info())
lib/python3.6/site-packages/six.py, ln 693, in reraise
    raise value
...
azure/cli/core/_profile.py, ln 203, in find_subscriptions_on_login
    tenant, self._ad_resource_uri)
azure/cli/core/_profile.py, ln 844, in find_through_interactive_flow
    result = self._find_using_common_tenant(token_entry[_ACCESS_TOKEN], resource)
azure/cli/core/_profile.py, ln 883, in _find_using_common_tenant
    t.display_name = t.additional_properties['displayName']
KeyError: 'displayName'

To Reproduce:

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

  • docker run -it mcr.microsoft.com/azure-cli:2.3.0
  • az login

Expected Behavior

Environment Summary

Linux-5.0.0-1035-azure-x86_64-with
Python 3.6.10
Installer: DOCKER

azure-cli 2.3.0

Additional Context

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions