Azure / Azure/azure-powershell

WAM triggers a server lockup when configured as the default login method on Windows Server 2022 running in core mode (without a GUI)

Open
#24,787 2 comments 0 reactions 1 assignee Claimed by @msJinLei View on GitHub
Accounts bug Investigate :mag: Tracking WAM
Dominant language
C#
Stars
4.8k
Forks
4.3k
Avg merge
2d 17h
Merged PRs (30d)
51

Description

### Description

Setting `Update-AzConfig -EnableLoginByWam $true` and running `Connect-AzAccount` on a fresh installation of Windows Server 2022 in core mode (without a GUI) with Az 11.6.0 causes the console for Windows PowerShell 5.1 and the server to become unresponsive. I can replicate the problem every time, but the server has to be reset because you cannot close the console or use `cntl+alt+del`.

![image](https://github.com/Azure/azure-powershell/assets/6719572/7cafade0-59a9-40b8-adb2-e369f8fc17bd)

I would expect `Connect-AzAccount` to detect that a GUI is not present and default to using the `-DeviceCode` parameter.

### Issue script & Debug output

```PowerShell
Because of the severity of the problem, I had to redirect the output to a file to obtain the debug information using `Connect-AzAccount *> c:\tmp\az-debug2.txt`.

Got version 0 of Az
Got version 0 of Az.Accounts
2:55:17 PM - [ConfigManager] Got [True] from [DisplaySecretsWarning], Module = [], Cmdlet = [].
2:55:17 PM - ConnectAzureRmAccountCommand begin processing with ParameterSet 'UserWithSubscriptionId'.
2:55:17 PM - [ConfigManager] Got nothing from [DisplayBreakingChangeWarning], Module = [], Cmdlet = []. Returning
default value [True].
2:55:17 PM - [ConfigManager] Got nothing from [DefaultSubscriptionForLogin], Module = [], Cmdlet = []. Returning
default value [].
2:55:17 PM - Autosave setting from startup session: 'CurrentUser'
2:55:17 PM - No autosave setting detected in environment variable 'AzContextAutoSave'.
2:55:17 PM - Using Autosave scope 'CurrentUser'
2:55:17 pm - [InteractiveWamAuthenticator] Calling InteractiveBrowserCredential.AuthenticateAsync with TenantId:'',
Scopes:'https://management.core.windows.net//.default', AuthorityHost:'https://login.microsoftonline.com/',
RedirectUri:'http://localhost:8400/'
InteractiveBrowserCredential.Authenticate invoked. Scopes: [ https://management.core.windows.net//.default ]
ParentRequestId:
Executing interactive authentication workflow inline.
False MSAL 4.56.0.0 MSAL.CoreCLR .NET Framework 4.8.4718.0 Microsoft Windows 10.0.20348 [2024-05-02 19:55:17Z -
7c65fa63-7ea9-4eab-880b-0b91366600b8] MSAL MSAL.CoreCLR with assembly version '4.56.0.0'.
CorrelationId(7c65fa63-7ea9-4eab-880b-0b91366600b8)
False MSAL 4.56.0.0 MSAL.CoreCLR .NET Framework 4.8.4718.0 Microsoft Windows 10.0.20348 [2024-05-02 19:55:17Z -
7c65fa63-7ea9-4eab-880b-0b91366600b8] === InteractiveParameters Data ===
LoginHint provided: False
User provided: False
UseEmbeddedWebView: NotSpecified
ExtraScopesToConsent:
Prompt: select_account
HasCustomWebUi: False

False MSAL 4.56.0.0 MSAL.CoreCLR .NET Framework 4.8.4718.0 Microsoft Windows 10.0.20348 [2024-05-02 19:55:17Z -
7c65fa63-7ea9-4eab-880b-0b91366600b8]
=== Request Data ===
Authority Provided? - True
Scopes - https://management.core.windows.net//.default
Extra Query Params Keys (space separated) -
ApiId - AcquireTokenInteractive
IsConfidentialClient - False
SendX5C - False
LoginHint ? False
IsBrokerConfigured - True
HomeAccountId - False
CorrelationId - 7c65fa63-7ea9-4eab-880b-0b91366600b8
UserAssertion set: False
LongRunningOboCacheKey set: False
Region configured:

False MSAL 4.56.0.0 MSAL.CoreCLR .NET Framework 4.8.4718.0 Microsoft Windows 10.0.20348 [2024-05-02 19:55:17Z -
7c65fa63-7ea9-4eab-880b-0b91366600b8] === Token Acquisition (InteractiveRequest) started:
Scopes: https://management.core.windows.net//.default
Authority Host: login.microsoftonline.com
False MSAL 4.56.0.0 MSAL.CoreCLR .NET Framework 4.8.4718.0 Microsoft Windows 10.0.20348 [2024-05-02 19:55:17Z -
7c65fa63-7ea9-4eab-880b-0b91366600b8] [Instance Discovery] Instance discovery is enabled and will be performed
False MSAL 4.56.0.0 MSAL.CoreCLR .NET Framework 4.8.4718.0 Microsoft Windows 10.0.20348 [2024-05-02 19:55:17Z -
7c65fa63-7ea9-4eab-880b-0b91366600b8] [Region discovery] Not using a regional authority.
False MSAL 4.56.0.0 MSAL.CoreCLR .NET Framework 4.8.4718.0 Microsoft Windows 10.0.20348 [2024-05-02 19:55:18Z -
7c65fa63-7ea9-4eab-880b-0b91366600b8] Fetching instance discovery from the network from host
login.microsoftonline.com.
Request [e6e38907-e451-4a4e-8060-5df8ef9280f2] GET
https://login.microsoftonline.com/common/discovery/instance?api-version=1.1&authorization_endpoint=REDACTED
x-client-SKU:REDACTED
x-client-Ver:REDACTED
x-client-CPU:REDACTED
x-client-OS:REDACTED
client-request-id:REDACTED
return-client-request-id:REDACTED
x-app-name:REDACTED
x-app-ver:REDACTED
x-ms-client-request-id:e6e38907-e451-4a4e-8060-5df8ef9280f2
x-ms-return-client-request-id:true
User-Agent:azsdk-net-Identity.Broker/1.0.0-beta.5 (.NET Framework 4.8.4718.0; Microsoft Windows 10.0.20348 )
client assembly: Azure.Identity.Broker
Response [e6e38907-e451-4a4e-8060-5df8ef9280f2] 200 OK (00.2s)
Strict-Transport-Security:REDACTED
X-Content-Type-Options:REDACTED
Access-Control-Allow-Origin:REDACTED
Access-Control-Allow-Methods:REDACTED
client-request-id:REDACTED
x-ms-request-id:03f0a280-1ead-4074-a9ed-3a5d1b233000
x-ms-ests-server:REDACTED
x-ms-srs:REDACTED
X-XSS-Protection:REDACTED
Cache-Control:max-age=86400, private
P3P:REDACTED
Set-Cookie:REDACTED
Date:Thu, 02 May 2024 19:55:17 GMT
Content-Length:957
Content-Type:application/json; charset=utf-8

False MSAL 4.56.0.0 MSAL.CoreCLR .NET Framework 4.8.4718.0 Microsoft Windows 10.0.20348 [2024-05-02 19:55:18Z -
7c65fa63-7ea9-4eab-880b-0b91366600b8] Authority validation enabled? True.
False MSAL 4.56.0.0 MSAL.CoreCLR .NET Framework 4.8.4718.0 Microsoft Windows 10.0.20348 [2024-05-02 19:55:18Z -
7c65fa63-7ea9-4eab-880b-0b91366600b8] Authority validation - is known env? True.
False MSAL 4.56.0.0 MSAL.CoreCLR .NET Framework 4.8.4718.0 Microsoft Windows 10.0.20348 [2024-05-02 19:55:18Z -
7c65fa63-7ea9-4eab-880b-0b91366600b8] Broker is configured. Starting broker flow without knowing the broker
installation app link.
False MSAL 4.56.0.0 MSAL.CoreCLR .NET Framework 4.8.4718.0 Microsoft Windows 10.0.20348 [2024-05-02 19:55:18Z]
[RuntimeBroker] WAM supported OS.
False MSAL 4.56.0.0 MSAL.CoreCLR .NET Framework 4.8.4718.0 Microsoft Windows 10.0.20348 [2024-05-02 19:55:18Z -
7c65fa63-7ea9-4eab-880b-0b91366600b8] Can invoke broker. Will attempt to acquire token with broker.
False MSAL 4.56.0.0 MSAL.CoreCLR .NET Framework 4.8.4718.0 Microsoft Windows 10.0.20348 [2024-05-02 19:55:18Z]
[RuntimeBroker] Calling SignInInteractivelyAsync this will show the account picker.
False MSAL 4.56.0.0 MSAL.CoreCLR .NET Framework 4.8.4718.0 Microsoft Windows 10.0.20348 [2024-05-02 19:55:18Z]
[MSAL:0001] INFO SetCorrelationId:220 Set correlation ID: 7c65fa63-7ea9-4eab-880b-0b91366600b8
False MSAL 4.56.0.0 MSAL.CoreCLR .NET Framework 4.8.4718.0 Microsoft Windows 10.0.20348 [2024-05-02 19:55:18Z]
[MSAL:0001] INFO SetCorrelationId:220 Set correlation ID: 7c65fa63-7ea9-4eab-880b-0b91366600b8
False MSAL 4.56.0.0 MSAL.CoreCLR .NET Framework 4.8.4718.0 Microsoft Windows 10.0.20348 [2024-05-02 19:55:18Z]
[MSAL:0001] INFO ExecuteInteractiveRequest:724 The original authority is
'https://login.microsoftonline.com/organizations'
False MSAL 4.56.0.0 MSAL.CoreCLR .NET Framework 4.8.4718.0 Microsoft Windows 10.0.20348 [2024-05-02 19:55:18Z]
[MSAL:0001] INFO ExecuteInteractiveRequest:724 The original authority is
'https://login.microsoftonline.com/organizations'
False MSAL 4.56.0.0 MSAL.CoreCLR .NET Framework 4.8.4718.0 Microsoft Windows 10.0.20348 [2024-05-02 19:55:18Z]
[MSAL:0001] WARNING TryNormalizeRealm:2257 No HomeAccountId provided to normalize the realm
False MSAL 4.56.0.0 MSAL.CoreCLR .NET Framework 4.8.4718.0 Microsoft Windows 10.0.20348 [2024-05-02 19:55:18Z]
[MSAL:0001] WARNING TryNormalizeRealm:2257 No HomeAccountId provided to normalize the realm
False MSAL 4.56.0.0 MSAL.CoreCLR .NET Framework 4.8.4718.0 Microsoft Windows 10.0.20348 [2024-05-02 19:55:18Z]
[MSAL:0001] INFO ExecuteInteractiveRequest:735 The normalized realm is ''
False MSAL 4.56.0.0 MSAL.CoreCLR .NET Framework 4.8.4718.0 Microsoft Windows 10.0.20348 [2024-05-02 19:55:18Z]
[MSAL:0001] INFO ExecuteInteractiveRequest:735 The normalized realm is ''
False MSAL 4.56.0.0 MSAL.CoreCLR .NET Framework 4.8.4718.0 Microsoft Windows 10.0.20348 [2024-05-02 19:55:18Z]
[MSAL:0001] INFO ModifyAndValidateAuthParameters:147 Additional query parameter added successfully. Key: '(pii)'
Value: '(pii)'
False MSAL 4.56.0.0 MSAL.CoreCLR .NET Framework 4.8.4718.0 Microsoft Windows 10.0.20348 [2024-05-02 19:55:18Z]
[MSAL:0001] INFO ModifyAndValidateAuthParameters:147 Additional query parameter added successfully. Key: '(pii)'
Value: '(pii)'
False MSAL 4.56.0.0 MSAL.CoreCLR .NET Framework 4.8.4718.0 Microsoft Windows 10.0.20348 [2024-05-02 19:55:18Z]
[MSAL:0001] INFO ModifyAndValidateAuthParameters:164 Authority Realm: organizations
False MSAL 4.56.0.0 MSAL.CoreCLR .NET Framework 4.8.4718.0 Microsoft Windows 10.0.20348 [2024-05-02 19:55:18Z]
[MSAL:0001] INFO ModifyAndValidateAuthParameters:164 Authority Realm: organizations
False MSAL 4.56.0.0 MSAL.CoreCLR .NET Framework 4.8.4718.0 Microsoft Windows 10.0.20348 [2024-05-02 19:55:18Z]
[MSAL:0002] WARNING TryReadUniversalStorage:597 Attempted to read cache with a non-normalized realm, access token and
ID token reads will fail
False MSAL 4.56.0.0 MSAL.CoreCLR .NET Framework 4.8.4718.0 Microsoft Windows 10.0.20348 [2024-05-02 19:55:18Z]
[MSAL:0002] WARNING TryReadUniversalStorage:597 Attempted to read cache with a non-normalized realm, access token and
ID token reads will fail
False MSAL 4.56.0.0 MSAL.CoreCLR .NET Framework 4.8.4718.0 Microsoft Windows 10.0.20348 [2024-05-02 19:55:18Z]
[MSAL:0002] WARNING ReadAccountById:193 Account id is empty - account not found
False MSAL 4.56.0.0 MSAL.CoreCLR .NET Framework 4.8.4718.0 Microsoft Windows 10.0.20348 [2024-05-02 19:55:18Z]
[MSAL:0002] WARNING ReadAccountById:193 Account id is empty - account not found
False MSAL 4.56.0.0 MSAL.CoreCLR .NET Framework 4.8.4718.0 Microsoft Windows 10.0.20348 [2024-05-02 19:55:18Z]
[MSAL:0003] ERROR ErrorInternalImpl:134 Created an error: 55xnl, StatusInternal::Unexpected, InternalEvent::None,
Error Code -2147221164, Context 'Unexpected exception while waiting for accounts control to finish: '(pii)''
False MSAL 4.56.0.0 MSAL.CoreCLR .NET Framework 4.8.4718.0 Microsoft Windows 10.0.20348 [2024-05-02 19:55:18Z]
[MSAL:0003] ERROR ErrorInternalImpl:134 Created an error: 55xnl, StatusInternal::Unexpected, InternalEvent::None,
Error Code -2147221164, Context 'Unexpected exception while waiting for accounts control to finish: '(pii)''
False MSAL 4.56.0.0 MSAL.CoreCLR .NET Framework 4.8.4718.0 Microsoft Windows 10.0.20348 [2024-05-02 19:55:18Z]
[MSAL:0003] INFO LogTelemetryData:299 Printing Telemetry for Correlation ID: 7c65fa63-7ea9-4eab-880b-0b91366600b8
False MSAL 4.56.0.0 MSAL.CoreCLR .NET Framework 4.8.4718.0 Microsoft Windows 10.0.20348 [2024-05-02 19:55:18Z]
[MSAL:0003] INFO LogTelemetryData:299 Printing Telemetry for Correlation ID: 7c65fa63-7ea9-4eab-880b-0b91366600b8
False MSAL 4.56.0.0 MSAL.CoreCLR .NET Framework 4.8.4718.0 Microsoft Windows 10.0.20348 [2024-05-02 19:55:18Z]
[MSAL:0003] INFO LogTelemetryData:307 Key: start_time, Value: 2024-05-02T19:55:18.000Z
False MSAL 4.56.0.0 MSAL.CoreCLR .NET Framework 4.8.4718.0 Microsoft Windows 10.0.20348 [2024-05-02 19:55:18Z]
[MSAL:0003] INFO LogTelemetryData:307 Key: start_time, Value: 2024-05-02T19:55:18.000Z
False MSAL 4.56.0.0 MSAL.CoreCLR .NET Framework 4.8.4718.0 Microsoft Windows 10.0.20348 [2024-05-02 19:55:18Z]
[MSAL:0003] INFO LogTelemetryData:307 Key: api_name, Value: SignInInteractively
False MSAL 4.56.0.0 MSAL.CoreCLR .NET Framework 4.8.4718.0 Microsoft Windows 10.0.20348 [2024-05-02 19:55:18Z]
[MSAL:0003] INFO LogTelemetryData:307 Key: api_name, Value: SignInInteractively
False MSAL 4.56.0.0 MSAL.CoreCLR .NET Framework 4.8.4718.0 Microsoft Windows 10.0.20348 [2024-05-02 19:55:18Z]
[MSAL:0003] INFO LogTelemetryData:307 Key: was_request_throttled, Value: false
False MSAL 4.56.0.0 MSAL.CoreCLR .NET Framework 4.8.4718.0 Microsoft Windows 10.0.20348 [2024-05-02 19:55:18Z]
[MSAL:0003] INFO LogTelemetryData:307 Key: was_request_throttled, Value: false
False MSAL 4.56.0.0 MSAL.CoreCLR .NET Framework 4.8.4718.0 Microsoft Windows 10.0.20348 [2024-05-02 19:55:18Z]
[MSAL:0003] INFO LogTelemetryData:307 Key: authority_type, Value: Unknown
False MSAL 4.56.0.0 MSAL.CoreCLR .NET Framework 4.8.4718.0 Microsoft Windows 10.0.20348 [2024-05-02 19:55:18Z]
[MSAL:0003] INFO LogTelemetryData:307 Key: authority_type, Value: Unknown
False MSAL 4.56.0.0 MSAL.CoreCLR .NET Framework 4.8.4718.0 Microsoft Windows 10.0.20348 [2024-05-02 19:55:18Z]
[MSAL:0003] INFO LogTelemetryData:307 Key: msal_version, Value: 1.0.0+local
False MSAL 4.56.0.0 MSAL.CoreCLR .NET Framework 4.8.4718.0 Microsoft Windows 10.0.20348 [2024-05-02 19:55:18Z]
[MSAL:0003] INFO LogTelemetryData:307 Key: msal_version, Value: 1.0.0+local
False MSAL 4.56.0.0 MSAL.CoreCLR .NET Framework 4.8.4718.0 Microsoft Windows 10.0.20348 [2024-05-02 19:55:18Z]
[MSAL:0003] INFO LogTelemetryData:307 Key: api_status_code, Value: StatusInternal::Unexpected
False MSAL 4.56.0.0 MSAL.CoreCLR .NET Framework 4.8.4718.0 Microsoft Windows 10.0.20348 [2024-05-02 19:55:18Z]
[MSAL:0003] INFO LogTelemetryData:307 Key: api_status_code, Value: StatusInternal::Unexpected
False MSAL 4.56.0.0 MSAL.CoreCLR .NET Framework 4.8.4718.0 Microsoft Windows 10.0.20348 [2024-05-02 19:55:18Z]
[MSAL:0003] INFO LogTelemetryData:307 Key: client_id, Value: 1950a258-227b-4e31-a9cf-717495945fc2
False MSAL 4.56.0.0 MSAL.CoreCLR .NET Framework 4.8.4718.0 Microsoft Windows 10.0.20348 [2024-05-02 19:55:18Z]
[MSAL:0003] INFO LogTelemetryData:307 Key: client_id, Value: 1950a258-227b-4e31-a9cf-717495945fc2
False MSAL 4.56.0.0 MSAL.CoreCLR .NET Framework 4.8.4718.0 Microsoft Windows 10.0.20348 [2024-05-02 19:55:18Z]
[MSAL:0003] INFO LogTelemetryData:307 Key: correlation_id, Value: 7c65fa63-7ea9-4eab-880b-0b91366600b8
False MSAL 4.56.0.0 MSAL.CoreCLR .NET Framework 4.8.4718.0 Microsoft Windows 10.0.20348 [2024-05-02 19:55:18Z]
[MSAL:0003] INFO LogTelemetryData:307 Key: correlation_id, Value: 7c65fa63-7ea9-4eab-880b-0b91366600b8
False MSAL 4.56.0.0 MSAL.CoreCLR .NET Framework 4.8.4718.0 Microsoft Windows 10.0.20348 [2024-05-02 19:55:18Z]
[MSAL:0003] INFO LogTelemetryData:307 Key: stop_time, Value: 2024-05-02T19:55:18.000Z
False MSAL 4.56.0.0 MSAL.CoreCLR .NET Framework 4.8.4718.0 Microsoft Windows 10.0.20348 [2024-05-02 19:55:18Z]
[MSAL:0003] INFO LogTelemetryData:307 Key: stop_time, Value: 2024-05-02T19:55:18.000Z
False MSAL 4.56.0.0 MSAL.CoreCLR .NET Framework 4.8.4718.0 Microsoft Windows 10.0.20348 [2024-05-02 19:55:18Z]
[MSAL:0003] INFO LogTelemetryData:307 Key: all_error_tags, Value: 55xnl
False MSAL 4.56.0.0 MSAL.CoreCLR .NET Framework 4.8.4718.0 Microsoft Windows 10.0.20348 [2024-05-02 19:55:18Z]
[MSAL:0003] INFO LogTelemetryData:307 Key: all_error_tags, Value: 55xnl
False MSAL 4.56.0.0 MSAL.CoreCLR .NET Framework 4.8.4718.0 Microsoft Windows 10.0.20348 [2024-05-02 19:55:18Z]
[MSAL:0003] INFO LogTelemetryData:307 Key: msalruntime_version, Value: 0.13.3
False MSAL 4.56.0.0 MSAL.CoreCLR .NET Framework 4.8.4718.0 Microsoft Windows 10.0.20348 [2024-05-02 19:55:18Z]
[MSAL:0003] INFO LogTelemetryData:307 Key: msalruntime_version, Value: 0.13.3
False MSAL 4.56.0.0 MSAL.CoreCLR .NET Framework 4.8.4718.0 Microsoft Windows 10.0.20348 [2024-05-02 19:55:18Z]
[MSAL:0003] INFO LogTelemetryData:307 Key: original_authority, Value:
https://login.microsoftonline.com/organizations
False MSAL 4.56.0.0 MSAL.CoreCLR .NET Framework 4.8.4718.0 Microsoft Windows 10.0.20348 [2024-05-02 19:55:18Z]
[MSAL:0003] INFO LogTelemetryData:307 Key: original_authority, Value:
https://login.microsoftonline.com/organizations
False MSAL 4.56.0.0 MSAL.CoreCLR .NET Framework 4.8.4718.0 Microsoft Windows 10.0.20348 [2024-05-02 19:55:18Z]
[MSAL:0003] INFO LogTelemetryData:307 Key: request_eligible_for_broker, Value: true
False MSAL 4.56.0.0 MSAL.CoreCLR .NET Framework 4.8.4718.0 Microsoft Windows 10.0.20348 [2024-05-02 19:55:18Z]
[MSAL:0003] INFO LogTelemetryData:307 Key: request_eligible_for_broker, Value: true
False MSAL 4.56.0.0 MSAL.CoreCLR .NET Framework 4.8.4718.0 Microsoft Windows 10.0.20348 [2024-05-02 19:55:18Z]
[MSAL:0003] INFO LogTelemetryData:307 Key: broker_app_used, Value: false
False MSAL 4.56.0.0 MSAL.CoreCLR .NET Framework 4.8.4718.0 Microsoft Windows 10.0.20348 [2024-05-02 19:55:18Z]
[MSAL:0003] INFO LogTelemetryData:307 Key: broker_app_used, Value: false
False MSAL 4.56.0.0 MSAL.CoreCLR .NET Framework 4.8.4718.0 Microsoft Windows 10.0.20348 [2024-05-02 19:55:18Z]
[MSAL:0003] INFO LogTelemetryData:307 Key: additional_query_parameters_count, Value: 1
False MSAL 4.56.0.0 MSAL.CoreCLR .NET Framework 4.8.4718.0 Microsoft Windows 10.0.20348 [2024-05-02 19:55:18Z]
[MSAL:0003] INFO LogTelemetryData:307 Key: additional_query_parameters_count, Value: 1
False MSAL 4.56.0.0 MSAL.CoreCLR .NET Framework 4.8.4718.0 Microsoft Windows 10.0.20348 [2024-05-02 19:55:18Z]
[MSAL:0003] INFO LogTelemetryData:307 Key: read_token_last_error, Value: missing required parameter
False MSAL 4.56.0.0 MSAL.CoreCLR .NET Framework 4.8.4718.0 Microsoft Windows 10.0.20348 [2024-05-02 19:55:18Z]
[MSAL:0003] INFO LogTelemetryData:307 Key: read_token_last_error, Value: missing required parameter
False MSAL 4.56.0.0 MSAL.CoreCLR .NET Framework 4.8.4718.0 Microsoft Windows 10.0.20348 [2024-05-02 19:55:18Z]
[MSAL:0003] INFO LogTelemetryData:307 Key: ui_event_count, Value: 1
False MSAL 4.56.0.0 MSAL.CoreCLR .NET Framework 4.8.4718.0 Microsoft Windows 10.0.20348 [2024-05-02 19:55:18Z]
[MSAL:0003] INFO LogTelemetryData:307 Key: ui_event_count, Value: 1
False MSAL 4.56.0.0 MSAL.CoreCLR .NET Framework 4.8.4718.0 Microsoft Windows 10.0.20348 [2024-05-02 19:55:18Z]
[MSAL:0003] INFO LogTelemetryData:307 Key: authorization_type, Value: Interactive
False MSAL 4.56.0.0 MSAL.CoreCLR .NET Framework 4.8.4718.0 Microsoft Windows 10.0.20348 [2024-05-02 19:55:18Z]
[MSAL:0003] INFO LogTelemetryData:307 Key: authorization_type, Value: Interactive
False MSAL 4.56.0.0 MSAL.CoreCLR .NET Framework 4.8.4718.0 Microsoft Windows 10.0.20348 [2024-05-02 19:55:18Z]
[MSAL:0003] INFO LogTelemetryData:307 Key: api_error_code, Value: -2147221164
False MSAL 4.56.0.0 MSAL.CoreCLR .NET Framework 4.8.4718.0 Microsoft Windows 10.0.20348 [2024-05-02 19:55:18Z]
[MSAL:0003] INFO LogTelemetryData:307 Key: api_error_code, Value: -2147221164
False MSAL 4.56.0.0 MSAL.CoreCLR .NET Framework 4.8.4718.0 Microsoft Windows 10.0.20348 [2024-05-02 19:55:18Z]
[MSAL:0003] INFO LogTelemetryData:307 Key: api_error_tag, Value: 55xnl
False MSAL 4.56.0.0 MSAL.CoreCLR .NET Framework 4.8.4718.0 Microsoft Windows 10.0.20348 [2024-05-02 19:55:18Z]
[MSAL:0003] INFO LogTelemetryData:307 Key: api_error_tag, Value: 55xnl
False MSAL 4.56.0.0 MSAL.CoreCLR .NET Framework 4.8.4718.0 Microsoft Windows 10.0.20348 [2024-05-02 19:55:18Z]
[MSAL:0003] INFO LogTelemetryData:307 Key: api_error_context, Value: Unexpected exception while waiting for
accounts control to finish: '(pii)'
False MSAL 4.56.0.0 MSAL.CoreCLR .NET Framework 4.8.4718.0 Microsoft Windows 10.0.20348 [2024-05-02 19:55:18Z]
[MSAL:0003] INFO LogTelemetryData:307 Key: api_error_context, Value: Unexpected exception while waiting for
accounts control to finish: '(pii)'
False MSAL 4.56.0.0 MSAL.CoreCLR .NET Framework 4.8.4718.0 Microsoft Windows 10.0.20348 [2024-05-02 19:55:18Z]
[MSAL:0003] INFO LogTelemetryData:307 Key: is_successful, Value: false
False MSAL 4.56.0.0 MSAL.CoreCLR .NET Framework 4.8.4718.0 Microsoft Windows 10.0.20348 [2024-05-02 19:55:18Z]
[MSAL:0003] INFO LogTelemetryData:307 Key: is_successful, Value: false
False MSAL 4.56.0.0 MSAL.CoreCLR .NET Framework 4.8.4718.0 Microsoft Windows 10.0.20348 [2024-05-02 19:55:18Z]
[MSAL:0003] INFO LogTelemetryData:307 Key: request_duration, Value: 55
False MSAL 4.56.0.0 MSAL.CoreCLR .NET Framework 4.8.4718.0 Microsoft Windows 10.0.20348 [2024-05-02 19:55:18Z]
[MSAL:0003] INFO LogTelemetryData:307 Key: request_duration, Value: 55
False MSAL 4.56.0.0 MSAL.CoreCLR .NET Framework 4.8.4718.0 Microsoft Windows 10.0.20348 [2024-05-02 19:55:18Z]
[MSAL:0003] INFO LogTelemetryData:312 Printing Execution Flow:
False MSAL 4.56.0.0 MSAL.CoreCLR .NET Framework 4.8.4718.0 Microsoft Windows 10.0.20348 [2024-05-02 19:55:18Z]
[MSAL:0003] INFO LogTelemetryData:312 Printing Execution Flow:
False MSAL 4.56.0.0 MSAL.CoreCLR .NET Framework 4.8.4718.0 Microsoft Windows 10.0.20348 [2024-05-02 19:55:18Z]
[MSAL:0003] INFO LogTelemetryData:318 {"t":"646u1","tid":1,"ts":0},{"t":"8dqim","tid":2,"ts":2},{"t":"8dqkl","tid":1
,"ts":2,"a":9,"ie":0},{"t":"54uxd","tid":1,"ts":3},{"t":"8dqkn","tid":3,"ts":55,"a":5,"ie":1},{"t":"8dqko","tid":3,"ts"
:55,"a":9,"ie":1},{"t":"646u1","tid":3,"ts":55}
False MSAL 4.56.0.0 MSAL.CoreCLR .NET Framework 4.8.4718.0 Microsoft Windows 10.0.20348 [2024-05-02 19:55:18Z]
[MSAL:0003] INFO LogTelemetryData:318 {"t":"646u1","tid":1,"ts":0},{"t":"8dqim","tid":2,"ts":2},{"t":"8dqkl","tid":1
,"ts":2,"a":9,"ie":0},{"t":"54uxd","tid":1,"ts":3},{"t":"8dqkn","tid":3,"ts":55,"a":5,"ie":1},{"t":"8dqko","tid":3,"ts"
:55,"a":9,"ie":1},{"t":"646u1","tid":3,"ts":55}
False MSAL 4.56.0.0 MSAL.CoreCLR .NET Framework 4.8.4718.0 Microsoft Windows 10.0.20348 [2024-05-02 19:55:18Z]
[RuntimeBroker] Could not sign in interactively. Status: Unexpected
Error: 0xffffffff80040154
Context: Unexpected exception while waiting for accounts control to finish: '(pii)'
Tag: 0x1f7d734b
False MSAL 4.56.0.0 MSAL.CoreCLR .NET Framework 4.8.4718.0 Microsoft Windows 10.0.20348 [2024-05-02 19:55:18Z]
[RuntimeBroker] Processing WAM exception
False MSAL 4.56.0.0 MSAL.CoreCLR .NET Framework 4.8.4718.0 Microsoft Windows 10.0.20348 [2024-05-02 19:55:18Z -
7c65fa63-7ea9-4eab-880b-0b91366600b8] Exception type: Microsoft.Identity.Client.MsalServiceException
, ErrorCode: unknown_broker_error
HTTP StatusCode 0
CorrelationId

at Microsoft.Identity.Client.Platforms.Features.RuntimeBroker.WamAdapters.HandleResponse(AuthResult authResult,
AuthenticationRequestParameters authenticationRequestParameters, ILoggerAdapter logger, String errorMessage)
at
Microsoft.Identity.Client.Platforms.Features.RuntimeBroker.RuntimeBroker.d__13.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at
Microsoft.Identity.Client.Platforms.Features.RuntimeBroker.RuntimeBroker.d__12.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.Identity.Client.Internal.Broker.BrokerInteractiveRequestComponent.d__9.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.Identity.Client.Internal.Requests.InteractiveRequest.d__10.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.Identity.Client.Internal.Requests.InteractiveRequest.d__11.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.Identity.Client.Internal.Requests.InteractiveRequest.d__9.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.Identity.Client.Internal.Requests.RequestBase.d__12.MoveNext()
InteractiveBrowserCredential.Authenticate was unable to retrieve an access token. Scopes: [
https://management.core.windows.net//.default ] ParentRequestId: Exception:
Azure.Identity.AuthenticationFailedException (0x80131500): InteractiveBrowserCredential authentication failed: Unknown
Status: Unexpected
Error: 0xffffffff80040154
Context: Unexpected exception while waiting for accounts control to finish: '(pii)'
Tag: 0x1f7d734b (error code -2147221164) (internal error code 528315211)
---> Microsoft.Identity.Client.MsalServiceException (0x80131500): Unknown Status: Unexpected
Error: 0xffffffff80040154
Context: Unexpected exception while waiting for accounts control to finish: '(pii)'
Tag: 0x1f7d734b (error code -2147221164) (internal error code 528315211)
Unable to acquire token for tenant 'organizations' with error 'InteractiveBrowserCredential authentication failed:
Unknown Status: Unexpected
Error: 0xffffffff80040154
Context: Unexpected exception while waiting for accounts control to finish: '(pii)'
Tag: 0x1f7d734b (error code -2147221164) (internal error code 528315211)'
2:55:18 PM - Unable to acquire token for tenant 'organizations' with error
'Azure.Identity.AuthenticationFailedException: InteractiveBrowserCredential authentication failed: Unknown Status:
Unexpected
Error: 0xffffffff80040154
Context: Unexpected exception while waiting for accounts control to finish: '(pii)'
Tag: 0x1f7d734b (error code -2147221164) (internal error code 528315211) --->
Microsoft.Identity.Client.MsalServiceException: Unknown Status: Unexpected
Error: 0xffffffff80040154
Context: Unexpected exception while waiting for accounts control to finish: '(pii)'
Tag: 0x1f7d734b (error code -2147221164) (internal error code 528315211)
at Microsoft.Identity.Client.Platforms.Features.RuntimeBroker.WamAdapters.HandleResponse(AuthResult authResult,
AuthenticationRequestParameters authenticationRequestParameters, ILoggerAdapter logger, String errorMessage)
at
Microsoft.Identity.Client.Platforms.Features.RuntimeBroker.RuntimeBroker.d__13.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at
Microsoft.Identity.Client.Platforms.Features.RuntimeBroker.RuntimeBroker.d__12.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.Identity.Client.Internal.Broker.BrokerInteractiveRequestComponent.d__9.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.Identity.Client.Internal.Requests.InteractiveRequest.d__10.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.Identity.Client.Internal.Requests.InteractiveRequest.d__11.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.Identity.Client.Internal.Requests.InteractiveRequest.d__9.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.Identity.Client.Internal.Requests.RequestBase.d__12.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.Identity.Client.ApiConfig.Executors.PublicClientExecutor.d__2.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Azure.Identity.AbstractAcquireTokenParameterBuilderExtensions.d__0`1.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Azure.Identity.MsalPublicClient.d__15.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Azure.Identity.MsalPublicClient.d__14.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Azure.Identity.InteractiveBrowserCredential.d__47.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Azure.Identity.InteractiveBrowserCredential.d__45.MoveNext()
--- End of inner exception stack trace ---
at Azure.Identity.CredentialDiagnosticScope.FailWrapAndThrow(Exception ex, String additionalMessage, Boolean
isCredentialUnavailable)
at Azure.Identity.InteractiveBrowserCredential.d__45.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Azure.Identity.InteractiveBrowserCredential.d__42.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.Azure.PowerShell.Authenticators.MsalAccessToken.d__34.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at Microsoft.Azure.Commands.Common.Authentication.Factories.AuthenticationFactory.Authenticate(IAzureAccount
account, IAzureEnvironment environment, String tenant, SecureString password, String promptBehavior, Action`1
promptAction, IAzureTokenCache tokenCache, String resourceId)
at Microsoft.Azure.Commands.ResourceManager.Common.RMProfileClient.AcquireAccessToken(IAzureAccount account,
IAzureEnvironment environment, String tenantId, SecureString password, String promptBehavior, Action`1 promptAction,
String resourceId)
at Microsoft.Azure.Commands.ResourceManager.Common.RMProfileClient.ListAccountTenants(IAzureAccount account,
IAzureEnvironment environment, SecureString password, String promptBehavior, Action`1 promptAction)'
Please run 'Connect-AzAccount -DeviceCode' if browser is not supported in this session.
Azure.Identity.AuthenticationFailedException: InteractiveBrowserCredential authentication failed: Unknown Status:
Unexpected
Error: 0xffffffff80040154
Context: Unexpected exception while waiting for accounts control to finish: '(pii)'
Tag: 0x1f7d734b (error code -2147221164) (internal error code 528315211) --->
Microsoft.Identity.Client.MsalServiceException: Unknown Status: Unexpected
Error: 0xffffffff80040154
Context: Unexpected exception while waiting for accounts control to finish: '(pii)'
Tag: 0x1f7d734b (error code -2147221164) (internal error code 528315211)
at Microsoft.Identity.Client.Platforms.Features.RuntimeBroker.WamAdapters.HandleResponse(AuthResult authResult,
AuthenticationRequestParameters authenticationRequestParameters, ILoggerAdapter logger, String errorMessage)
at
Microsoft.Identity.Client.Platforms.Features.RuntimeBroker.RuntimeBroker.d__13.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at
Microsoft.Identity.Client.Platforms.Features.RuntimeBroker.RuntimeBroker.d__12.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.Identity.Client.Internal.Broker.BrokerInteractiveRequestComponent.d__9.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.Identity.Client.Internal.Requests.InteractiveRequest.d__10.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.Identity.Client.Internal.Requests.InteractiveRequest.d__11.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.Identity.Client.Internal.Requests.InteractiveRequest.d__9.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.Identity.Client.Internal.Requests.RequestBase.d__12.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.Identity.Client.ApiConfig.Executors.PublicClientExecutor.d__2.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Azure.Identity.AbstractAcquireTokenParameterBuilderExtensions.d__0`1.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Azure.Identity.MsalPublicClient.d__15.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Azure.Identity.MsalPublicClient.d__14.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Azure.Identity.InteractiveBrowserCredential.d__47.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Azure.Identity.InteractiveBrowserCredential.d__45.MoveNext()
--- End of inner exception stack trace ---
at Azure.Identity.CredentialDiagnosticScope.FailWrapAndThrow(Exception ex, String additionalMessage, Boolean
isCredentialUnavailable)
at Azure.Identity.InteractiveBrowserCredential.d__45.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Azure.Identity.InteractiveBrowserCredential.d__42.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.Azure.PowerShell.Authenticators.MsalAccessToken.d__34.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at Microsoft.Azure.Commands.Common.Authentication.Factories.AuthenticationFactory.Authenticate(IAzureAccount
account, IAzureEnvironment environment, String tenant, SecureString password, String promptBehavior, Action`1
promptAction, IAzureTokenCache tokenCache, String resourceId)
at Microsoft.Azure.Commands.ResourceManager.Common.RMProfileClient.AcquireAccessToken(IAzureAccount account,
IAzureEnvironment environment, String tenantId, SecureString password, String promptBehavior, Action`1 promptAction,
String resourceId)
at Microsoft.Azure.Commands.ResourceManager.Common.RMProfileClient.ListAccountTenants(IAzureAccount account,
IAzureEnvironment environment, SecureString password, String promptBehavior, Action`1 promptAction)
at Microsoft.Azure.Commands.ResourceManager.Common.RMProfileClient.Login(IAzureAccount account, IAzureEnvironment
environment, String tenantIdOrName, String subscriptionId, String subscriptionName, SecureString password, Boolean
skipValidation, IOpenIDConfiguration openIDConfigDoc, Action`1 promptAction, String name, Boolean
shouldPopulateContextList, Int32 maxContextPopulation, String authScope)
at Microsoft.Azure.Commands.Profile.ConnectAzureRmAccountCommand.<>c__DisplayClass134_2.b__5()
at System.Threading.Tasks.Task`1.InnerInvoke()
at System.Threading.Tasks.Task.Execute()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.Azure.Commands.Profile.ConnectAzureRmAccountCommand.<>c__DisplayClass134_1.b__1(AzureRmP
rofile localProfile, RMProfileClient profileClient, String name)
2:55:18 PM - [ConfigManager] Got nothing from [DisableErrorRecordsPersistence], Module = [], Cmdlet = []. Returning
default value [False].
2:55:18 PM - [ConfigManager] Got nothing from [EnableDataCollection], Module = [], Cmdlet = []. Returning default
value [True].
Connect-AzAccount : InteractiveBrowserCredential authentication failed: Unknown Status: Unexpected
Error: 0xffffffff80040154
Context: Unexpected exception while waiting for accounts control to finish: '(pii)'
Tag: 0x1f7d734b (error code -2147221164) (internal error code 528315211)
At line:1 char:1
+ Connect-AzAccount *> c:\tmp\az-debug2.txt
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : CloseError: (:) [Connect-AzAccount], AuthenticationFailedException
+ FullyQualifiedErrorId : Microsoft.Azure.Commands.Profile.ConnectAzureRmAccountCommand

2:55:18 PM - [ConfigManager] Got nothing from [DisplayBreakingChangeWarning], Module = [], Cmdlet = []. Returning
default value [True].
2:55:18 PM - [ConfigManager] Got nothing from [DisplayRegionIdentified], Module = [], Cmdlet = []. Returning default
value [True].
2:55:18 PM - [ConfigManager] Got nothing from [CheckForUpgrade], Module = [], Cmdlet = []. Returning default value
[True].
AzureQoSEvent: Module: Az.Accounts:2.19.0; CommandName: Connect-AzAccount; PSVersion: 5.1.20348.2400; IsSuccess:
False; Duration: 00:00:01.1955647; SanitizeDuration: 00:00:00; Exception: InteractiveBrowserCredential authentication
failed: Unknown Status: Unexpected
Error: 0xffffffff80040154
Context: Unexpected exception while waiting for accounts control to finish: '(pii)'
Tag: 0x1f7d734b (error code -2147221164) (internal error code 528315211);
2:55:18 PM - ConnectAzureRmAccountCommand end processing.
```

### Environment data

```PowerShell
Name Value
---- -----
PSVersion 5.1.20348.2400
PSEdition Desktop
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0...}
BuildVersion 10.0.20348.2400
CLRVersion 4.0.30319.42000
WSManStackVersion 3.0
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1
```

### Module versions

```PowerShell
Directory: C:\Program Files\WindowsPowerShell\Modules

ModuleType Version Name ExportedCommands
---------- ------- ---- ----------------
Script 11.6.0 AzPreview
```

### Error output

```PowerShell
HistoryId: 1

Message : Property NoAutoUpdate does not exist at path
HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU.
StackTrace :
Exception : System.Management.Automation.PSArgumentException
InvocationInfo : {Get-ItemProperty}
Line : $NoAutoUpdateVal = Get-ItemProperty -Path
'HKLM:\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU' -Name 'NoAutoUpdate' -ErrorAction
SilentlyContinue

Position : At C:\Windows\system32\WindowsPowerShell\v1.0\Modules\Microsoft.ServerCore.SConfig\2.0.0.0\SConfig.Upd
ate.psm1:23 char:28
+ ... UpdateVal = Get-ItemProperty -Path 'HKLM:\SOFTWARE\Policies\Microsoft ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
HistoryId : 1
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.