Skip to content

'KeyError' after running 'az login' #1086

Closed

Description

I have seen the following error after runnning "az login".
This message was displayed after devicelogin page.

I use bash on Ubuntu on Windows(build 14393.321)

pakue@DESKTOP-TPETLAO:~$ az login
To sign in, use a web browser to open the page https://aka.ms/devicelogin. Enter the code GGV286GQY to authenticate.
'userId'
Traceback (most recent call last):
File "/usr/local/az/local/lib/python2.7/site-packages/azure/cli/main.py", line 35, in main
cmd_result = APPLICATION.execute(args)
File "/usr/local/az/local/lib/python2.7/site-packages/azure/cli/core/application.py", line 120, in execute
result = expanded_arg.func(params)
File "/usr/local/az/local/lib/python2.7/site-packages/azure/cli/core/commands/init.py", line 229, in _execute_command
result = operation(client, **kwargs) if client else operation(**kwargs)
File "/usr/local/az/local/lib/python2.7/site-packages/azure/cli/command_modules/profile/custom.py", line 58, in login
tenant)
File "/usr/local/az/local/lib/python2.7/site-packages/azure/cli/core/_profile.py", line 88, in find_subscriptions_on_login
self._management_resource_uri)
File "/usr/local/az/local/lib/python2.7/site-packages/azure/cli/core/_profile.py", line 274, in find_through_interactive_flow
self.user_id = token_entry[_TOKEN_ENTRY_USER_ID]
KeyError: 'userId'

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

Metadata

Assignees

Labels

bugThis issue requires a change to an existing behavior in the product in order to be resolved.

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions