Skip to content

Not able to az loginΒ #32527

@luanlopez

Description

@luanlopez

Describe the bug

I'm using az login to develop features and functionalities in my software. When I was using version 2.61, it worked fine. Recently, I updated to the latest version, and now I can no longer log in.

Related command

az login

Errors

No specific error message appears; the screen just stays in an infinite loading state and never completes the login.

Issue script & Debug output

cli.knack.cli: Command arguments: ['login','--service-principal','-u', '----','-p=','--tenant', '----********','--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 0x104804c20>, <function OutputProducer.on_global_arguments at 0x104a4aca0>, <function CLIQuery.on_global_arguments at 0x104a91080>]
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.002 2 8
cli.azure.cli.core: Total (1) 0.002 2 8
cli.azure.cli.core: Loaded 2 groups, 8 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 0x105eeef20>]
cli.azure.cli.core.azlogging: metadata file logging enabled - writing logs to '/Users/luanlopes/.azure/commands/2025-12-11.10-26-11.login.49262.log'.
az_command_data_logger: command args: login --service-principal -u {} -p={} --tenant {} --debug
cli.knack.cli: Event: CommandInvoker.OnPreArgumentLoad [<function register_global_subscription_argument..add_subscription_parameter at 0x105f3c860>]
cli.knack.cli: Event: CommandInvoker.OnPostArgumentLoad []
cli.knack.cli: Event: CommandInvoker.OnPostCommandTableCreate [<function register_ids_argument..add_ids_arguments at 0x105f3eb60>, <function register_cache_arguments..add_cache_arguments at 0x105f3ed40>, <function register_upcoming_breaking_change_info..update_breaking_change_info at 0x105f3ede0>]
cli.knack.cli: Event: CommandInvoker.OnCommandTableLoaded []
cli.knack.cli: Event: CommandInvoker.OnPreParseArgs []
cli.knack.cli: Event: CommandInvoker.OnPostParseArgs [<function OutputProducer.handle_output_argument at 0x104a4ad40>, <function CLIQuery.handle_query_parameter at 0x104a91120>, <function register_ids_argument..parse_ids_arguments at 0x105f3ec00>]
cli.azure.cli.core.auth.persistence: build_persistence: location='/Users/luanlopes/.azure/msal_token_cache.json', encrypt=False
cli.azure.cli.core.auth.binary_cache: load: /Users/luanlopes/.azure/msal_http_cache.bin
cli.azure.cli.core.auth.binary_cache: /Users/luanlopes/.azure/msal_http_cache.bin not found. Using a fresh one.
urllib3.util.retry: Converted retries value: 1 -> Retry(total=1, connect=None, read=None, redirect=None, status=None)
msal.authority: Initializing with Entra authority: https://login.microsoftonline.com/b7aeabfe-1230-4a9a-8e68-32f70e6e9e60
urllib3.connectionpool: Starting new HTTPS connection (1): login.microsoftonline.com:443

Expected behavior

Allows successful login

Environment Summary

azure-cli 2.81.0

core 2.81.0
telemetry 1.1.0

Dependencies:
msal 1.34.0b1
azure-mgmt-resource 23.3.0

Python location '/opt/homebrew/Cellar/azure-cli/2.81.0/libexec/bin/python'
Config directory '/Users/luanlopes/.azure'
Extensions directory '/Users/luanlopes/.azure/cliextensions'

Python (Darwin) 3.13.11 (main, Dec 5 2025, 16:06:33) [Clang 17.0.0 (clang-1700.4.4.1)]

Additional context

Image

Metadata

Metadata

Assignees

Labels

Accountaz login/accountAuto-AssignAuto assign by botAzure CLI TeamThe command of the issue is owned by Azure CLI teamcustomer-reportedIssues that are reported by GitHub users external to the Azure organization.questionThe issue doesn't require a change to the product in order to be resolved. Most issues start as that

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions