Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

az Login error - Unable to login at all #26618

Closed
AyeshaGagguturi opened this issue Jun 6, 2023 · 4 comments
Closed

az Login error - Unable to login at all #26618

AyeshaGagguturi opened this issue Jun 6, 2023 · 4 comments
Assignees
Labels
Account az login/account Auto-Assign Auto assign by bot Auto-Resolve Auto resolve by bot Azure CLI Team The command of the issue is owned by Azure CLI team bug This issue requires a change to an existing behavior in the product in order to be resolved. question The issue doesn't require a change to the product in order to be resolved. Most issues start as that Similar-Issue Upgrade az upgrade
Milestone

Comments

@AyeshaGagguturi
Copy link

Describe the bug

When I run az login I get the following error:
root@DESKTOP-9HB1JIF:~/hanarp# az login --use-device-code
To sign in, use a web browser to open the page https://microsoft.com/devicelogin and enter the code FPYBAC8FU to authenticate.
The command failed with an unexpected error. Here is the traceback:
0. The ID token is not yet valid. Make sure your computer's time and time zone are both correct. Current epoch = 1686070416. The id_token was: {
"aud": "04b07795-8ddb-461a-bbee-02f9e1bf7b46",
"iss": "https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/v2.0",
"iat": 1686073039,
"nbf": 1686073039,
"exp": 1686076939,
"aio": "AZQAa/8TAAAAVHL8pkqUvmpfgGLWyEj9YoMgm5KlqNnXUCHRrQqeR1PC5vcMfFKBvMbDowt1thQ7CeAiaaIu6lc30SqyMeW93e3YyA6An6jm7LupL2mArsLzm4yaNWRXHjyup8uUKCMNPmKLgO3EOP6ylQzfioa+ClUDKuli+uQ0+mbZaCpLx7DKJr3AwDUgu5GOITeDkw7s",
"name": "Ayesha Gagguturi",
"oid": "80b006e9-a0ee-409b-adac-c3b2a99074b7",
"preferred_username": "[email protected]",
"puid": "100320016BCF6D70",
"rh": "0.AQEAv4j5cvGGr0GRqy180BHbR5V3sATbjRpGu-4C-eG_e0YaAOE.",
"sub": "EHE3SQEM5VUH6-77QUed6qpwxwO6-PafHhop8oQIObs",
"tid": "72f988bf-86f1-41af-91ab-2d7cd011db47",
"uti": "1aTu_J41vUmCKBLNCi2nAA",
"ver": "2.0"
}
Traceback (most recent call last):
File "/opt/az/lib/python3.10/site-packages/knack/cli.py", line 233, in invoke
cmd_result = self.invocation.execute(args)
File "/opt/az/lib/python3.10/site-packages/azure/cli/core/commands/init.py", line 663, in execute
raise ex
File "/opt/az/lib/python3.10/site-packages/azure/cli/core/commands/init.py", line 726, in _run_jobs_serially
results.append(self._run_job(expanded_arg, cmd_copy))
File "/opt/az/lib/python3.10/site-packages/azure/cli/core/commands/init.py", line 697, in _run_job
result = cmd_copy(params)
File "/opt/az/lib/python3.10/site-packages/azure/cli/core/commands/init.py", line 333, in call
return self.handler(*args, **kwargs)
File "/opt/az/lib/python3.10/site-packages/azure/cli/core/commands/command_operation.py", line 121, in handler
return op(**command_args)
File "/opt/az/lib/python3.10/site-packages/azure/cli/command_modules/profile/custom.py", line 139, in login
subscriptions = profile.login(
File "/opt/az/lib/python3.10/site-packages/azure/cli/core/_profile.py", line 152, in login
user_identity = identity.login_with_device_code(scopes=scopes, **kwargs)
File "/opt/az/lib/python3.10/site-packages/azure/cli/core/auth/identity.py", line 168, in login_with_device_code
result = self._msal_app.acquire_token_by_device_flow(flow, **kwargs) # By default it will block
File "/opt/az/lib/python3.10/site-packages/msal/application.py", line 1978, in acquire_token_by_device_flow
response = _clean_up(self.client.obtain_token_by_device_flow(
File "/opt/az/lib/python3.10/site-packages/msal/oauth2cli/oauth2.py", line 383, in obtain_token_by_device_flow
result = self._obtain_token_by_device_flow(flow, **kwargs)
File "/opt/az/lib/python3.10/site-packages/msal/oauth2cli/oauth2.py", line 345, in _obtain_token_by_device_flow
result = self._obtain_token(
File "/opt/az/lib/python3.10/site-packages/msal/oauth2cli/oidc.py", line 116, in _obtain_token
ret = super(Client, self)._obtain_token(grant_type, *args, **kwargs)
File "/opt/az/lib/python3.10/site-packages/msal/oauth2cli/oauth2.py", line 788, in _obtain_token
(on_obtaining_tokens or self.on_obtaining_tokens)({
File "/opt/az/lib/python3.10/site-packages/msal/application.py", line 700, in
on_obtaining_tokens=lambda event: self.token_cache.add(dict(
File "/opt/az/lib/python3.10/site-packages/msal/token_cache.py", line 314, in add
super(SerializableTokenCache, self).add(event, **kwargs)
File "/opt/az/lib/python3.10/site-packages/msal/token_cache.py", line 117, in add
return self.__add(event, now=now)
File "/opt/az/lib/python3.10/site-packages/msal/token_cache.py", line 158, in __add
decode_id_token(id_token, client_id=event["client_id"]) if id_token else {})
File "/opt/az/lib/python3.10/site-packages/msal/oauth2cli/oidc.py", line 77, in decode_id_token
raise RuntimeError("%s Current epoch = %s. The id_token was: %s" % (
RuntimeError: 0. The ID token is not yet valid. Make sure your computer's time and time zone are both correct. Current epoch = 1686070416. The id_token was: {
"aud": "04b07795-8ddb-461a-bbee-02f9e1bf7b46",
"iss": "https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/v2.0",
"iat": 1686073039,
"nbf": 1686073039,
"exp": 1686076939,
"aio": "AZQAa/8TAAAAVHL8pkqUvmpfgGLWyEj9YoMgm5KlqNnXUCHRrQqeR1PC5vcMfFKBvMbDowt1thQ7CeAiaaIu6lc30SqyMeW93e3YyA6An6jm7LupL2mArsLzm4yaNWRXHjyup8uUKCMNPmKLgO3EOP6ylQzfioa+ClUDKuli+uQ0+mbZaCpLx7DKJr3AwDUgu5GOITeDkw7s",
"name": "Ayesha Gagguturi",
"oid": "80b006e9-a0ee-409b-adac-c3b2a99074b7",
"preferred_username": "[email protected]",
"puid": "100320016BCF6D70",
"rh": "0.AQEAv4j5cvGGr0GRqy180BHbR5V3sATbjRpGu-4C-eG_e0YaAOE.",
"sub": "EHE3SQEM5VUH6-77QUed6qpwxwO6-PafHhop8oQIObs",
"tid": "72f988bf-86f1-41af-91ab-2d7cd011db47",
"uti": "1aTu_J41vUmCKBLNCi2nAA",
"ver": "2.0"
}
To check existing issues, please visit: https://github.com/Azure/azure-cli/issues
To open a new issue, please run az feedback

Related command

az login

Errors

root@DESKTOP-9HB1JIF:~/hanarp# az login --use-device-code
To sign in, use a web browser to open the page https://microsoft.com/devicelogin and enter the code FPYBAC8FU to authenticate.
The command failed with an unexpected error. Here is the traceback:
0. The ID token is not yet valid. Make sure your computer's time and time zone are both correct. Current epoch = 1686070416. The id_token was: {
"aud": "04b07795-8ddb-461a-bbee-02f9e1bf7b46",
"iss": "https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/v2.0",
"iat": 1686073039,
"nbf": 1686073039,
"exp": 1686076939,
"aio": "AZQAa/8TAAAAVHL8pkqUvmpfgGLWyEj9YoMgm5KlqNnXUCHRrQqeR1PC5vcMfFKBvMbDowt1thQ7CeAiaaIu6lc30SqyMeW93e3YyA6An6jm7LupL2mArsLzm4yaNWRXHjyup8uUKCMNPmKLgO3EOP6ylQzfioa+ClUDKuli+uQ0+mbZaCpLx7DKJr3AwDUgu5GOITeDkw7s",
"name": "Ayesha Gagguturi",
"oid": "80b006e9-a0ee-409b-adac-c3b2a99074b7",
"preferred_username": "[email protected]",
"puid": "100320016BCF6D70",
"rh": "0.AQEAv4j5cvGGr0GRqy180BHbR5V3sATbjRpGu-4C-eG_e0YaAOE.",
"sub": "EHE3SQEM5VUH6-77QUed6qpwxwO6-PafHhop8oQIObs",
"tid": "72f988bf-86f1-41af-91ab-2d7cd011db47",
"uti": "1aTu_J41vUmCKBLNCi2nAA",
"ver": "2.0"
}
Traceback (most recent call last):
File "/opt/az/lib/python3.10/site-packages/knack/cli.py", line 233, in invoke
cmd_result = self.invocation.execute(args)
File "/opt/az/lib/python3.10/site-packages/azure/cli/core/commands/init.py", line 663, in execute
raise ex
File "/opt/az/lib/python3.10/site-packages/azure/cli/core/commands/init.py", line 726, in _run_jobs_serially
results.append(self._run_job(expanded_arg, cmd_copy))
File "/opt/az/lib/python3.10/site-packages/azure/cli/core/commands/init.py", line 697, in _run_job
result = cmd_copy(params)
File "/opt/az/lib/python3.10/site-packages/azure/cli/core/commands/init.py", line 333, in call
return self.handler(*args, **kwargs)
File "/opt/az/lib/python3.10/site-packages/azure/cli/core/commands/command_operation.py", line 121, in handler
return op(**command_args)
File "/opt/az/lib/python3.10/site-packages/azure/cli/command_modules/profile/custom.py", line 139, in login
subscriptions = profile.login(
File "/opt/az/lib/python3.10/site-packages/azure/cli/core/_profile.py", line 152, in login
user_identity = identity.login_with_device_code(scopes=scopes, **kwargs)
File "/opt/az/lib/python3.10/site-packages/azure/cli/core/auth/identity.py", line 168, in login_with_device_code
result = self._msal_app.acquire_token_by_device_flow(flow, **kwargs) # By default it will block
File "/opt/az/lib/python3.10/site-packages/msal/application.py", line 1978, in acquire_token_by_device_flow
response = _clean_up(self.client.obtain_token_by_device_flow(
File "/opt/az/lib/python3.10/site-packages/msal/oauth2cli/oauth2.py", line 383, in obtain_token_by_device_flow
result = self._obtain_token_by_device_flow(flow, **kwargs)
File "/opt/az/lib/python3.10/site-packages/msal/oauth2cli/oauth2.py", line 345, in _obtain_token_by_device_flow
result = self._obtain_token(
File "/opt/az/lib/python3.10/site-packages/msal/oauth2cli/oidc.py", line 116, in _obtain_token
ret = super(Client, self)._obtain_token(grant_type, *args, **kwargs)
File "/opt/az/lib/python3.10/site-packages/msal/oauth2cli/oauth2.py", line 788, in _obtain_token
(on_obtaining_tokens or self.on_obtaining_tokens)({
File "/opt/az/lib/python3.10/site-packages/msal/application.py", line 700, in
on_obtaining_tokens=lambda event: self.token_cache.add(dict(
File "/opt/az/lib/python3.10/site-packages/msal/token_cache.py", line 314, in add
super(SerializableTokenCache, self).add(event, **kwargs)
File "/opt/az/lib/python3.10/site-packages/msal/token_cache.py", line 117, in add
return self.__add(event, now=now)
File "/opt/az/lib/python3.10/site-packages/msal/token_cache.py", line 158, in __add
decode_id_token(id_token, client_id=event["client_id"]) if id_token else {})
File "/opt/az/lib/python3.10/site-packages/msal/oauth2cli/oidc.py", line 77, in decode_id_token
raise RuntimeError("%s Current epoch = %s. The id_token was: %s" % (
RuntimeError: 0. The ID token is not yet valid. Make sure your computer's time and time zone are both correct. Current epoch = 1686070416. The id_token was: {
"aud": "04b07795-8ddb-461a-bbee-02f9e1bf7b46",
"iss": "https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/v2.0",
"iat": 1686073039,
"nbf": 1686073039,
"exp": 1686076939,
"aio": "AZQAa/8TAAAAVHL8pkqUvmpfgGLWyEj9YoMgm5KlqNnXUCHRrQqeR1PC5vcMfFKBvMbDowt1thQ7CeAiaaIu6lc30SqyMeW93e3YyA6An6jm7LupL2mArsLzm4yaNWRXHjyup8uUKCMNPmKLgO3EOP6ylQzfioa+ClUDKuli+uQ0+mbZaCpLx7DKJr3AwDUgu5GOITeDkw7s",
"name": "Ayesha Gagguturi",
"oid": "80b006e9-a0ee-409b-adac-c3b2a99074b7",
"preferred_username": "[email protected]",
"puid": "100320016BCF6D70",
"rh": "0.AQEAv4j5cvGGr0GRqy180BHbR5V3sATbjRpGu-4C-eG_e0YaAOE.",
"sub": "EHE3SQEM5VUH6-77QUed6qpwxwO6-PafHhop8oQIObs",
"tid": "72f988bf-86f1-41af-91ab-2d7cd011db47",
"uti": "1aTu_J41vUmCKBLNCi2nAA",
"ver": "2.0"
}
To check existing issues, please visit: https://github.com/Azure/azure-cli/issues
To open a new issue, please run az feedback

Issue script & Debug output

root@DESKTOP-9HB1JIF:/hanarp# az login --debug
cli.knack.cli: Command arguments: ['login', '--debug']
cli.knack.cli: init debug log:
Enable color in terminal.
cli.knack.cli: Event: Cli.PreExecute []
cli.knack.cli: Event: CommandParser.OnGlobalArgumentsCreate [<function CLILogging.on_global_arguments at 0x7f0fcf9652d0>, <function OutputProducer.on_global_arguments at 0x7f0fcf43feb0>, <function CLIQuery.on_global_arguments at 0x7f0fcf491120>]
cli.knack.cli: Event: CommandInvoker.OnPreCommandTableCreate []
cli.azure.cli.core: Modules found from index for 'login': ['azure.cli.command_modules.profile']
cli.azure.cli.core: Loading command modules:
cli.azure.cli.core: Name Load Time Groups Commands
cli.azure.cli.core: profile 0.022 2 9
cli.azure.cli.core: Total (1) 0.022 2 9
cli.azure.cli.core: Loaded 2 groups, 9 commands.
cli.azure.cli.core: Found a match in the command table.
cli.azure.cli.core: Raw command : login
cli.azure.cli.core: Command table: login
cli.knack.cli: Event: CommandInvoker.OnPreCommandTableTruncate [<function AzCliLogging.init_command_file_logging at 0x7f0fcb8729e0>]
cli.azure.cli.core.azlogging: metadata file logging enabled - writing logs to '/root/.azure/commands/2023-06-06.12-58-29.login.18843.log'.
az_command_data_logger: command args: login --debug
cli.knack.cli: Event: CommandInvoker.OnPreArgumentLoad [<function register_global_subscription_argument..add_subscription_parameter at 0x7f0fcb88b520>]
cli.knack.cli: Event: CommandInvoker.OnPostArgumentLoad []
cli.knack.cli: Event: CommandInvoker.OnPostCommandTableCreate [<function register_ids_argument..add_ids_arguments at 0x7f0fcb901480>, <function register_cache_arguments..add_cache_arguments at 0x7f0fcb9015a0>]
cli.knack.cli: Event: CommandInvoker.OnCommandTableLoaded []
cli.knack.cli: Event: CommandInvoker.OnPreParseArgs []
cli.knack.cli: Event: CommandInvoker.OnPostParseArgs [<function OutputProducer.handle_output_argument at 0x7f0fcf43ff40>, <function CLIQuery.handle_query_parameter at 0x7f0fcf4911b0>, <function register_ids_argument..parse_ids_arguments at 0x7f0fcb901510>]
cli.azure.cli.core.auth.persistence: build_persistence: location='/root/.azure/msal_token_cache.json', encrypt=False
cli.azure.cli.core.auth.binary_cache: load: /root/.azure/msal_http_cache.bin
urllib3.util.retry: Converted retries value: 1 -> Retry(total=1, connect=None, read=None, redirect=None, status=None)
msal.authority: openid_config = {'token_endpoint': 'https://login.microsoftonline.com/organizations/oauth2/v2.0/token', 'token_endpoint_auth_methods_supported': ['client_secret_post', 'private_key_jwt', 'client_secret_basic'], 'jwks_uri': 'https://login.microsoftonline.com/organizations/discovery/v2.0/keys', 'response_modes_supported': ['query', 'fragment', 'form_post'], 'subject_types_supported': ['pairwise'], 'id_token_signing_alg_values_supported': ['RS256'], 'response_types_supported': ['code', 'id_token', 'code id_token', 'id_token token'], 'scopes_supported': ['openid', 'profile', 'email', 'offline_access'], 'issuer': 'https://login.microsoftonline.com/{tenantid}/v2.0', 'request_uri_parameter_supported': False, 'userinfo_endpoint': 'https://graph.microsoft.com/oidc/userinfo', 'authorization_endpoint': 'https://login.microsoftonline.com/organizations/oauth2/v2.0/authorize', 'device_authorization_endpoint': 'https://login.microsoftonline.com/organizations/oauth2/v2.0/devicecode', 'http_logout_supported': True, 'frontchannel_logout_supported': True, 'end_session_endpoint': 'https://login.microsoftonline.com/organizations/oauth2/v2.0/logout', 'claims_supported': ['sub', 'iss', 'cloud_instance_name', 'cloud_instance_host_name', 'cloud_graph_host_name', 'msgraph_host', 'aud', 'exp', 'iat', 'auth_time', 'acr', 'nonce', 'preferred_username', 'name', 'tid', 'ver', 'at_hash', 'c_hash', 'email'], 'kerberos_endpoint': 'https://login.microsoftonline.com/organizations/kerberos', 'tenant_region_scope': None, 'cloud_instance_name': 'microsoftonline.com', 'cloud_graph_host_name': 'graph.windows.net', 'msgraph_host': 'graph.microsoft.com', 'rbac_url': 'https://pas.windows.net'}
msal.application: Broker enabled? False
cli.azure.cli.core.auth.identity: A web browser has been opened at https://login.microsoftonline.com/organizations/oauth2/v2.0/authorize. Please continue the login in the web browser. If no web browser is available or if the web browser fails to open, use device code flow with az login --use-device-code.
msal.telemetry: Generate or reuse correlation_id: 9680dcff-458c-4838-bf94-ce17f3b79039
msal.oauth2cli.oauth2: Using http://localhost:38227 as redirect_uri
msal.oauth2cli.authcode: Abort by visit http://localhost:38227?error=abort
msal.oauth2cli.authcode: Open a browser on this device to visit: https://login.microsoftonline.com/organizations/oauth2/v2.0/authorize?client_id=04b07795-8ddb-461a-bbee-02f9e1bf7b46&response_type=code&redirect_uri=http%3A%2F%2Flocalhost%3A38227&scope=https%3A%2F%2Fmanagement.core.windows.net%2F%2F.default+offline_access+openid+profile&state=drPIgBLnqKefVZoM&code_challenge=Nk5OGBkk4I5AsVbo1_vssiMHorJ2cYMC5LmGqHn3h-I&code_challenge_method=S256&nonce=6a91162c0a9ce681fba1031003d3cec259dd11ea69ca8c128744fa290ed1c595&client_info=1&claims=%7B%22access_token%22%3A+%7B%22xms_cc%22%3A+%7B%22values%22%3A+%5B%22CP1%22%5D%7D%7D%7D&prompt=select_account
tcgetpgrp failed: Not a tty
msal.oauth2cli.authcode: Got auth response: {'code': '0.ARoAv4j5cvGGr0GRqy180BHbR5V3sATbjRpGu-4C-eG_e0YaAOE.AgABAAIAAAD--DLA3VO7QrddgJg7WevrAgDs_wUA9P-r00roic6GPxEoOWMT83DcGL9WLvuEUiTOm9N4V7IGFIfgH8eQLcs53LghSEwzhX_eWu9ZqRPGHRMt1CSscS8XAh8rUv0efqHJK6Zw23JxlfoZhDlJjvUzaIU1LsNeQfxtJqRKDrGGnJm_W9BKZ1ckY-mO2TpBiYEKhDqX5HQi3muNrmTEdpjiU2Vqc269NBMhmp5oRboxt6nFwi03pa-tEGk6aky2nI-8klSow_W3LkW91RHh2Uv0PCq0byG9r_FUi5t65lTBjgVQBXosio3DX-K7z-mNAe8k2PU3A5P7fEN2RnMAfx26aOTBnb9b8mLwV5tDkT71hg4njBHV_lNuNgQ6ofEyXU_0O1g0zChCc-Pj1VbJdV-te0zK1bzF6vy0KAGoA3rODKkTbaUqscv0NoF6udkkJnDOc0IFJlPx_qypl6NBOvkvIGdK_c4kEfGYYO7d_cf40K0iLDMzeK3-Hivf6k4I7CPnMPCFmf5tgdhaoWygVHb0FDzsGtoCHqmtMwqNtSGF1X5705T6ZNHJ2-e4nOEZv7Td1jkDfIQG3R13KkpCSvcPTVmpH4nwa-s-wUPCzhAh9Lz263JhnGMca2HhbkLm972Tftm4_MaWTy6strXhaxFaixv5NLJCezJhm0P__rVHAnnnZaLP62nHE8GQcTVr0UopO9G6bZrSmYagfoNsKvLrvoNcGaIxNshJ2XClVwIE4UUrHY8iQY_YEY_DIbSdidq02G6tLiRb_y2sjlhH3xouOya-Sd0ClrnYaO9U-DlSVF5-GEjHgyH2O2SP98GDNY0alij2c9hF6zBQp31ikQ5AMho0IInXqojiiS3tZm9VK-Sh5oinSLUkAJgLFK9Jx0CzVz8aNYKWXjUWyF_pvd0Trs021hTe5BsH-6KFdA4uFFlHjhK7gJ4op7O-H5zsWtFio3kjtqpeg5u4ss_XM5KRwd69635V4knW-dZ1YyofNOvl_2VyaDuVDQ2lMHUouNdxFr3hJz2RDpfR3DvcRqMmHAAFtkzCz7byxiz78pUo8Frbjvn7KQeNqfS9DgkgBHMN4wFn2a9yReKvsjEBlSmBeWNMaGuAczatDw-JNibIK-rOUljxFLKJaWaPrnnePOniN817juUjgZeUYefBPrx1WvebO2I811vCm2W8rDF7mpjcTqpm0qs', 'client_info': 'eyJ1aWQiOiI4MGIwMDZlOS1hMGVlLTQwOWItYWRhYy1jM2IyYTk5MDc0YjciLCJ1dGlkIjoiNzJmOTg4YmYtODZmMS00MWFmLTkxYWItMmQ3Y2QwMTFkYjQ3In0', 'state': 'drPIgBLnqKefVZoM', 'session_state': 'e5555f28-e166-45bf-a79a-86fd04cfee6f'}
msal.oauth2cli.authcode: "GET /?code=0.ARoAv4j5cvGGr0GRqy180BHbR5V3sATbjRpGu-4C-eG_e0YaAOE.AgABAAIAAAD--DLA3VO7QrddgJg7WevrAgDs_wUA9P-r00roic6GPxEoOWMT83DcGL9WLvuEUiTOm9N4V7IGFIfgH8eQLcs53LghSEwzhX_eWu9ZqRPGHRMt1CSscS8XAh8rUv0efqHJK6Zw23JxlfoZhDlJjvUzaIU1LsNeQfxtJqRKDrGGnJm_W9BKZ1ckY-mO2TpBiYEKhDqX5HQi3muNrmTEdpjiU2Vqc269NBMhmp5oRboxt6nFwi03pa-tEGk6aky2nI-8klSow_W3LkW91RHh2Uv0PCq0byG9r_FUi5t65lTBjgVQBXosio3DX-K7z-mNAe8k2PU3A5P7fEN2RnMAfx26aOTBnb9b8mLwV5tDkT71hg4njBHV_lNuNgQ6ofEyXU_0O1g0zChCc-Pj1VbJdV-te0zK1bzF6vy0KAGoA3rODKkTbaUqscv0NoF6udkkJnDOc0IFJlPx_qypl6NBOvkvIGdK_c4kEfGYYO7d_cf40K0iLDMzeK3-Hivf6k4I7CPnMPCFmf5tgdhaoWygVHb0FDzsGtoCHqmtMwqNtSGF1X5705T6ZNHJ2-e4nOEZv7Td1jkDfIQG3R13KkpCSvcPTVmpH4nwa-s-wUPCzhAh9Lz263JhnGMca2HhbkLm972Tftm4_MaWTy6strXhaxFaixv5NLJCezJhm0P__rVHAnnnZaLP62nHE8GQcTVr0UopO9G6bZrSmYagfoNsKvLrvoNcGaIxNshJ2XClVwIE4UUrHY8iQY_YEY_DIbSdidq02G6tLiRb_y2sjlhH3xouOya-Sd0ClrnYaO9U-DlSVF5-GEjHgyH2O2SP98GDNY0alij2c9hF6zBQp31ikQ5AMho0IInXqojiiS3tZm9VK-Sh5oinSLUkAJgLFK9Jx0CzVz8aNYKWXjUWyF_pvd0Trs021hTe5BsH-6KFdA4uFFlHjhK7gJ4op7O-H5zsWtFio3kjtqpeg5u4ss_XM5KRwd69635V4knW-dZ1YyofNOvl_2VyaDuVDQ2lMHUouNdxFr3hJz2RDpfR3DvcRqMmHAAFtkzCz7byxiz78pUo8Frbjvn7KQeNqfS9DgkgBHMN4wFn2a9yReKvsjEBlSmBeWNMaGuAczatDw-JNibIK-rOUljxFLKJaWaPrnnePOniN817juUjgZeUYefBPrx1WvebO2I811vCm2W8rDF7mpjcTqpm0qs&client_info=eyJ1aWQiOiI4MGIwMDZlOS1hMGVlLTQwOWItYWRhYy1jM2IyYTk5MDc0YjciLCJ1dGlkIjoiNzJmOTg4YmYtODZmMS00MWFmLTkxYWItMmQ3Y2QwMTFkYjQ3In0&state=drPIgBLnqKefVZoM&session_state=e5555f28-e166-45bf-a79a-86fd04cfee6f HTTP/1.1" 200 -
urllib3.connectionpool: Starting new HTTPS connection (1): login.microsoftonline.com:443
urllib3.connectionpool: https://login.microsoftonline.com:443 "POST /organizations/oauth2/v2.0/token HTTP/1.1" 200 5459
msal.token_cache: event={
"client_id": "04b07795-8ddb-461a-bbee-02f9e1bf7b46",
"data": {
"claims": "{"access_token": {"xms_cc": {"values": ["CP1"]}}}",
"client_id": "04b07795-8ddb-461a-bbee-02f9e1bf7b46",
"code": "0.ARoAv4j5cvGGr0GRqy180BHbR5V3sATbjRpGu-4C-eG_e0YaAOE.AgABAAIAAAD--DLA3VO7QrddgJg7WevrAgDs_wUA9P-r00roic6GPxEoOWMT83DcGL9WLvuEUiTOm9N4V7IGFIfgH8eQLcs53LghSEwzhX_eWu9ZqRPGHRMt1CSscS8XAh8rUv0efqHJK6Zw23JxlfoZhDlJjvUzaIU1LsNeQfxtJqRKDrGGnJm_W9BKZ1ckY-mO2TpBiYEKhDqX5HQi3muNrmTEdpjiU2Vqc269NBMhmp5oRboxt6nFwi03pa-tEGk6aky2nI-8klSow_W3LkW91RHh2Uv0PCq0byG9r_FUi5t65lTBjgVQBXosio3DX-K7z-mNAe8k2PU3A5P7fEN2RnMAfx26aOTBnb9b8mLwV5tDkT71hg4njBHV_lNuNgQ6ofEyXU_0O1g0zChCc-Pj1VbJdV-te0zK1bzF6vy0KAGoA3rODKkTbaUqscv0NoF6udkkJnDOc0IFJlPx_qypl6NBOvkvIGdK_c4kEfGYYO7d_cf40K0iLDMzeK3-Hivf6k4I7CPnMPCFmf5tgdhaoWygVHb0FDzsGtoCHqmtMwqNtSGF1X5705T6ZNHJ2-e4nOEZv7Td1jkDfIQG3R13KkpCSvcPTVmpH4nwa-s-wUPCzhAh9Lz263JhnGMca2HhbkLm972Tftm4_MaWTy6strXhaxFaixv5NLJCezJhm0P__rVHAnnnZaLP62nHE8GQcTVr0UopO9G6bZrSmYagfoNsKvLrvoNcGaIxNshJ2XClVwIE4UUrHY8iQY_YEY_DIbSdidq02G6tLiRb_y2sjlhH3xouOya-Sd0ClrnYaO9U-DlSVF5-GEjHgyH2O2SP98GDNY0alij2c9hF6zBQp31ikQ5AMho0IInXqojiiS3tZm9VK-Sh5oinSLUkAJgLFK9Jx0CzVz8aNYKWXjUWyF_pvd0Trs021hTe5BsH-6KFdA4uFFlHjhK7gJ4op7O-H5zsWtFio3kjtqpeg5u4ss_XM5KRwd69635V4knW-dZ1YyofNOvl_2VyaDuVDQ2lMHUouNdxFr3hJz2RDpfR3DvcRqMmHAAFtkzCz7byxiz78pUo8Frbjvn7KQeNqfS9DgkgBHMN4wFn2a9yReKvsjEBlSmBeWNMaGuAczatDw-JNibIK-rOUljxFLKJaWaPrnnePOniN817juUjgZeUYefBPrx1WvebO2I811vCm2W8rDF7mpjcTqpm0qs",
"code_verifier": "PVJB1ouW.8SO
M-D5FbYsEe7c_xkR6Xlp4UI0zZjvtC",
"redirect_uri": "http://localhost:38227",
"scope": [
"openid",
"https://management.core.windows.net//.default",
"offline_access",
"profile"
]
},
"environment": "login.microsoftonline.com",
"grant_type": "authorization_code",
"params": null,
"response": {
"access_token": "",
"client_info": "eyJ1aWQiOiI4MGIwMDZlOS1hMGVlLTQwOWItYWRhYy1jM2IyYTk5MDc0YjciLCJ1dGlkIjoiNzJmOTg4YmYtODZmMS00MWFmLTkxYWItMmQ3Y2QwMTFkYjQ3In0",
"expires_in": 4021,
"ext_expires_in": 4021,
"foci": "1",
"id_token": "
",
"refresh_token": "********",
"scope": "https://management.core.windows.net//user_impersonation https://management.core.windows.net//.default",
"token_type": "Bearer"
},
"scope": [
"https://management.core.windows.net//user_impersonation",
"https://management.core.windows.net//.default"
],
"token_endpoint": "https://login.microsoftonline.com/organizations/oauth2/v2.0/token"
}
cli.azure.cli.core.azclierror: Traceback (most recent call last):
File "/opt/az/lib/python3.10/site-packages/knack/cli.py", line 233, in invoke
cmd_result = self.invocation.execute(args)
File "/opt/az/lib/python3.10/site-packages/azure/cli/core/commands/init.py", line 663, in execute
raise ex
File "/opt/az/lib/python3.10/site-packages/azure/cli/core/commands/init.py", line 726, in _run_jobs_serially
results.append(self._run_job(expanded_arg, cmd_copy))
File "/opt/az/lib/python3.10/site-packages/azure/cli/core/commands/init.py", line 697, in _run_job
result = cmd_copy(params)
File "/opt/az/lib/python3.10/site-packages/azure/cli/core/commands/init.py", line 333, in call
return self.handler(*args, **kwargs)
File "/opt/az/lib/python3.10/site-packages/azure/cli/core/commands/command_operation.py", line 121, in handler
return op(**command_args)
File "/opt/az/lib/python3.10/site-packages/azure/cli/command_modules/profile/custom.py", line 139, in login
subscriptions = profile.login(
File "/opt/az/lib/python3.10/site-packages/azure/cli/core/_profile.py", line 154, in login
user_identity = identity.login_with_auth_code(scopes=scopes, **kwargs)
File "/opt/az/lib/python3.10/site-packages/azure/cli/core/auth/identity.py", line 153, in login_with_auth_code
result = self._msal_app.acquire_token_interactive(
File "/opt/az/lib/python3.10/site-packages/msal/application.py", line 1828, in acquire_token_interactive
response = _clean_up(self.client.obtain_token_by_browser(
File "/opt/az/lib/python3.10/site-packages/msal/oauth2cli/oidc.py", line 281, in obtain_token_by_browser
return super(Client, self).obtain_token_by_browser(
File "/opt/az/lib/python3.10/site-packages/msal/oauth2cli/oauth2.py", line 639, in obtain_token_by_browser
return self._obtain_token_by_browser(
File "/opt/az/lib/python3.10/site-packages/msal/oauth2cli/oauth2.py", line 677, in _obtain_token_by_browser
return self.obtain_token_by_auth_code_flow(
File "/opt/az/lib/python3.10/site-packages/msal/application.py", line 142, in obtain_token_by_auth_code_flow
return super(_ClientWithCcsRoutingInfo, self).obtain_token_by_auth_code_flow(
File "/opt/az/lib/python3.10/site-packages/msal/oauth2cli/oidc.py", line 205, in obtain_token_by_auth_code_flow
result = super(Client, self).obtain_token_by_auth_code_flow(
File "/opt/az/lib/python3.10/site-packages/msal/oauth2cli/oauth2.py", line 547, in obtain_token_by_auth_code_flow
return self._obtain_token_by_authorization_code(
File "/opt/az/lib/python3.10/site-packages/msal/oauth2cli/oauth2.py", line 731, in _obtain_token_by_authorization_code
return self._obtain_token("authorization_code", data=data, **kwargs)
File "/opt/az/lib/python3.10/site-packages/msal/oauth2cli/oidc.py", line 116, in _obtain_token
ret = super(Client, self)._obtain_token(grant_type, *args, **kwargs)
File "/opt/az/lib/python3.10/site-packages/msal/oauth2cli/oauth2.py", line 788, in _obtain_token
(on_obtaining_tokens or self.on_obtaining_tokens)({
File "/opt/az/lib/python3.10/site-packages/msal/application.py", line 700, in
on_obtaining_tokens=lambda event: self.token_cache.add(dict(
File "/opt/az/lib/python3.10/site-packages/msal/token_cache.py", line 314, in add
super(SerializableTokenCache, self).add(event, **kwargs)
File "/opt/az/lib/python3.10/site-packages/msal/token_cache.py", line 117, in add
return self.__add(event, now=now)
File "/opt/az/lib/python3.10/site-packages/msal/token_cache.py", line 158, in __add
decode_id_token(id_token, client_id=event["client_id"]) if id_token else {})
File "/opt/az/lib/python3.10/site-packages/msal/oauth2cli/oidc.py", line 77, in decode_id_token
raise RuntimeError("%s Current epoch = %s. The id_token was: %s" % (
RuntimeError: 0. The ID token is not yet valid. Make sure your computer's time and time zone are both correct. Current epoch = 1686070719. The id_token was: {
"aud": "04b07795-8ddb-461a-bbee-02f9e1bf7b46",
"iss": "https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/v2.0",
"iat": 1686073342,
"nbf": 1686073342,
"exp": 1686077242,
"aio": "AaQAW/8TAAAA+RW94k5SKAF78njeg+kzuRXk6Hq2iPy2yuecFW3ZxvRaDBNBJLs65qzB2UOnOXXPQaDSki/bHolO5yNTQ8suhAQJZJunEN16C2PL++f4s76T/W2WFoIoUKGcp9y+OrSQu/93djLnaPvHKjpu2LT91pVoCwNrTmyg4d20VajnwONvbAU/Y3Z9mrUZUHp4EQa41Qkr/Y1J9zzaRN7GXUmGsg==",
"name": "Ayesha Gagguturi",
"nonce": "6a91162c0a9ce681fba1031003d3cec259dd11ea69ca8c128744fa290ed1c595",
"oid": "80b006e9-a0ee-409b-adac-c3b2a99074b7",
"preferred_username": "[email protected]",
"puid": "100320016BCF6D70",
"rh": "0.AQEAv4j5cvGGr0GRqy180BHbR5V3sATbjRpGu-4C-eG_e0YaAOE.",
"sub": "EHE3SQEM5VUH6-77QUed6qpwxwO6-PafHhop8oQIObs",
"tid": "72f988bf-86f1-41af-91ab-2d7cd011db47",
"uti": "WovkXX7BpkOgyKy104nRAA",
"ver": "2.0"
}

cli.azure.cli.core.azclierror: The command failed with an unexpected error. Here is the traceback:
az_command_data_logger: The command failed with an unexpected error. Here is the traceback:
cli.azure.cli.core.azclierror: 0. The ID token is not yet valid. Make sure your computer's time and time zone are both correct. Current epoch = 1686070719. The id_token was: {
"aud": "04b07795-8ddb-461a-bbee-02f9e1bf7b46",
"iss": "https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/v2.0",
"iat": 1686073342,
"nbf": 1686073342,
"exp": 1686077242,
"aio": "AaQAW/8TAAAA+RW94k5SKAF78njeg+kzuRXk6Hq2iPy2yuecFW3ZxvRaDBNBJLs65qzB2UOnOXXPQaDSki/bHolO5yNTQ8suhAQJZJunEN16C2PL++f4s76T/W2WFoIoUKGcp9y+OrSQu/93djLnaPvHKjpu2LT91pVoCwNrTmyg4d20VajnwONvbAU/Y3Z9mrUZUHp4EQa41Qkr/Y1J9zzaRN7GXUmGsg==",
"name": "Ayesha Gagguturi",
"nonce": "6a91162c0a9ce681fba1031003d3cec259dd11ea69ca8c128744fa290ed1c595",
"oid": "80b006e9-a0ee-409b-adac-c3b2a99074b7",
"preferred_username": "[email protected]",
"puid": "100320016BCF6D70",
"rh": "0.AQEAv4j5cvGGr0GRqy180BHbR5V3sATbjRpGu-4C-eG_e0YaAOE.",
"sub": "EHE3SQEM5VUH6-77QUed6qpwxwO6-PafHhop8oQIObs",
"tid": "72f988bf-86f1-41af-91ab-2d7cd011db47",
"uti": "WovkXX7BpkOgyKy104nRAA",
"ver": "2.0"
}
Traceback (most recent call last):
File "/opt/az/lib/python3.10/site-packages/knack/cli.py", line 233, in invoke
cmd_result = self.invocation.execute(args)
File "/opt/az/lib/python3.10/site-packages/azure/cli/core/commands/init.py", line 663, in execute
raise ex
File "/opt/az/lib/python3.10/site-packages/azure/cli/core/commands/init.py", line 726, in _run_jobs_serially
results.append(self._run_job(expanded_arg, cmd_copy))
File "/opt/az/lib/python3.10/site-packages/azure/cli/core/commands/init.py", line 697, in _run_job
result = cmd_copy(params)
File "/opt/az/lib/python3.10/site-packages/azure/cli/core/commands/init.py", line 333, in call
return self.handler(*args, **kwargs)
File "/opt/az/lib/python3.10/site-packages/azure/cli/core/commands/command_operation.py", line 121, in handler
return op(**command_args)
File "/opt/az/lib/python3.10/site-packages/azure/cli/command_modules/profile/custom.py", line 139, in login
subscriptions = profile.login(
File "/opt/az/lib/python3.10/site-packages/azure/cli/core/_profile.py", line 154, in login
user_identity = identity.login_with_auth_code(scopes=scopes, **kwargs)
File "/opt/az/lib/python3.10/site-packages/azure/cli/core/auth/identity.py", line 153, in login_with_auth_code
result = self._msal_app.acquire_token_interactive(
File "/opt/az/lib/python3.10/site-packages/msal/application.py", line 1828, in acquire_token_interactive
response = _clean_up(self.client.obtain_token_by_browser(
File "/opt/az/lib/python3.10/site-packages/msal/oauth2cli/oidc.py", line 281, in obtain_token_by_browser
return super(Client, self).obtain_token_by_browser(
File "/opt/az/lib/python3.10/site-packages/msal/oauth2cli/oauth2.py", line 639, in obtain_token_by_browser
return self._obtain_token_by_browser(
File "/opt/az/lib/python3.10/site-packages/msal/oauth2cli/oauth2.py", line 677, in _obtain_token_by_browser
return self.obtain_token_by_auth_code_flow(
File "/opt/az/lib/python3.10/site-packages/msal/application.py", line 142, in obtain_token_by_auth_code_flow
return super(_ClientWithCcsRoutingInfo, self).obtain_token_by_auth_code_flow(
File "/opt/az/lib/python3.10/site-packages/msal/oauth2cli/oidc.py", line 205, in obtain_token_by_auth_code_flow
result = super(Client, self).obtain_token_by_auth_code_flow(
File "/opt/az/lib/python3.10/site-packages/msal/oauth2cli/oauth2.py", line 547, in obtain_token_by_auth_code_flow
return self._obtain_token_by_authorization_code(
File "/opt/az/lib/python3.10/site-packages/msal/oauth2cli/oauth2.py", line 731, in _obtain_token_by_authorization_code
return self._obtain_token("authorization_code", data=data, **kwargs)
File "/opt/az/lib/python3.10/site-packages/msal/oauth2cli/oidc.py", line 116, in _obtain_token
ret = super(Client, self)._obtain_token(grant_type, *args, **kwargs)
File "/opt/az/lib/python3.10/site-packages/msal/oauth2cli/oauth2.py", line 788, in _obtain_token
(on_obtaining_tokens or self.on_obtaining_tokens)({
File "/opt/az/lib/python3.10/site-packages/msal/application.py", line 700, in
on_obtaining_tokens=lambda event: self.token_cache.add(dict(
File "/opt/az/lib/python3.10/site-packages/msal/token_cache.py", line 314, in add
super(SerializableTokenCache, self).add(event, **kwargs)
File "/opt/az/lib/python3.10/site-packages/msal/token_cache.py", line 117, in add
return self.__add(event, now=now)
File "/opt/az/lib/python3.10/site-packages/msal/token_cache.py", line 158, in __add
decode_id_token(id_token, client_id=event["client_id"]) if id_token else {})
File "/opt/az/lib/python3.10/site-packages/msal/oauth2cli/oidc.py", line 77, in decode_id_token
raise RuntimeError("%s Current epoch = %s. The id_token was: %s" % (
RuntimeError: 0. The ID token is not yet valid. Make sure your computer's time and time zone are both correct. Current epoch = 1686070719. The id_token was: {
"aud": "04b07795-8ddb-461a-bbee-02f9e1bf7b46",
"iss": "https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/v2.0",
"iat": 1686073342,
"nbf": 1686073342,
"exp": 1686077242,
"aio": "AaQAW/8TAAAA+RW94k5SKAF78njeg+kzuRXk6Hq2iPy2yuecFW3ZxvRaDBNBJLs65qzB2UOnOXXPQaDSki/bHolO5yNTQ8suhAQJZJunEN16C2PL++f4s76T/W2WFoIoUKGcp9y+OrSQu/93djLnaPvHKjpu2LT91pVoCwNrTmyg4d20VajnwONvbAU/Y3Z9mrUZUHp4EQa41Qkr/Y1J9zzaRN7GXUmGsg==",
"name": "Ayesha Gagguturi",
"nonce": "6a91162c0a9ce681fba1031003d3cec259dd11ea69ca8c128744fa290ed1c595",
"oid": "80b006e9-a0ee-409b-adac-c3b2a99074b7",
"preferred_username": "[email protected]",
"puid": "100320016BCF6D70",
"rh": "0.AQEAv4j5cvGGr0GRqy180BHbR5V3sATbjRpGu-4C-eG_e0YaAOE.",
"sub": "EHE3SQEM5VUH6-77QUed6qpwxwO6-PafHhop8oQIObs",
"tid": "72f988bf-86f1-41af-91ab-2d7cd011db47",
"uti": "WovkXX7BpkOgyKy104nRAA",
"ver": "2.0"
}
az_command_data_logger: 0. The ID token is not yet valid. Make sure your computer's time and time zone are both correct. Current epoch = 1686070719. The id_token was: {
"aud": "04b07795-8ddb-461a-bbee-02f9e1bf7b46",
"iss": "https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/v2.0",
"iat": 1686073342,
"nbf": 1686073342,
"exp": 1686077242,
"aio": "AaQAW/8TAAAA+RW94k5SKAF78njeg+kzuRXk6Hq2iPy2yuecFW3ZxvRaDBNBJLs65qzB2UOnOXXPQaDSki/bHolO5yNTQ8suhAQJZJunEN16C2PL++f4s76T/W2WFoIoUKGcp9y+OrSQu/93djLnaPvHKjpu2LT91pVoCwNrTmyg4d20VajnwONvbAU/Y3Z9mrUZUHp4EQa41Qkr/Y1J9zzaRN7GXUmGsg==",
"name": "Ayesha Gagguturi",
"nonce": "6a91162c0a9ce681fba1031003d3cec259dd11ea69ca8c128744fa290ed1c595",
"oid": "80b006e9-a0ee-409b-adac-c3b2a99074b7",
"preferred_username": "[email protected]",
"puid": "100320016BCF6D70",
"rh": "0.AQEAv4j5cvGGr0GRqy180BHbR5V3sATbjRpGu-4C-eG_e0YaAOE.",
"sub": "EHE3SQEM5VUH6-77QUed6qpwxwO6-PafHhop8oQIObs",
"tid": "72f988bf-86f1-41af-91ab-2d7cd011db47",
"uti": "WovkXX7BpkOgyKy104nRAA",
"ver": "2.0"
}
Traceback (most recent call last):
File "/opt/az/lib/python3.10/site-packages/knack/cli.py", line 233, in invoke
cmd_result = self.invocation.execute(args)
File "/opt/az/lib/python3.10/site-packages/azure/cli/core/commands/init.py", line 663, in execute
raise ex
File "/opt/az/lib/python3.10/site-packages/azure/cli/core/commands/init.py", line 726, in _run_jobs_serially
results.append(self._run_job(expanded_arg, cmd_copy))
File "/opt/az/lib/python3.10/site-packages/azure/cli/core/commands/init.py", line 697, in _run_job
result = cmd_copy(params)
File "/opt/az/lib/python3.10/site-packages/azure/cli/core/commands/init.py", line 333, in call
return self.handler(*args, **kwargs)
File "/opt/az/lib/python3.10/site-packages/azure/cli/core/commands/command_operation.py", line 121, in handler
return op(**command_args)
File "/opt/az/lib/python3.10/site-packages/azure/cli/command_modules/profile/custom.py", line 139, in login
subscriptions = profile.login(
File "/opt/az/lib/python3.10/site-packages/azure/cli/core/_profile.py", line 154, in login
user_identity = identity.login_with_auth_code(scopes=scopes, **kwargs)
File "/opt/az/lib/python3.10/site-packages/azure/cli/core/auth/identity.py", line 153, in login_with_auth_code
result = self._msal_app.acquire_token_interactive(
File "/opt/az/lib/python3.10/site-packages/msal/application.py", line 1828, in acquire_token_interactive
response = _clean_up(self.client.obtain_token_by_browser(
File "/opt/az/lib/python3.10/site-packages/msal/oauth2cli/oidc.py", line 281, in obtain_token_by_browser
return super(Client, self).obtain_token_by_browser(
File "/opt/az/lib/python3.10/site-packages/msal/oauth2cli/oauth2.py", line 639, in obtain_token_by_browser
return self._obtain_token_by_browser(
File "/opt/az/lib/python3.10/site-packages/msal/oauth2cli/oauth2.py", line 677, in _obtain_token_by_browser
return self.obtain_token_by_auth_code_flow(
File "/opt/az/lib/python3.10/site-packages/msal/application.py", line 142, in obtain_token_by_auth_code_flow
return super(_ClientWithCcsRoutingInfo, self).obtain_token_by_auth_code_flow(
File "/opt/az/lib/python3.10/site-packages/msal/oauth2cli/oidc.py", line 205, in obtain_token_by_auth_code_flow
result = super(Client, self).obtain_token_by_auth_code_flow(
File "/opt/az/lib/python3.10/site-packages/msal/oauth2cli/oauth2.py", line 547, in obtain_token_by_auth_code_flow
return self._obtain_token_by_authorization_code(
File "/opt/az/lib/python3.10/site-packages/msal/oauth2cli/oauth2.py", line 731, in _obtain_token_by_authorization_code
return self._obtain_token("authorization_code", data=data, **kwargs)
File "/opt/az/lib/python3.10/site-packages/msal/oauth2cli/oidc.py", line 116, in _obtain_token
ret = super(Client, self)._obtain_token(grant_type, *args, **kwargs)
File "/opt/az/lib/python3.10/site-packages/msal/oauth2cli/oauth2.py", line 788, in _obtain_token
(on_obtaining_tokens or self.on_obtaining_tokens)({
File "/opt/az/lib/python3.10/site-packages/msal/application.py", line 700, in
on_obtaining_tokens=lambda event: self.token_cache.add(dict(
File "/opt/az/lib/python3.10/site-packages/msal/token_cache.py", line 314, in add
super(SerializableTokenCache, self).add(event, **kwargs)
File "/opt/az/lib/python3.10/site-packages/msal/token_cache.py", line 117, in add
return self.__add(event, now=now)
File "/opt/az/lib/python3.10/site-packages/msal/token_cache.py", line 158, in __add
decode_id_token(id_token, client_id=event["client_id"]) if id_token else {})
File "/opt/az/lib/python3.10/site-packages/msal/oauth2cli/oidc.py", line 77, in decode_id_token
raise RuntimeError("%s Current epoch = %s. The id_token was: %s" % (
RuntimeError: 0. The ID token is not yet valid. Make sure your computer's time and time zone are both correct. Current epoch = 1686070719. The id_token was: {
"aud": "04b07795-8ddb-461a-bbee-02f9e1bf7b46",
"iss": "https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/v2.0",
"iat": 1686073342,
"nbf": 1686073342,
"exp": 1686077242,
"aio": "AaQAW/8TAAAA+RW94k5SKAF78njeg+kzuRXk6Hq2iPy2yuecFW3ZxvRaDBNBJLs65qzB2UOnOXXPQaDSki/bHolO5yNTQ8suhAQJZJunEN16C2PL++f4s76T/W2WFoIoUKGcp9y+OrSQu/93djLnaPvHKjpu2LT91pVoCwNrTmyg4d20VajnwONvbAU/Y3Z9mrUZUHp4EQa41Qkr/Y1J9zzaRN7GXUmGsg==",
"name": "Ayesha Gagguturi",
"nonce": "6a91162c0a9ce681fba1031003d3cec259dd11ea69ca8c128744fa290ed1c595",
"oid": "80b006e9-a0ee-409b-adac-c3b2a99074b7",
"preferred_username": "[email protected]",
"puid": "100320016BCF6D70",
"rh": "0.AQEAv4j5cvGGr0GRqy180BHbR5V3sATbjRpGu-4C-eG_e0YaAOE.",
"sub": "EHE3SQEM5VUH6-77QUed6qpwxwO6-PafHhop8oQIObs",
"tid": "72f988bf-86f1-41af-91ab-2d7cd011db47",
"uti": "WovkXX7BpkOgyKy104nRAA",
"ver": "2.0"
}
To check existing issues, please visit: https://github.com/Azure/azure-cli/issues
To open a new issue, please run az feedback
cli.knack.cli: Event: Cli.PostExecute [<function AzCliLogging.deinit_cmd_metadata_logging at 0x7f0fcb872c20>]
az_command_data_logger: exit code: 1
cli.main: Command ran in 11.067 seconds (init: 0.850, invoke: 10.217)
telemetry.main: Begin splitting cli events and extra events, total events: 1
telemetry.client: Accumulated 0 events. Flush the clients.
telemetry.main: Finish splitting cli events and extra events, cli events: 1
telemetry.save: Save telemetry record of length 7802 in cache
telemetry.check: Returns Positive.
telemetry.main: Begin creating telemetry upload process.
telemetry.process: Creating upload process: "/usr/bin/../../opt/az/bin/python3 /opt/az/lib/python3.10/site-packages/azure/cli/telemetry/init.py /root/.azure"
telemetry.process: Return from creating process
telemetry.main: Finish creating telemetry upload proces

Expected behavior

a successful login

Environment Summary

root@DESKTOP-9HB1JIF:~/hanarp# az --version
azure-cli 2.47.0 *

core 2.47.0 *
telemetry 1.0.8

Dependencies:
msal 1.20.0
azure-mgmt-resource 22.0.0

Python location '/opt/az/bin/python3'
Extensions directory '/root/.azure/cliextensions'

Python (Linux) 3.10.10 (main, Mar 31 2023, 09:27:10) [GCC 7.5.0]

Legal docs and information: aka.ms/AzureCliLegal

You have 2 update(s) available. Consider updating your CLI installation with 'az upgrade'
root@DESKTOP-9HB1JIF:~/hanarp#

Windows - running wsl with ubunutu 18.04

Additional context

No response

@AyeshaGagguturi AyeshaGagguturi added the bug This issue requires a change to an existing behavior in the product in order to be resolved. label Jun 6, 2023
@azure-client-tools-bot-prd
Copy link

Hi @AyeshaGagguturi,

2.47.0 is not the latest Azure CLI(2.49.0).

Please upgrade to the latest Azure CLI version by following https://learn.microsoft.com/en-us/cli/azure/update-azure-cli.

@azure-client-tools-bot-prd azure-client-tools-bot-prd bot added the Auto-Resolve Auto resolve by bot label Jun 6, 2023
@ghost ghost added Auto-Assign Auto assign by bot Account az login/account labels Jun 6, 2023
@azure-client-tools-bot-prd
Copy link

Hi @AyeshaGagguturi
Find similar issue #20388.

Issue title Can't do az login: RuntimeError: 0. The ID token is not yet valid.
Create time 2021-11-17
Comment number 9

Please confirm if this resolves your issue.
Kindly react a 👍 or 👎 to this comment so that we can improve this robot.

@ghost ghost assigned jiasli Jun 6, 2023
@ghost ghost added this to the Backlog milestone Jun 6, 2023
@ghost ghost added the Azure CLI Team The command of the issue is owned by Azure CLI team label Jun 6, 2023
@yonzhan
Copy link
Collaborator

yonzhan commented Jun 6, 2023

Thank you for opening this issue, we will look into it.

@ghost ghost added question The issue doesn't require a change to the product in order to be resolved. Most issues start as that Upgrade az upgrade labels Jun 6, 2023
@jiasli
Copy link
Member

jiasli commented Jun 7, 2023

Duplicate of #20388

The error message is pretty clear: The ID token is not yet valid. Make sure your computer's time and time zone are both correct.

@jiasli jiasli marked this as a duplicate of #20388 Jun 7, 2023
@jiasli jiasli closed this as completed Jun 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Account az login/account Auto-Assign Auto assign by bot Auto-Resolve Auto resolve by bot Azure CLI Team The command of the issue is owned by Azure CLI team bug This issue requires a change to an existing behavior in the product in order to be resolved. question The issue doesn't require a change to the product in order to be resolved. Most issues start as that Similar-Issue Upgrade az upgrade
Projects
None yet
Development

No branches or pull requests

3 participants