Skip to content

WARNING: Unable to acquire token for tenant '' with error 'Method not found: 'Void Azure.Identity.Broker.SharedTokenCacheCredentialBrokerOptions..ctor(Azure.Identity.TokenCachePersistenceOptions)'.' #27378

@rboon-ccx

Description

@rboon-ccx

Description

Running Connect-AzAccount -TenantId $tenantid -SubscriptionId $subscriptionId should connect to Azure but instead returns the error below. Running any subsequent command (e.g., Get-AzResourceGroup) fails as the login didn't work.

Tried disabling WAM and doing a Clear-AzContext. Neither resolved the issue.

Curiously, I don't seem to have this issue if I remove the Microsoft.Graph.* PS modules, so maybe a conflict of sorts?

Issue script & Debug output

PS C:\temp> $DebugPreference='Continue'
PS C:\temp> $tenantid = ""
PS C:\temp> $subscriptionid = ""
PS C:\temp> Connect-AzAccount -TenantId $tenantid -SubscriptionId $subscriptionid
DEBUG: 3:18:40 PM - [ConfigManager] Got nothing from [DisplaySecretsWarning], Module = [], Cmdlet = []. Returning
default value [True].
DEBUG: 3:18:40 PM - ConnectAzureRmAccountCommand begin processing with ParameterSet 'UserWithSubscriptionId'.
DEBUG: 3:18:40 PM - [ConfigManager] Got [False] from [DisplayBreakingChangeWarning], Module = [Az.Accounts], Cmdlet =
[Connect-AzAccount].
DEBUG: 3:18:40 PM - Autosave setting from startup session: 'CurrentUser'
DEBUG: 3:18:40 PM - No autosave setting detected in environment variable 'AzContextAutoSave'.
DEBUG: 3:18:40 PM - Using Autosave scope 'CurrentUser'
Please select the account you want to login with.

DEBUG: 3:18:40 PM - [InteractiveUserAuthenticator] Calling InteractiveBrowserCredential.AuthenticateAsync with
TenantId:'<REDACTED>', Scopes:'https://management.core.windows.net//.default',
AuthorityHost:'https://login.microsoftonline.com/', RedirectUri:'http://localhost:8400/'
DEBUG: InteractiveBrowserCredential.Authenticate invoked. Scopes: [ https://management.core.windows.net//.default ]
ParentRequestId:
DEBUG: Executing interactive authentication workflow inline.
DEBUG: False MSAL 4.65.0.0 MSAL.CoreCLR .NET Framework 4.8.9290.0 Microsoft Windows 10.0.26100  [2025-03-19 04:18:40Z -
 71d7e845-2304-4360-b016-0995d4c801a6] MSAL MSAL.CoreCLR with assembly version '4.65.0.0'.
CorrelationId(71d7e845-2304-4360-b016-0995d4c801a6)
DEBUG: False MSAL 4.65.0.0 MSAL.CoreCLR .NET Framework 4.8.9290.0 Microsoft Windows 10.0.26100  [2025-03-19 04:18:40Z -
 71d7e845-2304-4360-b016-0995d4c801a6] === InteractiveParameters Data ===
LoginHint provided: False
User provided: False
UseEmbeddedWebView: NotSpecified
ExtraScopesToConsent:
Prompt: select_account
HasCustomWebUi: False
DEBUG: False MSAL 4.65.0.0 MSAL.CoreCLR .NET Framework 4.8.9290.0 Microsoft Windows 10.0.26100  [2025-03-19 04:18:40Z -
 71d7e845-2304-4360-b016-0995d4c801a6]
=== 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 - False
HomeAccountId - False
CorrelationId - <REDACED>
UserAssertion set: False
LongRunningOboCacheKey set: False
Region configured:
DEBUG: False MSAL 4.65.0.0 MSAL.CoreCLR .NET Framework 4.8.9290.0 Microsoft Windows 10.0.26100  [2025-03-19 04:18:40Z -
 71d7e845-2304-4360-b016-0995d4c801a6] === Token Acquisition (InteractiveRequest) started:
  Scopes: https://management.core.windows.net//.default
 Authority Host: login.microsoftonline.com
DEBUG: False MSAL 4.65.0.0 MSAL.CoreCLR .NET Framework 4.8.9290.0 Microsoft Windows 10.0.26100  [2025-03-19 04:18:40Z -
 71d7e845-2304-4360-b016-0995d4c801a6] [Instance Discovery] Instance discovery is enabled and will be performed
DEBUG: False MSAL 4.65.0.0 MSAL.CoreCLR .NET Framework 4.8.9290.0 Microsoft Windows 10.0.26100  [2025-03-19 04:18:40Z -
 71d7e845-2304-4360-b016-0995d4c801a6] [Region discovery] Not using a regional authority.
DEBUG: False MSAL 4.65.0.0 MSAL.CoreCLR .NET Framework 4.8.9290.0 Microsoft Windows 10.0.26100  [2025-03-19 04:18:40Z -
 71d7e845-2304-4360-b016-0995d4c801a6] Using system browser.
DEBUG: False MSAL 4.65.0.0 MSAL.CoreCLR .NET Framework 4.8.9290.0 Microsoft Windows 10.0.26100  [2025-03-19 04:18:40Z -
 71d7e845-2304-4360-b016-0995d4c801a6] Listening for authorization code on http://localhost:8400/
DEBUG: False MSAL 4.65.0.0 MSAL.CoreCLR .NET Framework 4.8.9290.0 Microsoft Windows 10.0.26100  [2025-03-19 04:18:43Z -
 71d7e845-2304-4360-b016-0995d4c801a6] Processing a response message to the browser. HttpStatus:OK
DEBUG: False MSAL 4.65.0.0 MSAL.CoreCLR .NET Framework 4.8.9290.0 Microsoft Windows 10.0.26100  [2025-03-19 04:18:43Z -
 71d7e845-2304-4360-b016-0995d4c801a6] An authorization code was retrieved from the /authorize endpoint.
DEBUG: False MSAL 4.65.0.0 MSAL.CoreCLR .NET Framework 4.8.9290.0 Microsoft Windows 10.0.26100  [2025-03-19 04:18:43Z -
 71d7e845-2304-4360-b016-0995d4c801a6] Exchanging the auth code for tokens.
DEBUG: False MSAL 4.65.0.0 MSAL.CoreCLR .NET Framework 4.8.9290.0 Microsoft Windows 10.0.26100  [2025-03-19 04:18:43Z -
 71d7e845-2304-4360-b016-0995d4c801a6] === InteractiveParameters Data ===
LoginHint provided: False
User provided: False
UseEmbeddedWebView: NotSpecified
ExtraScopesToConsent:
Prompt: select_account
HasCustomWebUi: False
DEBUG: Request [<REDACTED>] POST
https://login.microsoftonline.com/<REDACTED>/oauth2/v2.0/token?haschrome=REDACTED
x-client-SKU:REDACTED
x-client-Ver:REDACTED
x-client-OS:REDACTED
x-anchormailbox:REDACTED
x-client-current-telemetry:REDACTED
x-ms-lib-capability:REDACTED
client-request-id:REDACTED
return-client-request-id:REDACTED
Content-Type:application/x-www-form-urlencoded
x-ms-client-request-id:<REDACTED>
x-ms-return-client-request-id:true
User-Agent:azsdk-net-Identity/1.13.0 (.NET Framework 4.8.9290.0; Microsoft Windows 10.0.26100 )
client assembly: Azure.Identity
DEBUG: Response [<REDACTED>] 200 OK (00.3s)
Pragma:no-cache
Strict-Transport-Security:REDACTED
X-Content-Type-Options:REDACTED
client-request-id:REDACTED
x-ms-request-id:<REDACTED>
x-ms-ests-server:REDACTED
x-ms-clitelem:REDACTED
x-ms-srs:REDACTED
Content-Security-Policy-Report-Only:REDACTED
X-XSS-Protection:REDACTED
Cache-Control:no-store, no-cache
P3P:REDACTED
Set-Cookie:REDACTED
Date:Wed, 19 Mar 2025 04:18:42 GMT
Content-Length:5060
Content-Type:application/json; charset=utf-8
Expires:-1
DEBUG: False MSAL 4.65.0.0 MSAL.CoreCLR .NET Framework 4.8.9290.0 Microsoft Windows 10.0.26100  [2025-03-19 04:18:43Z -
 71d7e845-2304-4360-b016-0995d4c801a6] Checking client info returned from the server..
DEBUG: False MSAL 4.65.0.0 MSAL.CoreCLR .NET Framework 4.8.9290.0 Microsoft Windows 10.0.26100  [2025-03-19 04:18:43Z -
 71d7e845-2304-4360-b016-0995d4c801a6] Saving token response to cache..
DEBUG: False MSAL 4.65.0.0 MSAL.CoreCLR .NET Framework 4.8.9290.0 Microsoft Windows 10.0.26100  [2025-03-19 04:18:43Z -
 71d7e845-2304-4360-b016-0995d4c801a6] [Region discovery] Not using a regional authority.
DEBUG: False MSAL 4.65.0.0 MSAL.CoreCLR .NET Framework 4.8.9290.0 Microsoft Windows 10.0.26100  [2025-03-19 04:18:43Z]
[Internal cache] Clearing user token cache accessor.
DEBUG: False MSAL 4.65.0.0 MSAL.CoreCLR .NET Framework 4.8.9290.0 Microsoft Windows 10.0.26100  [2025-03-19 04:18:43Z -
 71d7e845-2304-4360-b016-0995d4c801a6] [SaveTokenResponseAsync] Saving AT in cache and removing overlapping ATs...
DEBUG: False MSAL 4.65.0.0 MSAL.CoreCLR .NET Framework 4.8.9290.0 Microsoft Windows 10.0.26100  [2025-03-19 04:18:43Z -
 71d7e845-2304-4360-b016-0995d4c801a6] Looking for scopes for the authority in the cache which intersect with
https://management.core.windows.net//.default
DEBUG: False MSAL 4.65.0.0 MSAL.CoreCLR .NET Framework 4.8.9290.0 Microsoft Windows 10.0.26100  [2025-03-19 04:18:43Z]
[Internal cache] Total number of cache partitions found while getting access tokens: 1
DEBUG: False MSAL 4.65.0.0 MSAL.CoreCLR .NET Framework 4.8.9290.0 Microsoft Windows 10.0.26100  [2025-03-19 04:18:43Z -
 71d7e845-2304-4360-b016-0995d4c801a6] Intersecting scope entries count - 1
DEBUG: False MSAL 4.65.0.0 MSAL.CoreCLR .NET Framework 4.8.9290.0 Microsoft Windows 10.0.26100  [2025-03-19 04:18:43Z -
 71d7e845-2304-4360-b016-0995d4c801a6] Matching entries after filtering by user - 1
DEBUG: False MSAL 4.65.0.0 MSAL.CoreCLR .NET Framework 4.8.9290.0 Microsoft Windows 10.0.26100  [2025-03-19 04:18:43Z -
 71d7e845-2304-4360-b016-0995d4c801a6] [SaveTokenResponseAsync] Saving Id Token and Account in cache ...
DEBUG: False MSAL 4.65.0.0 MSAL.CoreCLR .NET Framework 4.8.9290.0 Microsoft Windows 10.0.26100  [2025-03-19 04:18:43Z -
 71d7e845-2304-4360-b016-0995d4c801a6] [SaveTokenResponseAsync] Saving RT in cache...
DEBUG: False MSAL 4.65.0.0 MSAL.CoreCLR .NET Framework 4.8.9290.0 Microsoft Windows 10.0.26100  [2025-03-19 04:18:43Z -
 71d7e845-2304-4360-b016-0995d4c801a6] IsLegacyAdalCacheEnabled: yes
DEBUG: False MSAL 4.65.0.0 MSAL.CoreCLR .NET Framework 4.8.9290.0 Microsoft Windows 10.0.26100  [2025-03-19 04:18:43Z -
 71d7e845-2304-4360-b016-0995d4c801a6] Not writing FRT in ADAL legacy cache.
DEBUG: False MSAL 4.65.0.0 MSAL.CoreCLR .NET Framework 4.8.9290.0 Microsoft Windows 10.0.26100  [2025-03-19 04:18:43Z]
[Internal cache] Total number of cache partitions found while getting refresh tokens: 1
DEBUG: False MSAL 4.65.0.0 MSAL.CoreCLR .NET Framework 4.8.9290.0 Microsoft Windows 10.0.26100  [2025-03-19 04:18:43Z]
[Internal cache] Total number of cache partitions found while getting access tokens: 1
DEBUG: False MSAL 4.65.0.0 MSAL.CoreCLR .NET Framework 4.8.9290.0 Microsoft Windows 10.0.26100  [2025-03-19 04:18:43Z]
[Internal cache] Total number of cache partitions found while getting refresh tokens: 1
DEBUG: False MSAL 4.65.0.0 MSAL.CoreCLR .NET Framework 4.8.9290.0 Microsoft Windows 10.0.26100  [2025-03-19 04:18:43Z -
 71d7e845-2304-4360-b016-0995d4c801a6]
 === Token Acquisition finished successfully:
DEBUG: False MSAL 4.65.0.0 MSAL.CoreCLR .NET Framework 4.8.9290.0 Microsoft Windows 10.0.26100  [2025-03-19 04:18:43Z -
 71d7e845-2304-4360-b016-0995d4c801a6]  AT expiration time: 19/03/2025 5:41:14 AM +00:00, scopes:
https://management.core.windows.net//.default https://management.core.windows.net//user_impersonation. source:
IdentityProvider
DEBUG: False MSAL 4.65.0.0 MSAL.CoreCLR .NET Framework 4.8.9290.0 Microsoft Windows 10.0.26100  [2025-03-19 04:18:43Z -
 71d7e845-2304-4360-b016-0995d4c801a6] Fetched access token from host login.microsoftonline.com.
DEBUG: False MSAL 4.65.0.0 MSAL.CoreCLR .NET Framework 4.8.9290.0 Microsoft Windows 10.0.26100  [2025-03-19 04:18:43Z -
 71d7e845-2304-4360-b016-0995d4c801a6]
[LogMetricsFromAuthResult] Cache Refresh Reason: NotApplicable
[LogMetricsFromAuthResult] DurationInCacheInMs: 13
[LogMetricsFromAuthResult] DurationTotalInMs: 222
[LogMetricsFromAuthResult] DurationInHttpInMs: 339
DEBUG: False MSAL 4.65.0.0 MSAL.CoreCLR .NET Framework 4.8.9290.0 Microsoft Windows 10.0.26100  [2025-03-19 04:18:43Z -
 71d7e845-2304-4360-b016-0995d4c801a6] TokenEndpoint: ****
DEBUG: InteractiveBrowserCredential.Authenticate succeeded. Scopes: [ https://management.core.windows.net//.default ]
ParentRequestId:  ExpiresOn: 2025-03-19T05:41:14.7592183+00:00
DEBUG: 3:18:43 PM - [MsalAccessToken] Calling InteractiveBrowserCredential.GetTokenAsync -
Scopes:'https://management.core.windows.net//.default'
DEBUG: InteractiveBrowserCredential.GetToken invoked. Scopes: [ https://management.core.windows.net//.default ]
ParentRequestId:
DEBUG: False MSAL 4.65.0.0 MSAL.CoreCLR .NET Framework 4.8.9290.0 Microsoft Windows 10.0.26100  [2025-03-19 04:18:43Z -
 d90926fd-3be4-4174-be2a-02f3be6c9f80] MSAL MSAL.CoreCLR with assembly version '4.65.0.0'.
CorrelationId(d90926fd-3be4-4174-be2a-02f3be6c9f80)
DEBUG: False MSAL 4.65.0.0 MSAL.CoreCLR .NET Framework 4.8.9290.0 Microsoft Windows 10.0.26100  [2025-03-19 04:18:43Z -
 d90926fd-3be4-4174-be2a-02f3be6c9f80] === AcquireTokenSilent Parameters ===
DEBUG: False MSAL 4.65.0.0 MSAL.CoreCLR .NET Framework 4.8.9290.0 Microsoft Windows 10.0.26100  [2025-03-19 04:18:43Z -
 d90926fd-3be4-4174-be2a-02f3be6c9f80] LoginHint provided: False
DEBUG: False MSAL 4.65.0.0 MSAL.CoreCLR .NET Framework 4.8.9290.0 Microsoft Windows 10.0.26100  [2025-03-19 04:18:43Z -
 d90926fd-3be4-4174-be2a-02f3be6c9f80] Account provided: True
DEBUG: False MSAL 4.65.0.0 MSAL.CoreCLR .NET Framework 4.8.9290.0 Microsoft Windows 10.0.26100  [2025-03-19 04:18:43Z -
 d90926fd-3be4-4174-be2a-02f3be6c9f80] ForceRefresh: False
DEBUG: False MSAL 4.65.0.0 MSAL.CoreCLR .NET Framework 4.8.9290.0 Microsoft Windows 10.0.26100  [2025-03-19 04:18:43Z -
 d90926fd-3be4-4174-be2a-02f3be6c9f80]
=== Request Data ===
Authority Provided? - True
Scopes - https://management.core.windows.net//.default
Extra Query Params Keys (space separated) - haschrome
ApiId - AcquireTokenSilent
IsConfidentialClient - False
SendX5C - False
LoginHint ? False
IsBrokerConfigured - False
HomeAccountId - False
CorrelationId - <REDACTED>
UserAssertion set: False
LongRunningOboCacheKey set: False
Region configured:
DEBUG: False MSAL 4.65.0.0 MSAL.CoreCLR .NET Framework 4.8.9290.0 Microsoft Windows 10.0.26100  [2025-03-19 04:18:43Z -
 d90926fd-3be4-4174-be2a-02f3be6c9f80] === Token Acquisition (SilentRequest) started:
  Scopes: https://management.core.windows.net//.default
 Authority Host: login.microsoftonline.com
DEBUG: False MSAL 4.65.0.0 MSAL.CoreCLR .NET Framework 4.8.9290.0 Microsoft Windows 10.0.26100  [2025-03-19 04:18:43Z]
[Internal cache] Clearing user token cache accessor.
DEBUG: False MSAL 4.65.0.0 MSAL.CoreCLR .NET Framework 4.8.9290.0 Microsoft Windows 10.0.26100  [2025-03-19 04:18:43Z -
 d90926fd-3be4-4174-be2a-02f3be6c9f80] [Internal cache] Total number of cache partitions found while getting access
tokens: 1
DEBUG: False MSAL 4.65.0.0 MSAL.CoreCLR .NET Framework 4.8.9290.0 Microsoft Windows 10.0.26100  [2025-03-19 04:18:43Z -
 d90926fd-3be4-4174-be2a-02f3be6c9f80] [FindAccessTokenAsync] Discovered 1 access tokens in cache using partition key:
db2aec1c-77d9-4121-bd9f-35d8f9d4c389.d7a0631f-6d03-435f-a80e-764129e5d298
DEBUG: False MSAL 4.65.0.0 MSAL.CoreCLR .NET Framework 4.8.9290.0 Microsoft Windows 10.0.26100  [2025-03-19 04:18:43Z -
 d90926fd-3be4-4174-be2a-02f3be6c9f80] [Region discovery] Not using a regional authority.
DEBUG: False MSAL 4.65.0.0 MSAL.CoreCLR .NET Framework 4.8.9290.0 Microsoft Windows 10.0.26100  [2025-03-19 04:18:43Z -
 d90926fd-3be4-4174-be2a-02f3be6c9f80] Access token is not expired. Returning the found cache entry. [Current time
(03/19/2025 04:18:43) - Expiration Time (03/19/2025 05:41:14 +00:00) - Extended Expiration Time (03/19/2025 05:41:14
+00:00)]
DEBUG: False MSAL 4.65.0.0 MSAL.CoreCLR .NET Framework 4.8.9290.0 Microsoft Windows 10.0.26100  [2025-03-19 04:18:43Z -
 d90926fd-3be4-4174-be2a-02f3be6c9f80] Returning access token found in cache. RefreshOn exists ? False
DEBUG: False MSAL 4.65.0.0 MSAL.CoreCLR .NET Framework 4.8.9290.0 Microsoft Windows 10.0.26100  [2025-03-19 04:18:43Z -
 d90926fd-3be4-4174-be2a-02f3be6c9f80] [Region discovery] Not using a regional authority.
DEBUG: False MSAL 4.65.0.0 MSAL.CoreCLR .NET Framework 4.8.9290.0 Microsoft Windows 10.0.26100  [2025-03-19 04:18:43Z -
 d90926fd-3be4-4174-be2a-02f3be6c9f80]
 === Token Acquisition finished successfully:
DEBUG: False MSAL 4.65.0.0 MSAL.CoreCLR .NET Framework 4.8.9290.0 Microsoft Windows 10.0.26100  [2025-03-19 04:18:43Z -
 d90926fd-3be4-4174-be2a-02f3be6c9f80]  AT expiration time: 19/03/2025 5:41:14 AM +00:00, scopes:
https://management.core.windows.net//.default https://management.core.windows.net//user_impersonation. source: Cache
DEBUG: False MSAL 4.65.0.0 MSAL.CoreCLR .NET Framework 4.8.9290.0 Microsoft Windows 10.0.26100  [2025-03-19 04:18:43Z -
 d90926fd-3be4-4174-be2a-02f3be6c9f80]
[LogMetricsFromAuthResult] Cache Refresh Reason: NotApplicable
[LogMetricsFromAuthResult] DurationInCacheInMs: 0
[LogMetricsFromAuthResult] DurationTotalInMs: 10
[LogMetricsFromAuthResult] DurationInHttpInMs: 0
DEBUG: False MSAL 4.65.0.0 MSAL.CoreCLR .NET Framework 4.8.9290.0 Microsoft Windows 10.0.26100  [2025-03-19 04:18:43Z -
 d90926fd-3be4-4174-be2a-02f3be6c9f80] TokenEndpoint: ****
DEBUG: InteractiveBrowserCredential.GetToken succeeded. Scopes: [ https://management.core.windows.net//.default ]
ParentRequestId:  ExpiresOn: 2025-03-19T05:41:14.0000000+00:00
DEBUG: ============================ HTTP REQUEST ============================

HTTP Method:
GET

Absolute Uri:
https://management.azure.com/subscriptions/<REDACTED>?api-version=2021-01-01

Headers:
x-ms-client-request-id        : 3d3f00b4-1b95-4936-ad91-fa73409bccf2
accept-language               : en-US

Body:


Retrieving subscriptions for the selection...
DEBUG: ============================ HTTP RESPONSE ============================

Status Code:
OK

Headers:
Pragma                        : no-cache
x-ms-ratelimit-remaining-subscription-reads: 249
x-ms-ratelimit-remaining-subscription-global-reads: 3749
x-ms-request-id               : <REDACTED>
x-ms-correlation-request-id   : <REDACTED>
x-ms-routing-request-id       : AUSTRALIAEAST:20250319T041844Z:ca0905a2-d7fa-4e17-a059-efa278ab6105
Strict-Transport-Security     : max-age=31536000; includeSubDomains
X-Content-Type-Options        : nosniff
X-Cache                       : CONFIG_NOCACHE
X-MSEdge-Ref                  : Ref A: 4CCCB663E564404AAA7C8F16CC5F408E Ref B: SYD03EDGE1308 Ref C:
2025-03-19T04:18:44Z
Cache-Control                 : no-cache
Date                          : Wed, 19 Mar 2025 04:18:44 GMT

Body:
{
  "id": "/subscriptions/<REDACTED>",
  "authorizationSource": "Bypassed",
  "managedByTenants": [
    {
      "tenantId": "<REDACTED>"
    }
  ],
  "subscriptionId": "<REDACTED>",
  "tenantId": "<REDACTED>",
  "displayName": "<REDACTED>",
  "state": "Enabled",
  "subscriptionPolicies": {
    "locationPlacementId": "PublicAndAustralia_2014-09-01",
    "quotaId": "MSDN_2014-09-01",
    "spendingLimit": "On"
  }
}

DEBUG: 3:18:44 PM - [ConfigManager] Got nothing from [DisplaySecretsWarning], Module = [], Cmdlet = []. Returning
default value [True].

DEBUG: 3:18:44 PM - [ConfigManager] Got nothing from [LoginExperienceV2], Module = [], Cmdlet = []. Returning default
value [On].
DEBUG: 3:18:44 PM - [ConfigManager] Got [False] from [EnableLoginByWam], Module = [], Cmdlet = [].
DEBUG: 3:18:44 PM - [ConfigManager] Got nothing from [DisplayRegionIdentified], Module = [], Cmdlet = []. Returning
default value [True].
DEBUG: 3:18:44 PM - [ConfigManager] Got nothing from [CheckForUpgrade], Module = [], Cmdlet = []. Returning default
value [True].
DEBUG: AzureQoSEvent:  Module: Az.Accounts:4.0.2; CommandName: Connect-AzAccount; PSVersion: 5.1.26100.2161; IsSuccess:
 True; Duration: 00:00:04.3446810; SanitizeDuration: 00:00:00.0000913
DEBUG: 3:18:44 PM - [ConfigManager] Got nothing from [EnableDataCollection], Module = [], Cmdlet = []. Returning
default value [True].
DEBUG: 3:18:44 PM - ConnectAzureRmAccountCommand end processing.
Subscription name                                        Tenant
-----------------                                        ------
<REDACTED> <REDACTED>


PS C:\temp> Get-AzResourceGroup
DEBUG: 3:19:09 PM - [ConfigManager] Got nothing from [DisplaySecretsWarning], Module = [], Cmdlet = []. Returning
default value [True].
DEBUG: 3:19:09 PM - GetAzureResourceGroupCmdlet begin processing with ParameterSet 'GetByResourceGroupName'.
DEBUG: 3:19:09 PM - using account id '<REDACTED>'...
DEBUG: 3:19:09 PM - [ConfigManager] Got [False] from [DisplayBreakingChangeWarning], Module = [Az.Resources], Cmdlet =
[Get-AzResourceGroup].
DEBUG: [Common.Authentication]: Authenticating using Account: '<REDACTED>', environment: 'AzureCloud', tenant:
'<REDACTED>'
DEBUG: 3:19:10 PM - [ConfigManager] Got nothing from [DisableInstanceDiscovery], Module = [], Cmdlet = []. Returning
default value [False].
DEBUG: [Common.Authentication]: Received exception Method not found: 'Void
Azure.Identity.Broker.SharedTokenCacheCredentialBrokerOptions..ctor(Azure.Identity.TokenCachePersistenceOptions)'.,
while authenticating.
DEBUG: 3:19:10 PM - [ResourceManagerCmdletBase.ExecuteCmdlet] Caught unhandled exception:
Microsoft.Azure.Commands.Common.Exceptions.AzPSArgumentException: Your Azure credentials have not been set up or have
expired, please run Connect-AzAccount to set up your Azure credentials.
Method not found: 'Void
Azure.Identity.Broker.SharedTokenCacheCredentialBrokerOptions..ctor(Azure.Identity.TokenCachePersistenceOptions)'. --->
 System.MissingMethodException: Method not found: 'Void
Azure.Identity.Broker.SharedTokenCacheCredentialBrokerOptions..ctor(Azure.Identity.TokenCachePersistenceOptions)'.
   at Microsoft.Azure.PowerShell.Authenticators.SilentAuthenticator.GetTokenCredentialOptions(SilentParameters
silentParameters, String tenantId, String authority, PowerShellTokenCacheProvider tokenCacheProvider)
   at Microsoft.Azure.PowerShell.Authenticators.SilentAuthenticator.Authenticate(AuthenticationParameters parameters,
CancellationToken cancellationToken)
   at Microsoft.Azure.Commands.Common.Authentication.DelegatingAuthenticator.TryAuthenticate(AuthenticationParameters
parameters, CancellationToken cancellationToken, Task`1& token)
   at Microsoft.Azure.Commands.Common.Authentication.DelegatingAuthenticator.TryAuthenticate(AuthenticationParameters
parameters, CancellationToken cancellationToken, Task`1& token)
   at Microsoft.Azure.Commands.Common.Authentication.DelegatingAuthenticator.TryAuthenticate(AuthenticationParameters
parameters, CancellationToken cancellationToken, Task`1& token)
   at Microsoft.Azure.Commands.Common.Authentication.DelegatingAuthenticator.TryAuthenticate(AuthenticationParameters
parameters, CancellationToken cancellationToken, Task`1& token)
   at Microsoft.Azure.Commands.Common.Authentication.DelegatingAuthenticator.TryAuthenticate(AuthenticationParameters
parameters, CancellationToken cancellationToken, Task`1& token)
   at Microsoft.Azure.Commands.Common.Authentication.DelegatingAuthenticator.TryAuthenticate(AuthenticationParameters
parameters, CancellationToken cancellationToken, Task`1& token)
   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.Common.Authentication.Factories.AuthenticationFactory.GetServiceClientCredentials(IAzureContex
t context, String targetEndpoint, String resourceId)
   --- End of inner exception stack trace ---
   at
Microsoft.Azure.Commands.Common.Authentication.Factories.AuthenticationFactory.GetServiceClientCredentials(IAzureContex
t context, String targetEndpoint, String resourceId)
   at Microsoft.Azure.Commands.Common.Authentication.Factories.ClientFactory.CreateArmClient[TClient](IAzureContext
context, String endpoint)
   at Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkClient.ResourceManagerSdkClient..ctor(IAzureContext context)
   at
Microsoft.Azure.Commands.ResourceManager.Cmdlets.Implementation.ResourceManagerCmdletBase.get_ResourceManagerSdkClient(
)
   at Microsoft.Azure.Commands.ResourceManager.Cmdlets.Implementation.GetAzureResourceGroupCmdlet.OnProcessRecord()
   at Microsoft.Azure.Commands.ResourceManager.Cmdlets.Implementation.ResourceManagerCmdletBase.ExecuteCmdlet()
DEBUG: 3:19:10 PM - [ConfigManager] Got nothing from [EnableErrorRecordsPersistence], Module = [Az.Resources], Cmdlet =
 [Get-AzResourceGroup]. Returning default value [False].
Get-AzResourceGroup : Your Azure credentials have not been set up or have expired, please run Connect-AzAccount to set
up your Azure credentials.
Method not found: 'Void
Azure.Identity.Broker.SharedTokenCacheCredentialBrokerOptions..ctor(Azure.Identity.TokenCachePersistenceOptions)'.
At line:1 char:1
+ Get-AzResourceGroup
+ ~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : CloseError: (:) [Get-AzResourceGroup], AzPSArgumentException
    + FullyQualifiedErrorId : Microsoft.Azure.Commands.ResourceManager.Cmdlets.Implementation.GetAzureResourceGroupCmd
   let

DEBUG: 3:19:10 PM - [ConfigManager] Got [False] from [DisplayBreakingChangeWarning], Module = [Az.Resources], Cmdlet =
[Get-AzResourceGroup].
DEBUG: 3:19:10 PM - [ConfigManager] Got nothing from [DisplayRegionIdentified], Module = [], Cmdlet = []. Returning
default value [True].
DEBUG: 3:19:10 PM - [ConfigManager] Got nothing from [CheckForUpgrade], Module = [], Cmdlet = []. Returning default
value [True].
DEBUG: AzureQoSEvent:  Module: Az.Resources:7.9.0; CommandName: Get-AzResourceGroup; PSVersion: 5.1.26100.2161;
IsSuccess: False; Duration: 00:00:00.2393242; SanitizeDuration: 00:00:00; Exception: Your Azure credentials have not
been set up or have expired, please run Connect-AzAccount to set up your Azure credentials.
Method not found: 'Void
Azure.Identity.Broker.SharedTokenCacheCredentialBrokerOptions..ctor(Azure.Identity.TokenCachePersistenceOptions)'.;
DEBUG: 3:19:10 PM - [ConfigManager] Got nothing from [EnableDataCollection], Module = [], Cmdlet = []. Returning
default value [True].
DEBUG: 3:19:10 PM - GetAzureResourceGroupCmdlet end processing.
PS C:\temp>

Environment data

Name                           Value
----                           -----
PSVersion                      5.1.26100.2161
PSEdition                      Desktop
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0...}
BuildVersion                   10.0.26100.2161
CLRVersion                     4.0.30319.42000
WSManStackVersion              3.0
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1

Module versions

PS C:\temp> Get-Module Az*

ModuleType Version    Name                                ExportedCommands
---------- -------    ----                                ----------------
Script     4.0.2      Az.Accounts                         {Add-AzEnvironment, Clear-AzConfig, Clear-AzContext, Clear...
Script     7.9.0      Az.Resources                        {Export-AzResourceGroup, Export-AzTemplateSpec, Get-AzDeny...

Error output

PS C:\temp> Resolve-AzError
DEBUG: 3:25:46 PM - [ConfigManager] Got nothing from [DisplaySecretsWarning], Module = [], Cmdlet = []. Returning
default value [True].
DEBUG: 3:25:46 PM - ResolveError begin processing with ParameterSet 'AnyErrorParameterSet'.
DEBUG: 3:25:46 PM - [ConfigManager] Got [False] from [DisplayBreakingChangeWarning], Module = [Az.Accounts], Cmdlet =
[Resolve-AzError].
DEBUG: 3:25:46 PM - [ConfigManager] Got nothing from [DisplaySecretsWarning], Module = [], Cmdlet = []. Returning
default value [True].


   HistoryId: 12


Message        : Your Azure credentials have not been set up or have expired, please run Connect-AzAccount to set up
                 your Azure credentials.
                 Method not found: 'Void Azure.Identity.Broker.SharedTokenCacheCredentialBrokerOptions..ctor(Azure.Iden
                 tity.TokenCachePersistenceOptions)'.
StackTrace     :    at Microsoft.Azure.Commands.ResourceManager.Cmdlets.Implementation.ResourceManagerCmdletBase.Handle
                 Exception(ExceptionDispatchInfo capturedException)
                    at Microsoft.Azure.Commands.ResourceManager.Cmdlets.Implementation.ResourceManagerCmdletBase.Execut
                 eCmdlet()
                    at Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet.ProcessRecord()
Exception      : Microsoft.Azure.Commands.Common.Exceptions.AzPSArgumentException
InvocationInfo : {Get-AzResourceGroup}
Line           : Get-AzResourceGroup
Position       : At line:1 char:1
                 + Get-AzResourceGroup
                 + ~~~~~~~~~~~~~~~~~~~
HistoryId      : 12

DEBUG: 3:25:46 PM - [ConfigManager] Got nothing from [DisplaySecretsWarning], Module = [], Cmdlet = []. Returning
default value [True].
Message        : Method not found: 'Void Azure.Identity.Broker.SharedTokenCacheCredentialBrokerOptions..ctor(Azure.Iden
                 tity.TokenCachePersistenceOptions)'.
StackTrace     :    at Microsoft.Azure.PowerShell.Authenticators.SilentAuthenticator.GetTokenCredentialOptions(SilentPa
                 rameters silentParameters, String tenantId, String authority, PowerShellTokenCacheProvider
                 tokenCacheProvider)
                    at
                 Microsoft.Azure.PowerShell.Authenticators.SilentAuthenticator.Authenticate(AuthenticationParameters
                 parameters, CancellationToken cancellationToken)
                    at Microsoft.Azure.Commands.Common.Authentication.DelegatingAuthenticator.TryAuthenticate(Authentic
                 ationParameters parameters, CancellationToken cancellationToken, Task`1& token)
                    at Microsoft.Azure.Commands.Common.Authentication.DelegatingAuthenticator.TryAuthenticate(Authentic
                 ationParameters parameters, CancellationToken cancellationToken, Task`1& token)
                    at Microsoft.Azure.Commands.Common.Authentication.DelegatingAuthenticator.TryAuthenticate(Authentic
                 ationParameters parameters, CancellationToken cancellationToken, Task`1& token)
                    at Microsoft.Azure.Commands.Common.Authentication.DelegatingAuthenticator.TryAuthenticate(Authentic
                 ationParameters parameters, CancellationToken cancellationToken, Task`1& token)
                    at Microsoft.Azure.Commands.Common.Authentication.DelegatingAuthenticator.TryAuthenticate(Authentic
                 ationParameters parameters, CancellationToken cancellationToken, Task`1& token)
                    at Microsoft.Azure.Commands.Common.Authentication.DelegatingAuthenticator.TryAuthenticate(Authentic
                 ationParameters parameters, CancellationToken cancellationToken, Task`1& token)
                    at Microsoft.Azure.Commands.Common.Authentication.Factories.AuthenticationFactory.Authenticate(IAzu
                 reAccount account, IAzureEnvironment environment, String tenant, SecureString password, String
                 promptBehavior, Action`1 promptAction, IAzureTokenCache tokenCache, String resourceId)
                    at Microsoft.Azure.Commands.Common.Authentication.Factories.AuthenticationFactory.GetServiceClientC
                 redentials(IAzureContext context, String targetEndpoint, String resourceId)
Exception      : System.MissingMethodException
InvocationInfo : {Get-AzResourceGroup}
Line           : Get-AzResourceGroup
Position       : At line:1 char:1
                 + Get-AzResourceGroup
                 + ~~~~~~~~~~~~~~~~~~~
HistoryId      : 12

Metadata

Metadata

Assignees

No one assigned

    Labels

    AccountsIssues in Az.Accounts except authentication relatedAzure PS TeamPossible-SolutionSimilar-Issueassembly-conflictrelated to conflicts when loading assembliesbugThis issue requires a change to an existing behavior in the product in order to be resolved.customer-reportedquestionThe 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

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions