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 doesn't work anymore. Windows Terminal is getting hung #29226

Open
jaliyaudagedara opened this issue Jun 22, 2024 · 3 comments
Open
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 customer-reported Issues that are reported by GitHub users external to the Azure organization. Possible-Solution question The issue doesn't require a change to the product in order to be resolved. Most issues start as that Similar-Issue
Milestone

Comments

@jaliyaudagedara
Copy link

jaliyaudagedara commented Jun 22, 2024

Describe the bug

az login doesn't work anymore. Getting the error User cancelled the Accounts Control Operation. which I am not. Windows Terminal is getting hung.

2024-06-22_12-06-07

Related command

az login

Errors

>  az login
Please select the account you want to log in with.
User cancelled the Accounts Control Operation.. Status: Response_Status.Status_UserCanceled, Error code: 0, Tag: 528315210
Please explicitly log in with:
az login

Issue script & Debug output

> 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 0x0000018ECE4EB880>, <function OutputProducer.on_global_arguments at 0x0000018ECE6760C0>, <function CLIQuery.on_global_arguments at 0x0000018ECE6A3C40>]
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: These extensions are not installed and will be skipped: ['azext_ai_examples', 'azext_next']
cli.azure.cli.core: Loading extensions:
cli.azure.cli.core: Name                  Load Time    Groups  Commands  Directory
cli.azure.cli.core: Total (0)                 0.000         0         0
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 0x0000018ED153E200>]
cli.azure.cli.core.azlogging: metadata file logging enabled - writing logs to 'C:\Users\Jaliya\.azure\commands\2024-06-22.12-08-13.login.36108.log'.
az_command_data_logger: command args: login --debug
cli.knack.cli: Event: CommandInvoker.OnPreArgumentLoad [<function register_global_subscription_argument.<locals>.add_subscription_parameter at 0x0000018ED15B07C0>]
cli.knack.cli: Event: CommandInvoker.OnPostArgumentLoad []
cli.knack.cli: Event: CommandInvoker.OnPostCommandTableCreate [<function register_ids_argument.<locals>.add_ids_arguments at 0x0000018ED15B0860>, <function register_cache_arguments.<locals>.add_cache_arguments at 0x0000018ED15B09A0>]
cli.knack.cli: Event: CommandInvoker.OnCommandTableLoaded []
cli.knack.cli: Event: CommandInvoker.OnPreParseArgs []
cli.knack.cli: Event: CommandInvoker.OnPostParseArgs [<function OutputProducer.handle_output_argument at 0x0000018ECE676160>, <function CLIQuery.handle_query_parameter at 0x0000018ECE6A3CE0>, <function register_ids_argument.<locals>.parse_ids_arguments at 0x0000018ED15B0900>]
cli.azure.cli.core.auth.persistence: build_persistence: location='C:\\Users\\Jaliya\\.azure\\msal_token_cache.bin', encrypt=True
cli.azure.cli.core.auth.binary_cache: load: C:\Users\Jaliya\.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: Initializing with Entra authority: https://login.microsoftonline.com/organizations
msal.authority: openid_config("https://login.microsoftonline.com/organizations/v2.0/.well-known/openid-configuration") = {'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? True
msal.application: Falls back to broker._signin_interactively()
cli.azure.cli.core.auth.identity: Please select the account you want to log in with.
msal.broker: [MSAL:0001]        WARNING SetAuthorityString:98   Initializing authority from string 'https://login.microsoftonline.com/organizations' without authority type, defaulting to MsSts
msal.broker: [MSAL:0002]        INFO    SetCorrelationId:273    Set correlation ID: d64b0cbe-af2e-4960-a968-bd9604fe8e9b
msal.broker: [MSAL:0002]        INFO    ExecuteInteractiveRequest:1103  The original authority is 'https://login.microsoftonline.com/organizations'
msal.broker: [MSAL:0002]        WARNING TryNormalizeRealm:2295  No HomeAccountId provided to normalize the realm
msal.broker: [MSAL:0002]        INFO    ExecuteInteractiveRequest:1114  The normalized realm is ''
msal.broker: [MSAL:0002]        INFO    ModifyAndValidateAuthParameters:191     Additional query parameter added successfully. Key: '(pii)' Value: '(pii)'
msal.broker: [MSAL:0002]        INFO    ModifyAndValidateAuthParameters:191     Additional query parameter added successfully. Key: '(pii)' Value: '(pii)'
msal.broker: [MSAL:0002]        INFO    ModifyAndValidateAuthParameters:215     Authority Realm: organizations
msal.broker: [MSAL:0003]        WARNING ReturnResponseDueToMissingParameter:643 Attempted to read cache with a non-normalized realm, access token and ID token reads will fail
msal.broker: [MSAL:0003]        WARNING ReadAccountById:227     Account id is empty - account not found
msal.broker: [MSAL:0004]        INFO    ErrorInternalImpl:116   Created an error: 55xnk, StatusInternal::UserCanceled, InternalEvent::None, Context 'User cancelled the Accounts Control Operation.'
msal.broker: [MSAL:0004]        INFO    LogTelemetryData:383    Printing Telemetry for Correlation ID: d64b0cbe-af2e-4960-a968-bd9604fe8e9b
msal.broker: [MSAL:0004]        INFO    LogTelemetryData:391    Key: start_time, Value: 2024-06-22T00:08:13.000Z
msal.broker: [MSAL:0004]        INFO    LogTelemetryData:391    Key: api_name, Value: SignInInteractively
msal.broker: [MSAL:0004]        INFO    LogTelemetryData:391    Key: was_request_throttled, Value: false
msal.broker: [MSAL:0004]        INFO    LogTelemetryData:391    Key: authority_type, Value: Unknown
msal.broker: [MSAL:0004]        INFO    LogTelemetryData:391    Key: msal_version, Value: 1.1.0+local
msal.broker: [MSAL:0004]        INFO    LogTelemetryData:391    Key: api_status_code, Value: StatusInternal::UserCanceled
msal.broker: [MSAL:0004]        INFO    LogTelemetryData:391    Key: client_id, Value: 04b07795-8ddb-461a-bbee-02f9e1bf7b46
msal.broker: [MSAL:0004]        INFO    LogTelemetryData:391    Key: correlation_id, Value: d64b0cbe-af2e-4960-a968-bd9604fe8e9b
msal.broker: [MSAL:0004]        INFO    LogTelemetryData:391    Key: broker_app_used, Value: true
msal.broker: [MSAL:0004]        INFO    LogTelemetryData:391    Key: stop_time, Value: 2024-06-22T00:08:13.000Z
msal.broker: [MSAL:0004]        INFO    LogTelemetryData:391    Key: all_error_tags, Value: 55xnk
msal.broker: [MSAL:0004]        INFO    LogTelemetryData:391    Key: msalruntime_version, Value: 0.14.2-alpha1
msal.broker: [MSAL:0004]        INFO    LogTelemetryData:391    Key: original_authority, Value: https://login.microsoftonline.com/organizations
msal.broker: [MSAL:0004]        INFO    LogTelemetryData:391    Key: additional_query_parameters_count, Value: 2
msal.broker: [MSAL:0004]        INFO    LogTelemetryData:391    Key: read_token_last_error, Value: missing required parameter
msal.broker: [MSAL:0004]        INFO    LogTelemetryData:391    Key: request_eligible_for_broker, Value: true
msal.broker: [MSAL:0004]        INFO    LogTelemetryData:391    Key: auth_flow, Value: Broker
msal.broker: [MSAL:0004]        INFO    LogTelemetryData:391    Key: ui_event_count, Value: 1
msal.broker: [MSAL:0004]        INFO    LogTelemetryData:391    Key: authorization_type, Value: Interactive
msal.broker: [MSAL:0004]        INFO    LogTelemetryData:391    Key: api_error_code, Value: 0
msal.broker: [MSAL:0004]        INFO    LogTelemetryData:391    Key: api_error_tag, Value: 55xnk
msal.broker: [MSAL:0004]        INFO    LogTelemetryData:391    Key: api_error_context, Value: User cancelled the Accounts Control Operation.
msal.broker: [MSAL:0004]        INFO    LogTelemetryData:391    Key: is_successful, Value: false
msal.broker: [MSAL:0004]        INFO    LogTelemetryData:391    Key: request_duration, Value: 28
msal.broker: [MSAL:0004]        INFO    LogTelemetryData:396    Printing Execution Flow:
msal.broker: [MSAL:0004]        INFO    LogTelemetryData:404    {"t":"646u1","tid":2,"ts":0,"l":2},{"t":"4s7ub","tid":2,"ts":1,"l":2},{"t":"4sufd","tid":2,"ts":1,"s":2,"l":2},{"t":"4swgg","tid":2,"ts":1,"s":1,"l":2},{"t":"4swgf","tid":2,"ts":1,"s":1,"l":2},{"t":"4swgi","tid":3,"ts":1,"s":1,"l":2},{"t":"8dqim","tid":3,"ts":1,"l":2},{"t":"8dqkl","tid":3,"ts":1,"l":2,"a":9,"ie":0},{"t":"54uxd","tid":2,"ts":1,"l":2},{"t":"8dqkn","tid":4,"ts":23,"l":2,"a":5,"ie":1},{"t":"8dqko","tid":4,"ts":23,"l":2,"a":9,"ie":1},{"t":"646u1","tid":4,"ts":23,"l":2}
cli.azure.cli.core.azclierror: Traceback (most recent call last):
  File "D:\a\_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\knack/cli.py", line 233, in invoke
  File "D:\a\_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/__init__.py", line 664, in execute
  File "D:\a\_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/__init__.py", line 731, in _run_jobs_serially
  File "D:\a\_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/__init__.py", line 701, in _run_job
  File "D:\a\_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/__init__.py", line 334, in __call__
  File "D:\a\_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/command_operation.py", line 121, in handler
  File "D:\a\_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/command_modules/profile/custom.py", line 158, in login
  File "D:\a\_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/_profile.py", line 172, in login
  File "D:\a\_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/auth/identity.py", line 166, in login_with_auth_code
  File "D:\a\_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/auth/util.py", line 139, in check_result
  File "D:\a\_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/auth/util.py", line 43, in aad_error_handler
azure.cli.core.azclierror.AuthenticationError: User cancelled the Accounts Control Operation.. Status: Response_Status.Status_UserCanceled, Error code: 0, Tag: 528315210

cli.azure.cli.core.azclierror: User cancelled the Accounts Control Operation.. Status: Response_Status.Status_UserCanceled, Error code: 0, Tag: 528315210
az_command_data_logger: User cancelled the Accounts Control Operation.. Status: Response_Status.Status_UserCanceled, Error code: 0, Tag: 528315210
Please explicitly log in with:
az login
cli.knack.cli: Event: Cli.PostExecute [<function AzCliLogging.deinit_cmd_metadata_logging at 0x0000018ED153E480>]
az_command_data_logger: exit code: 1
cli.__main__: Command ran in 0.491 seconds (init: 0.266, invoke: 0.226)
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 4835 in cache
telemetry.main: Begin creating telemetry upload process.
telemetry.process: Creating upload process: "C:\Program Files\Microsoft SDKs\Azure\CLI2\python.exe C:\Program Files\Microsoft SDKs\Azure\CLI2\Lib\site-packages\azure\cli\telemetry\__init__.pyc C:\Users\Jaliya\.azure"
telemetry.process: Return from creating process
telemetry.main: Finish creating telemetry upload process.

Expected behavior

Login should work

Environment Summary

> az --version                                                                                                                                                                                
azure-cli                         2.61.0

core                              2.61.0
telemetry                          1.1.0

Extensions:
containerapp                      0.3.53
log-analytics                      0.2.2

Dependencies:
msal                              1.28.0
azure-mgmt-resource               23.1.1

Python location 'C:\Program Files\Microsoft SDKs\Azure\CLI2\python.exe'
Extensions directory 'C:\Users\Jaliya\.azure\cliextensions'

Python (Windows) 3.11.8 (tags/v3.11.8:db85d51, Feb  6 2024, 22:03:32) [MSC v.1937 64 bit (AMD64)]

Legal docs and information: aka.ms/AzureCliLegal


Your CLI is up-to-date.

Additional context

> Get-ComputerInfo 
WindowsBuildLabEx                                       : 22621.1.amd64fre.ni_release.220506-1250
WindowsCurrentVersion                                   : 6.3
WindowsEditionId                                        : ProfessionalWorkstation
WindowsInstallationType                                 : Client
WindowsInstallDateFromRegistry                          : 5/10/2022 5:57:46 pm
WindowsProductId                                        : 00391-50005-10725-AAOEM
WindowsProductName                                      : Windows 10 Pro for Workstations
WindowsRegisteredOrganization                           :
WindowsRegisteredOwner                                  : Jaliya
WindowsSystemRoot                                       : C:\WINDOWS
WindowsVersion                                          : 2009
WindowsUBR                                              : 3737
BiosCharacteristics                                     : {7, 9, 11, 12…}
BiosBIOSVersion                                         : {LENOVO - 1370, N30ET54W (1.37 ), Lenovo - 1370}
BiosBuildNumber                                         :
BiosCaption                                             : N30ET54W (1.37 )
BiosCodeSet                                             :
BiosCurrentLanguage                                     : en-US
BiosDescription                                         : N30ET54W (1.37 )
BiosEmbeddedControllerMajorVersion                      : 1
BiosEmbeddedControllerMinorVersion                      : 17
BiosFirmwareType                                        : Uefi
BiosIdentificationCode                                  :
BiosInstallableLanguages                                : 1
BiosInstallDate                                         :
BiosLanguageEdition                                     :
BiosListOfLanguages                                     : {en-US}
BiosManufacturer                                        : LENOVO
BiosName                                                : N30ET54W (1.37 )
BiosOtherTargetOS                                       :
BiosPrimaryBIOS                                         : True
BiosReleaseDate                                         : 6/03/2024 1:00:00 pm
BiosSerialNumber                                        : PF2MS1WZ
BiosSMBIOSBIOSVersion                                   : N30ET54W (1.37 )
BiosSMBIOSMajorVersion                                  : 3
BiosSMBIOSMinorVersion                                  : 2
BiosSMBIOSPresent                                       : True
BiosSoftwareElementState                                : Running
BiosStatus                                              : OK
BiosSystemBiosMajorVersion                              : 1
BiosSystemBiosMinorVersion                              : 37
BiosTargetOperatingSystem                               : 0
BiosVersion                                             : LENOVO - 1370
CsAdminPasswordStatus                                   : Disabled
CsAutomaticManagedPagefile                              : True
CsAutomaticResetBootOption                              : True
CsAutomaticResetCapability                              : True
CsBootOptionOnLimit                                     :
CsBootOptionOnWatchDog                                  :
CsBootROMSupported                                      : True
CsBootStatus                                            :
CsBootupState                                           : Normal boot
CsCaption                                               : RAVANA-TPP15
CsChassisBootupState                                    : Unknown
CsChassisSKUNumber                                      :
CsCurrentTimeZone                                       : 720
CsDaylightInEffect                                      : False
CsDescription                                           : AT/AT COMPATIBLE
CsDNSHostName                                           : RAVANA-TPP15
CsDomain                                                : WORKGROUP
CsDomainRole                                            : StandaloneWorkstation
CsEnableDaylightSavingsTime                             : True
CsFrontPanelResetStatus                                 : NotImplemented
CsHypervisorPresent                                     : True
CsInfraredSupported                                     : False
CsInitialLoadInfo                                       :
CsInstallDate                                           :
CsKeyboardPasswordStatus                                : NotImplemented
CsLastLoadInfo                                          :
CsManufacturer                                          : LENOVO
CsModel                                                 : 20STCTO1WW
CsName                                                  : RAVANA-TPP15
CsNetworkAdapters                                       : {McAfee VPN, Wi-Fi, Cellular, Bluetooth Network Connection…}
CsNetworkServerModeEnabled                              : True
CsNumberOfLogicalProcessors                             : 16
CsNumberOfProcessors                                    : 1
CsProcessors                                            : {Intel(R) Xeon(R) W-10885M CPU @ 2.40GHz}
CsOEMStringArray                                        :
CsPartOfDomain                                          : False
CsPauseAfterReset                                       : -1
CsPCSystemType                                          : Mobile
CsPCSystemTypeEx                                        : Mobile
CsPowerManagementCapabilities                           :
CsPowerManagementSupported                              :
CsPowerOnPasswordStatus                                 : Disabled
CsPowerState                                            : Unknown
CsPowerSupplyState                                      : Unknown
CsPrimaryOwnerContact                                   :
CsPrimaryOwnerName                                      : Jaliya
CsResetCapability                                       : Other
CsResetCount                                            : -1
CsResetLimit                                            : -1
CsRoles                                                 : {LM_Workstation, LM_Server, SQLServer, NT}
CsStatus                                                : OK
CsSupportContactDescription                             :
CsSystemFamily                                          : ThinkPad P15 Gen 1
CsSystemSKUNumber                                       : LENOVO_MT_20ST_BU_Think_FM_ThinkPad P15 Gen 1
CsSystemType                                            : x64-based PC
CsThermalState                                          : Unknown
CsTotalPhysicalMemory                                   : 68424130560
CsPhysicallyInstalledMemory                             : 67106816
CsUserName                                              : RAVANA-TPP15\Jaliya
CsWakeUpType                                            : PowerSwitch
CsWorkgroup                                             : WORKGROUP
OsName                                                  : Microsoft Windows 11 Pro for Workstations
OsType                                                  : WINNT
OsOperatingSystemSKU                                    : 161
OsVersion                                               : 10.0.22621
OsCSDVersion                                            :
OsBuildNumber                                           : 22621
OsHotFixes                                              : {KB5037591, KB5012170, KB5039212, KB5037959}
OsBootDevice                                            : \Device\HarddiskVolume4
OsSystemDevice                                          : \Device\HarddiskVolume6
OsSystemDirectory                                       : C:\WINDOWS\system32
OsSystemDrive                                           : C:
OsWindowsDirectory                                      : C:\WINDOWS
OsCountryCode                                           : 1
OsCurrentTimeZone                                       : 720
OsLocaleID                                              : 0409
OsLocale                                                : en-US
OsLocalDateTime                                         : 22/06/2024 12:13:26 pm
OsLastBootUpTime                                        : 22/06/2024 11:06:32 am
OsUptime                                                : 01:06:53.9629381
OsBuildType                                             : Multiprocessor Free
OsCodeSet                                               : 1252
OsDataExecutionPreventionAvailable                      : True
OsDataExecutionPrevention32BitApplications              : True
OsDataExecutionPreventionDrivers                        : True
OsDataExecutionPreventionSupportPolicy                  : OptIn
OsDebug                                                 : False
OsDistributed                                           : False
OsEncryptionLevel                                       : 256
OsForegroundApplicationBoost                            : Maximum
OsTotalVisibleMemorySize                                : 66820440
OsFreePhysicalMemory                                    : 36340936
OsTotalVirtualMemorySize                                : 76781912
OsFreeVirtualMemory                                     : 41898252
OsInUseVirtualMemory                                    : 34883660
OsTotalSwapSpaceSize                                    :
OsSizeStoredInPagingFiles                               : 9961472
OsFreeSpaceInPagingFiles                                : 9961472
OsPagingFiles                                           : {C:\pagefile.sys}
OsHardwareAbstractionLayer                              : 10.0.22621.2506
OsInstallDate                                           : 6/10/2022 6:57:46 am
OsManufacturer                                          : Microsoft Corporation
OsMaxNumberOfProcesses                                  : 4294967295
OsMaxProcessMemorySize                                  : 137438953344
OsMuiLanguages                                          : {en-US, en-GB}
OsNumberOfLicensedUsers                                 : 0
OsNumberOfProcesses                                     : 506
OsNumberOfUsers                                         : 2
OsOrganization                                          :
OsArchitecture                                          : 64-bit
OsLanguage                                              : en-US
OsProductSuites                                         : {TerminalServicesSingleSession}
OsOtherTypeDescription                                  :
OsPAEEnabled                                            :
OsPortableOperatingSystem                               : False
OsPrimary                                               : True
OsProductType                                           : WorkStation
OsRegisteredUser                                        : Jaliya
OsSerialNumber                                          : 00391-50005-10725-AAOEM
OsServicePackMajorVersion                               : 0
OsServicePackMinorVersion                               : 0
OsStatus                                                : OK
OsSuites                                                : {TerminalServices, TerminalServicesSingleSession}
OsServerLevel                                           :
KeyboardLayout                                          : en-US
TimeZone                                                : (UTC+12:00) Auckland, Wellington
LogonServer                                             : \\RAVANA-TPP15
PowerPlatformRole                                       : Mobile
HyperVisorPresent                                       : True
HyperVRequirementDataExecutionPreventionAvailable       :
HyperVRequirementSecondLevelAddressTranslation          :
HyperVRequirementVirtualizationFirmwareEnabled          :
HyperVRequirementVMMonitorModeExtensions                :
DeviceGuardSmartStatus                                  : Off
DeviceGuardRequiredSecurityProperties                   :
DeviceGuardAvailableSecurityProperties                  :
DeviceGuardSecurityServicesConfigured                   :
DeviceGuardSecurityServicesRunning                      :
DeviceGuardCodeIntegrityPolicyEnforcementStatus         :
@jaliyaudagedara jaliyaudagedara added the bug This issue requires a change to an existing behavior in the product in order to be resolved. label Jun 22, 2024
@microsoft-github-policy-service microsoft-github-policy-service bot added customer-reported Issues that are reported by GitHub users external to the Azure organization. Auto-Assign Auto assign by bot Account az login/account labels Jun 22, 2024
@microsoft-github-policy-service microsoft-github-policy-service bot added Azure CLI Team The command of the issue is owned by Azure CLI team question The issue doesn't require a change to the product in order to be resolved. Most issues start as that labels Jun 22, 2024
Copy link

Hi @jaliyaudagedara
Find similar issue #10578.

Issue title az login hangs after selecting account
Create time 2019-09-19
Comment number 7

Possible solution:
Azure CLI opens port 8400 to listen to returned auth code. The hang is usually caused by blocked 8400 port. You may use psping to test if port 8400 can be reached: https://docs.microsoft.com/en-us/sysinternals/downloads/psping

psping -t 127.0.0.1:8400

If the device can't open 8400, you may use az login --use-device-code.


Please confirm if this resolves your issue.

@yonzhan
Copy link
Collaborator

yonzhan commented Jun 22, 2024

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

@yonzhan yonzhan removed the bug This issue requires a change to an existing behavior in the product in order to be resolved. label Jun 22, 2024
@yonzhan yonzhan added this to the Backlog milestone Jun 22, 2024
@jaliyaudagedara
Copy link
Author

Related: #28997

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 customer-reported Issues that are reported by GitHub users external to the Azure organization. Possible-Solution question The issue doesn't require a change to the product in order to be resolved. Most issues start as that Similar-Issue
Projects
None yet
Development

No branches or pull requests

3 participants