Skip to content

Error using az login to Azure Portal #17514

Description

@dhmoto17

This is autogenerated. Please review and update as needed.

Describe the bug

Cannot login to Azure Portal with az login

Command Name
az login

Errors:

'NoneType' object is not iterable
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())
...
cli/command_modules/profile/custom.py, ln 158, in login
    use_cert_sn_issuer=use_cert_sn_issuer)
azure/cli/core/_profile.py, ln 240, in find_subscriptions_on_login
    is_service_principal, bool(use_cert_sn_issuer))
azure/cli/core/_profile.py, ln 276, in _normalize_properties
    subscription_dict[_MANAGED_BY_TENANTS] = [{_TENANT_ID: t.tenant_id} for t in s.managed_by_tenants]
TypeError: 'NoneType' object is not iterable

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 login --query "sort_by([].{name:name, state:state, isDefault:isDefault, subscriptionId:id, tenantId:tenantId},&name)" --output table --only-show-errors

Expected Behavior

Login to Azure Portal and return list of subscriptions

Environment Summary

Linux-4.4.0-19041-Microsoft-x86_64-with-debian-buster-sid
Python 3.6.10
Installer: DEB

azure-cli 2.14.2 *

Extensions:
azure-devops 0.18.0
resource-graph 1.1.0

Additional Context

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    ARMaz resource/group/lock/tag/deployment/policy/managementapp/account management-groupService AttentionThis issue is responsible by Azure service team.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions