Connect-Maester fails with "OperationStopped: Method not found: 'Microsoft.Identity.Client.PublicClientApplicationBuilder..."
Description
When running Connect-Maester I sometimes see the following error:
OperationStopped: Method not found: 'Microsoft.Identity.Client.PublicClientApplicationBuilder
Microsoft.Identity.Client.Broker.BrokerExtension.WithBroker(Microsoft.Identity.Client.PublicClientApplicationBuilder,
Microsoft.Identity.Client.BrokerOptions)'.
Environment Details
>> $PSVersionTable
Name Value
---- -----
PSVersion 7.5.1
PSEdition Core
GitCommitId 7.5.1
OS Microsoft Windows 10.0.26120
Platform Win32NT
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1
WSManStackVersion 3.0
>> Get-Module
ModuleType Version PreRelease Name ExportedCommands
---------- ------- ---------- ---- ----------------
Script 4.1.0 Az.Accounts {Add-AzEnvironment, Clear-AzConfig, Clear-AzContext, Clear-AzDefault…}
Binary 7.0.0.0 CimCmdlets {Get-CimAssociatedInstance, Get-CimClass, Get-CimInstance, Get-CimSession…}
Script 3.7.2 ExchangeOnlineManagement {Add-VivaModuleFeaturePolicy, Add-VivaOrgInsightsDelegatedRole, Get-ConnectionIn…
Script 1.0.72 preview Maester {Add-MtTestResultDetail, Clear-MtDnsCache, Clear-MtExoCache, Clear-MtGraphCache…}
Script 2.27.0 Microsoft.Graph.Authentication {Add-MgEnvironment, Connect-MgGraph, Disconnect-MgGraph, Get-MgContext…}
Manifest 7.0.0.0 Microsoft.PowerShell.Management {Add-Content, Clear-Content, Clear-Item, Clear-ItemProperty…}
Manifest 7.0.0.0 Microsoft.PowerShell.Utility {Add-Member, Add-Type, Clear-Variable, Compare-Object…}
Script 0.0 oh-my-posh-core {Enable-PoshLineError, Enable-PoshTooltips, Enable-PoshTransientPrompt, Set-Posh…
Script 5.7.1 Pester {Add-ShouldOperator, AfterAll, AfterEach, Assert-MockCalled…}
Script 1.1.0 posh-git {Add-PoshGitToProfile, Expand-GitCommand, Format-GitBranchName, Get-GitBranchSta…
Script 2.4.2 beta2 PSReadLine {Get-PSReadLineKeyHandler, Get-PSReadLineOption, Remove-PSReadLineKeyHandler, Se…
Script 0.11.0 Terminal-Icons {Add-TerminalIconsColorTheme, Add-TerminalIconsIconTheme, Format-TerminalIcons, …
~/Code > Get-AzContext | FL
Name : Visual Studio Enterprise Subscription – MPN (REDACTED)
Subscription : (REDACTED)
Account : (REDACTED)
Environment : AzureCloud
Tenant : (REDACTED)
TokenCache :
VersionProfile :
ExtendedProperties : {}
Debug Output
PowerShell 7.5.1
Loading personal and system profiles took 4092ms.
>> Import-Module Maester
>> Connect-Maester -Service All -SendMail -SendTeamsMessage -Privileged -TenantId $MyTenantId -Debug
DEBUG: InteractiveBrowserCredential.GetToken invoked. Scopes: [ DeviceManagementConfiguration.Read.All, DeviceManagementManagedDevices.Read.All, Directory.Read.All, DirectoryRecommendations.Read.All, IdentityRiskEvent.Read.All, Policy.Read.All, Policy.Read.ConditionalAccess, PrivilegedAccess.Read.AzureAD, Reports.Read.All, RoleEligibilitySchedule.Read.Directory, RoleManagement.Read.All, SharePointTenantSettings.Read.All, UserAuthenticationMethod.Read.All, RoleEligibilitySchedule.ReadWrite.Directory, Mail.Send, ChannelMessage.Send ] ParentRequestId:
DEBUG: False MSAL 4.67.2.0 MSAL.CoreCLR .NET 9.0.4 Microsoft Windows 10.0.26120 [2025-05-01 18:33:31Z - 617818f7-c6a2-4d18-8577-ef647c34f350] MSAL MSAL.CoreCLR with assembly version '4.67.2.0'. CorrelationId(617818f7-c6a2-4d18-8577-ef647c34f350)
DEBUG: False MSAL 4.67.2.0 MSAL.CoreCLR .NET 9.0.4 Microsoft Windows 10.0.26120 [2025-05-01 18:33:31Z - 617818f7-c6a2-4d18-8577-ef647c34f350] === AcquireTokenSilent Parameters ===
DEBUG: False MSAL 4.67.2.0 MSAL.CoreCLR .NET 9.0.4 Microsoft Windows 10.0.26120 [2025-05-01 18:33:31Z - 617818f7-c6a2-4d18-8577-ef647c34f350] LoginHint provided: False
DEBUG: False MSAL 4.67.2.0 MSAL.CoreCLR .NET 9.0.4 Microsoft Windows 10.0.26120 [2025-05-01 18:33:31Z - 617818f7-c6a2-4d18-8577-ef647c34f350] Account provided: True
DEBUG: False MSAL 4.67.2.0 MSAL.CoreCLR .NET 9.0.4 Microsoft Windows 10.0.26120 [2025-05-01 18:33:31Z - 617818f7-c6a2-4d18-8577-ef647c34f350] ForceRefresh: False
DEBUG: False MSAL 4.67.2.0 MSAL.CoreCLR .NET 9.0.4 Microsoft Windows 10.0.26120 [2025-05-01 18:33:31Z - 617818f7-c6a2-4d18-8577-ef647c34f350]
=== Request Data ===
Authority Provided? - True
Scopes - DeviceManagementConfiguration.Read.All DeviceManagementManagedDevices.Read.All Directory.Read.All DirectoryRecommendations.Read.All IdentityRiskEvent.Read.All Policy.Read.All Policy.Read.ConditionalAccess PrivilegedAccess.Read.AzureAD Reports.Read.All RoleEligibilitySchedule.Read.Directory RoleManagement.Read.All SharePointTenantSettings.Read.All UserAuthenticationMethod.Read.All RoleEligibilitySchedule.ReadWrite.Directory Mail.Send ChannelMessage.Send
Extra Query Params Keys (space separated) -
ApiId - AcquireTokenSilent
IsConfidentialClient - False
SendX5C - False
LoginHint ? False
IsBrokerConfigured - False
HomeAccountId - False
CorrelationId - 617818f7-c6a2-4d18-8577-ef647c34f350
UserAssertion set: False
LongRunningOboCacheKey set: False
Region configured:
DEBUG: False MSAL 4.67.2.0 MSAL.CoreCLR .NET 9.0.4 Microsoft Windows 10.0.26120 [2025-05-01 18:33:31Z - 617818f7-c6a2-4d18-8577-ef647c34f350] === Token Acquisition (SilentRequest) started:
Scopes: DeviceManagementConfiguration.Read.All DeviceManagementManagedDevices.Read.All Directory.Read.All DirectoryRecommendations.Read.All IdentityRiskEvent.Read.All Policy.Read.All Policy.Read.ConditionalAccess PrivilegedAccess.Read.AzureAD Reports.Read.All RoleEligibilitySchedule.Read.Directory RoleManagement.Read.All SharePointTenantSettings.Read.All UserAuthenticationMethod.Read.All RoleEligibilitySchedule.ReadWrite.Directory Mail.Send ChannelMessage.Send
Authority Host: login.microsoftonline.com
DEBUG: False MSAL 4.67.2.0 MSAL.CoreCLR .NET 9.0.4 Microsoft Windows 10.0.26120 [2025-05-01 18:33:31Z] [Internal cache] Clearing user token cache accessor.
DEBUG: False MSAL 4.67.2.0 MSAL.CoreCLR .NET 9.0.4 Microsoft Windows 10.0.26120 [2025-05-01 18:33:31Z - 617818f7-c6a2-4d18-8577-ef647c34f350] [Internal cache] Total number of cache partitions found while getting access tokens: 2
DEBUG: False MSAL 4.67.2.0 MSAL.CoreCLR .NET 9.0.4 Microsoft Windows 10.0.26120 [2025-05-01 18:33:31Z - 617818f7-c6a2-4d18-8577-ef647c34f350] [FindAccessTokenAsync] Discovered 1 access tokens in cache using partition key: 1956948f-f4fc-4b38-9450-4f426126732e.de4bd3c1-1af3-4b17-8197-af243a41e675
DEBUG: False MSAL 4.67.2.0 MSAL.CoreCLR .NET 9.0.4 Microsoft Windows 10.0.26120 [2025-05-01 18:33:31Z - 617818f7-c6a2-4d18-8577-ef647c34f350] [Region discovery] Not using a regional authority.
DEBUG: False MSAL 4.67.2.0 MSAL.CoreCLR .NET 9.0.4 Microsoft Windows 10.0.26120 [2025-05-01 18:33:31Z - 617818f7-c6a2-4d18-8577-ef647c34f350] Access token has expired or about to expire. [Current time (05/01/2025 18:33:31) - Expiration Time (05/01/2025 17:18:44 +00:00) - Extended Expiration Time (05/01/2025 17:18:44 +00:00)]
DEBUG: False MSAL 4.67.2.0 MSAL.CoreCLR .NET 9.0.4 Microsoft Windows 10.0.26120 [2025-05-01 18:33:31Z - 617818f7-c6a2-4d18-8577-ef647c34f350] [Region discovery] Not using a regional authority.
DEBUG: False MSAL 4.67.2.0 MSAL.CoreCLR .NET 9.0.4 Microsoft Windows 10.0.26120 [2025-05-01 18:33:31Z] [Internal cache] Total number of cache partitions found while getting refresh tokens: 2. PartitionKey True
DEBUG: False MSAL 4.67.2.0 MSAL.CoreCLR .NET 9.0.4 Microsoft Windows 10.0.26120 [2025-05-01 18:33:31Z - 617818f7-c6a2-4d18-8577-ef647c34f350] [FindRefreshTokenAsync] Discovered 1 refresh tokens in cache using key: 1956948f-f4fc-4b38-9450-4f426126732e.de4bd3c1-1af3-4b17-8197-af243a41e675
DEBUG: False MSAL 4.67.2.0 MSAL.CoreCLR .NET 9.0.4 Microsoft Windows 10.0.26120 [2025-05-01 18:33:31Z - 617818f7-c6a2-4d18-8577-ef647c34f350] [Region discovery] Not using a regional authority.
DEBUG: False MSAL 4.67.2.0 MSAL.CoreCLR .NET 9.0.4 Microsoft Windows 10.0.26120 [2025-05-01 18:33:31Z - 617818f7-c6a2-4d18-8577-ef647c34f350] [FindRefreshTokenAsync] Refresh token found in the cache? - True
DEBUG: False MSAL 4.67.2.0 MSAL.CoreCLR .NET 9.0.4 Microsoft Windows 10.0.26120 [2025-05-01 18:33:31Z - 617818f7-c6a2-4d18-8577-ef647c34f350] [Instance Discovery] Instance discovery is enabled and will be performed
DEBUG: False MSAL 4.67.2.0 MSAL.CoreCLR .NET 9.0.4 Microsoft Windows 10.0.26120 [2025-05-01 18:33:31Z - 617818f7-c6a2-4d18-8577-ef647c34f350] [Region discovery] Not using a regional authority.
DEBUG: False MSAL 4.67.2.0 MSAL.CoreCLR .NET 9.0.4 Microsoft Windows 10.0.26120 [2025-05-01 18:33:31Z - 617818f7-c6a2-4d18-8577-ef647c34f350] Fetching instance discovery from the network from host login.microsoftonline.com.
DEBUG: Request [2745408c-991e-458a-ace9-676150173cb3] 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-OS:REDACTED
client-request-id:REDACTED
return-client-request-id:REDACTED
x-ms-client-request-id:2745408c-991e-458a-ace9-676150173cb3
x-ms-return-client-request-id:true
User-Agent:azsdk-net-Identity/1.13.2 (.NET 9.0.4; Microsoft Windows 10.0.26120)
client assembly: Azure.Identity
DEBUG: Response [2745408c-991e-458a-ace9-676150173cb3] 200 OK (00.5s)
Date:Thu, 01 May 2025 18:33:32 GMT
Connection:keep-alive
Cache-Control:max-age=86400, private
Strict-Transport-Security:REDACTED
X-Content-Type-Options:REDACTED
Access-Control-Allow-Origin:REDACTED
Access-Control-Allow-Methods:REDACTED
P3P:REDACTED
client-request-id:REDACTED
x-ms-request-id:95cdfd43-d67e-40d3-8468-af080461a300
x-ms-ests-server:REDACTED
x-ms-srs:REDACTED
Content-Security-Policy-Report-Only:REDACTED
X-XSS-Protection:REDACTED
Set-Cookie:REDACTED
X-Cache:REDACTED
Content-Type:application/json; charset=utf-8
Content-Length:980
DEBUG: Request [56173bec-39c7-4f9a-ad96-a857e78b6daa] POST https://login.microsoftonline.com/de4bd3c1-1af3-4b17-8197-af243a41e675/oauth2/v2.0/token
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:56173bec-39c7-4f9a-ad96-a857e78b6daa
x-ms-return-client-request-id:true
User-Agent:azsdk-net-Identity/1.13.2 (.NET 9.0.4; Microsoft Windows 10.0.26120)
client assembly: Azure.Identity
DEBUG: Response [56173bec-39c7-4f9a-ad96-a857e78b6daa] 200 OK (00.3s)
Date:Thu, 01 May 2025 18:33:33 GMT
Connection:keep-alive
Cache-Control:no-store, no-cache
Pragma:no-cache
Strict-Transport-Security:REDACTED
X-Content-Type-Options:REDACTED
P3P:REDACTED
client-request-id:REDACTED
x-ms-request-id:becf2730-1f8f-49cc-8fd3-a6596a1f0000
x-ms-ests-server:REDACTED
x-ms-clitelem:REDACTED
x-ms-srs:REDACTED
Content-Security-Policy-Report-Only:REDACTED
X-XSS-Protection:REDACTED
Set-Cookie:REDACTED
X-Cache:REDACTED
Content-Type:application/json; charset=utf-8
Content-Length:7706
Expires:-1
DEBUG: False MSAL 4.67.2.0 MSAL.CoreCLR .NET 9.0.4 Microsoft Windows 10.0.26120 [2025-05-01 18:33:32Z - 617818f7-c6a2-4d18-8577-ef647c34f350] Checking client info returned from the server..
DEBUG: False MSAL 4.67.2.0 MSAL.CoreCLR .NET 9.0.4 Microsoft Windows 10.0.26120 [2025-05-01 18:33:32Z - 617818f7-c6a2-4d18-8577-ef647c34f350] Saving token response to cache..
DEBUG: False MSAL 4.67.2.0 MSAL.CoreCLR .NET 9.0.4 Microsoft Windows 10.0.26120 [2025-05-01 18:33:32Z - 617818f7-c6a2-4d18-8577-ef647c34f350] [Region discovery] Not using a regional authority.
DEBUG: False MSAL 4.67.2.0 MSAL.CoreCLR .NET 9.0.4 Microsoft Windows 10.0.26120 [2025-05-01 18:33:32Z] [Internal cache] Clearing user token cache accessor.
DEBUG: False MSAL 4.67.2.0 MSAL.CoreCLR .NET 9.0.4 Microsoft Windows 10.0.26120 [2025-05-01 18:33:32Z - 617818f7-c6a2-4d18-8577-ef647c34f350] [SaveTokenResponseAsync] Saving AT in cache and removing overlapping ATs...
DEBUG: False MSAL 4.67.2.0 MSAL.CoreCLR .NET 9.0.4 Microsoft Windows 10.0.26120 [2025-05-01 18:33:32Z - 617818f7-c6a2-4d18-8577-ef647c34f350] Looking for scopes for the authority in the cache which intersect with DeviceManagementConfiguration.Read.All DeviceManagementManagedDevices.Read.All Directory.Read.All DirectoryRecommendations.Read.All IdentityRiskEvent.Read.All Policy.Read.All Policy.Read.ConditionalAccess PrivilegedAccess.Read.AzureAD Reports.Read.All RoleEligibilitySchedule.Read.Directory RoleManagement.Read.All SharePointTenantSettings.Read.All UserAuthenticationMethod.Read.All RoleEligibilitySchedule.ReadWrite.Directory Mail.Send ChannelMessage.Send
DEBUG: False MSAL 4.67.2.0 MSAL.CoreCLR .NET 9.0.4 Microsoft Windows 10.0.26120 [2025-05-01 18:33:32Z] [Internal cache] Total number of cache partitions found while getting access tokens: 2
DEBUG: False MSAL 4.67.2.0 MSAL.CoreCLR .NET 9.0.4 Microsoft Windows 10.0.26120 [2025-05-01 18:33:32Z - 617818f7-c6a2-4d18-8577-ef647c34f350] Intersecting scope entries count - 1
DEBUG: False MSAL 4.67.2.0 MSAL.CoreCLR .NET 9.0.4 Microsoft Windows 10.0.26120 [2025-05-01 18:33:32Z - 617818f7-c6a2-4d18-8577-ef647c34f350] Matching entries after filtering by user - 1
DEBUG: False MSAL 4.67.2.0 MSAL.CoreCLR .NET 9.0.4 Microsoft Windows 10.0.26120 [2025-05-01 18:33:32Z - 617818f7-c6a2-4d18-8577-ef647c34f350] [SaveTokenResponseAsync] Saving Id Token and Account in cache ...
DEBUG: False MSAL 4.67.2.0 MSAL.CoreCLR .NET 9.0.4 Microsoft Windows 10.0.26120 [2025-05-01 18:33:32Z - 617818f7-c6a2-4d18-8577-ef647c34f350] [SaveTokenResponseAsync] Saving RT in cache...
DEBUG: False MSAL 4.67.2.0 MSAL.CoreCLR .NET 9.0.4 Microsoft Windows 10.0.26120 [2025-05-01 18:33:32Z - 617818f7-c6a2-4d18-8577-ef647c34f350] IsLegacyAdalCacheEnabled: yes
DEBUG: False MSAL 4.67.2.0 MSAL.CoreCLR .NET 9.0.4 Microsoft Windows 10.0.26120 [2025-05-01 18:33:32Z - 617818f7-c6a2-4d18-8577-ef647c34f350] [AdalCacheOperations] Serializing token cache with 1 items.
DEBUG: False MSAL 4.67.2.0 MSAL.CoreCLR .NET 9.0.4 Microsoft Windows 10.0.26120 [2025-05-01 18:33:32Z] [Internal cache] Total number of cache partitions found while getting refresh tokens: 2. PartitionKey False
DEBUG: False MSAL 4.67.2.0 MSAL.CoreCLR .NET 9.0.4 Microsoft Windows 10.0.26120 [2025-05-01 18:33:32Z] [Internal cache] Total number of cache partitions found while getting access tokens: 2
DEBUG: False MSAL 4.67.2.0 MSAL.CoreCLR .NET 9.0.4 Microsoft Windows 10.0.26120 [2025-05-01 18:33:32Z] [Internal cache] Total number of cache partitions found while getting refresh tokens: 2. PartitionKey False
DEBUG: False MSAL 4.67.2.0 MSAL.CoreCLR .NET 9.0.4 Microsoft Windows 10.0.26120 [2025-05-01 18:33:32Z] [Internal cache] Total number of cache partitions found while getting accounts: 2. PartitionKey False
DEBUG: False MSAL 4.67.2.0 MSAL.CoreCLR .NET 9.0.4 Microsoft Windows 10.0.26120 [2025-05-01 18:33:32Z - 617818f7-c6a2-4d18-8577-ef647c34f350]
=== Token Acquisition finished successfully:
DEBUG: False MSAL 4.67.2.0 MSAL.CoreCLR .NET 9.0.4 Microsoft Windows 10.0.26120 [2025-05-01 18:33:32Z - 617818f7-c6a2-4d18-8577-ef647c34f350] AT expiration time: 5/1/2025 7:58:06 PM +00:00, scopes: AccessReview.Read.All Agreement.Read.All APIConnectors.Read.All Application.Read.All AuditLog.Read.All ChannelMessage.Send DeviceManagementConfiguration.Read.All DeviceManagementManagedDevices.Read.All Directory.Read.All DirectoryRecommendations.Read.All Domain.Read.All email EntitlementManagement.Read.All Group.Read.All GroupMember.Read.All IdentityProvider.Read.All IdentityRiskEvent.Read.All IdentityUserFlow.Read.All Mail.Send OnPremDirectorySynchronization.Read.All openid Organization.Read.All Policy.Read.All Policy.Read.ConditionalAccess Policy.Read.PermissionGrant Policy.ReadWrite.AuthenticationMethod PrivilegedAccess.Read.AzureAD PrivilegedAccess.Read.AzureADGroup PrivilegedAccess.Read.AzureResources PrivilegedEligibilitySchedule.Read.AzureADGroup profile Reports.Read.All RoleEligibilitySchedule.Read.Directory RoleEligibilitySchedule.ReadWrite.Directory RoleManagement.Read.All RoleManagement.Read.Directory RoleManagementPolicy.Read.AzureADGroup SharePointTenantSettings.Read.All User.EnableDisableAccount.All User.Read User.Read.All User.ReadWrite.All UserAuthenticationMethod.Read.All. source: IdentityProvider
DEBUG: False MSAL 4.67.2.0 MSAL.CoreCLR .NET 9.0.4 Microsoft Windows 10.0.26120 [2025-05-01 18:33:32Z - 617818f7-c6a2-4d18-8577-ef647c34f350] Fetched access token from host login.microsoftonline.com.
DEBUG: False MSAL 4.67.2.0 MSAL.CoreCLR .NET 9.0.4 Microsoft Windows 10.0.26120 [2025-05-01 18:33:32Z - 617818f7-c6a2-4d18-8577-ef647c34f350]
[LogMetricsFromAuthResult] Cache Refresh Reason: Expired
[LogMetricsFromAuthResult] DurationInCacheInMs: 8
[LogMetricsFromAuthResult] DurationTotalInMs: 977
[LogMetricsFromAuthResult] DurationInHttpInMs: 803
DEBUG: False MSAL 4.67.2.0 MSAL.CoreCLR .NET 9.0.4 Microsoft Windows 10.0.26120 [2025-05-01 18:33:32Z - 617818f7-c6a2-4d18-8577-ef647c34f350] TokenEndpoint: ****
DEBUG: InteractiveBrowserCredential.GetToken succeeded. Scopes: [ DeviceManagementConfiguration.Read.All, DeviceManagementManagedDevices.Read.All, Directory.Read.All, DirectoryRecommendations.Read.All, IdentityRiskEvent.Read.All, Policy.Read.All, Policy.Read.ConditionalAccess, PrivilegedAccess.Read.AzureAD, Reports.Read.All, RoleEligibilitySchedule.Read.Directory, RoleManagement.Read.All, SharePointTenantSettings.Read.All, UserAuthenticationMethod.Read.All, RoleEligibilitySchedule.ReadWrite.Directory, Mail.Send, ChannelMessage.Send ] ParentRequestId: ExpiresOn: 2025-05-01T19:58:06.6014164+00:00
DEBUG: Got version 0 of Az
DEBUG: Got version 0 of Az.Accounts
DEBUG: 2:33:33 PM - [ConfigManager] Got nothing from [DisplaySecretsWarning], Module = [], Cmdlet = []. Returning default value [True].
DEBUG: 2:33:33 PM - ConnectAzureRmAccountCommand begin processing with ParameterSet 'UserWithSubscriptionId'.
DEBUG: 2:33:33 PM - [ConfigManager] Got nothing from [DisplayBreakingChangeWarning], Module = [Az.Accounts], Cmdlet = [Connect-AzAccount]. Returning default value [True].
DEBUG: 2:33:33 PM - Autosave setting from startup session: 'CurrentUser'
DEBUG: 2:33:33 PM - No autosave setting detected in environment variable 'AzContextAutoSave'.
DEBUG: 2:33:33 PM - Using Autosave scope 'CurrentUser'
DEBUG: 2:33:33 PM - [ConfigManager] Got [cfc74c36-dc41-44d3-9f7d-0a67b2cc76c9] from [DefaultSubscriptionForLogin], Module = [], Cmdlet = [].
DEBUG: 2:33:33 PM - [ConnectAzureRmAccountCommand] Using default subscription "cfc74c36-dc41-44d3-9f7d-0a67b2cc76c9" from config.
DEBUG: 2:33:33 PM - Autosave setting from startup session: 'CurrentUser'
DEBUG: 2:33:33 PM - No autosave setting detected in environment variable 'AzContextAutoSave'.
DEBUG: 2:33:33 PM - Using Autosave scope 'CurrentUser'
Please select the account you want to login with.
DEBUG: 2:33:33 PM - [InteractiveUserAuthenticator] Calling InteractiveBrowserCredential.AuthenticateAsync with TenantId:'de4bd3c1-1af3-4b17-8197-af243a41e675', 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 9.0.4 Microsoft Windows 10.0.26120 [2025-05-01 18:33:33Z - ac586374-d5f1-40b9-aed8-e7a6fc808ec6] MSAL MSAL.CoreCLR with assembly version '4.65.0.0'. CorrelationId(ac586374-d5f1-40b9-aed8-e7a6fc808ec6)
DEBUG: False MSAL 4.65.0.0 MSAL.CoreCLR .NET 9.0.4 Microsoft Windows 10.0.26120 [2025-05-01 18:33:33Z - ac586374-d5f1-40b9-aed8-e7a6fc808ec6] === 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 9.0.4 Microsoft Windows 10.0.26120 [2025-05-01 18:33:33Z - ac586374-d5f1-40b9-aed8-e7a6fc808ec6]
=== 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 - ac586374-d5f1-40b9-aed8-e7a6fc808ec6
UserAssertion set: False
LongRunningOboCacheKey set: False
Region configured:
DEBUG: False MSAL 4.65.0.0 MSAL.CoreCLR .NET 9.0.4 Microsoft Windows 10.0.26120 [2025-05-01 18:33:33Z - ac586374-d5f1-40b9-aed8-e7a6fc808ec6] === 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 9.0.4 Microsoft Windows 10.0.26120 [2025-05-01 18:33:33Z - ac586374-d5f1-40b9-aed8-e7a6fc808ec6] [Instance Discovery] Instance discovery is enabled and will be performed
DEBUG: False MSAL 4.65.0.0 MSAL.CoreCLR .NET 9.0.4 Microsoft Windows 10.0.26120 [2025-05-01 18:33:33Z - ac586374-d5f1-40b9-aed8-e7a6fc808ec6] [Region discovery] Not using a regional authority.
DEBUG: False MSAL 4.65.0.0 MSAL.CoreCLR .NET 9.0.4 Microsoft Windows 10.0.26120 [2025-05-01 18:33:33Z - ac586374-d5f1-40b9-aed8-e7a6fc808ec6] Fetching instance discovery from the network from host login.microsoftonline.com.
DEBUG: Request [84ae0688-3879-46bd-921c-dfcff31998b8] 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-OS:REDACTED
client-request-id:REDACTED
return-client-request-id:REDACTED
x-ms-client-request-id:84ae0688-3879-46bd-921c-dfcff31998b8
x-ms-return-client-request-id:true
User-Agent:azsdk-net-Identity/1.13.0 (.NET 9.0.4; Microsoft Windows 10.0.26120)
client assembly: Azure.Identity
DEBUG: Response [84ae0688-3879-46bd-921c-dfcff31998b8] 200 OK (00.3s)
Date:Thu, 01 May 2025 18:33:34 GMT
Connection:keep-alive
Cache-Control:max-age=86400, private
Strict-Transport-Security:REDACTED
X-Content-Type-Options:REDACTED
Access-Control-Allow-Origin:REDACTED
Access-Control-Allow-Methods:REDACTED
P3P:REDACTED
client-request-id:REDACTED
x-ms-request-id:16fc2738-6287-454d-97f9-994de8d32b00
x-ms-ests-server:REDACTED
x-ms-srs:REDACTED
Content-Security-Policy-Report-Only:REDACTED
X-XSS-Protection:REDACTED
Set-Cookie:REDACTED
X-Cache:REDACTED
Content-Type:application/json; charset=utf-8
Content-Length:980
DEBUG: False MSAL 4.65.0.0 MSAL.CoreCLR .NET 9.0.4 Microsoft Windows 10.0.26120 [2025-05-01 18:33:33Z - ac586374-d5f1-40b9-aed8-e7a6fc808ec6] Using system browser.
DEBUG: False MSAL 4.65.0.0 MSAL.CoreCLR .NET 9.0.4 Microsoft Windows 10.0.26120 [2025-05-01 18:33:33Z - ac586374-d5f1-40b9-aed8-e7a6fc808ec6] Listening for authorization code on http://localhost:8400/
DEBUG: False MSAL 4.65.0.0 MSAL.CoreCLR .NET 9.0.4 Microsoft Windows 10.0.26120 [2025-05-01 18:33:41Z - ac586374-d5f1-40b9-aed8-e7a6fc808ec6] Processing a response message to the browser. HttpStatus:OK
DEBUG: False MSAL 4.65.0.0 MSAL.CoreCLR .NET 9.0.4 Microsoft Windows 10.0.26120 [2025-05-01 18:33:41Z - ac586374-d5f1-40b9-aed8-e7a6fc808ec6] An authorization code was retrieved from the /authorize endpoint.
DEBUG: False MSAL 4.65.0.0 MSAL.CoreCLR .NET 9.0.4 Microsoft Windows 10.0.26120 [2025-05-01 18:33:41Z - ac586374-d5f1-40b9-aed8-e7a6fc808ec6] Exchanging the auth code for tokens.
DEBUG: False MSAL 4.65.0.0 MSAL.CoreCLR .NET 9.0.4 Microsoft Windows 10.0.26120 [2025-05-01 18:33:41Z - ac586374-d5f1-40b9-aed8-e7a6fc808ec6] === InteractiveParameters Data ===
LoginHint provided: False
User provided: False
UseEmbeddedWebView: NotSpecified
ExtraScopesToConsent:
Prompt: select_account
HasCustomWebUi: False
DEBUG: Request [6907d7a1-ee62-4fc5-a562-3b13da19f095] POST https://login.microsoftonline.com/de4bd3c1-1af3-4b17-8197-af243a41e675/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:6907d7a1-ee62-4fc5-a562-3b13da19f095
x-ms-return-client-request-id:true
User-Agent:azsdk-net-Identity/1.13.0 (.NET 9.0.4; Microsoft Windows 10.0.26120)
client assembly: Azure.Identity
DEBUG: Response [6907d7a1-ee62-4fc5-a562-3b13da19f095] 200 OK (00.3s)
Date:Thu, 01 May 2025 18:33:42 GMT
Connection:keep-alive
Cache-Control:no-store, no-cache
Pragma:no-cache
Strict-Transport-Security:REDACTED
X-Content-Type-Options:REDACTED
P3P:REDACTED
client-request-id:REDACTED
x-ms-request-id:91892ecc-ea97-4e82-90af-16f4f3ad5900
x-ms-ests-server:REDACTED
x-ms-clitelem:REDACTED
x-ms-srs:REDACTED
Content-Security-Policy-Report-Only:REDACTED
X-XSS-Protection:REDACTED
Set-Cookie:REDACTED
X-Cache:REDACTED
Content-Type:application/json; charset=utf-8
Content-Length:5431
Expires:-1
DEBUG: False MSAL 4.65.0.0 MSAL.CoreCLR .NET 9.0.4 Microsoft Windows 10.0.26120 [2025-05-01 18:33:41Z - ac586374-d5f1-40b9-aed8-e7a6fc808ec6] Checking client info returned from the server..
DEBUG: False MSAL 4.65.0.0 MSAL.CoreCLR .NET 9.0.4 Microsoft Windows 10.0.26120 [2025-05-01 18:33:41Z - ac586374-d5f1-40b9-aed8-e7a6fc808ec6] Saving token response to cache..
DEBUG: False MSAL 4.65.0.0 MSAL.CoreCLR .NET 9.0.4 Microsoft Windows 10.0.26120 [2025-05-01 18:33:41Z - ac586374-d5f1-40b9-aed8-e7a6fc808ec6] [Region discovery] Not using a regional authority.
DEBUG: False MSAL 4.65.0.0 MSAL.CoreCLR .NET 9.0.4 Microsoft Windows 10.0.26120 [2025-05-01 18:33:41Z] [Internal cache] Clearing user token cache accessor.
DEBUG: False MSAL 4.65.0.0 MSAL.CoreCLR .NET 9.0.4 Microsoft Windows 10.0.26120 [2025-05-01 18:33:41Z - ac586374-d5f1-40b9-aed8-e7a6fc808ec6] [SaveTokenResponseAsync] Saving AT in cache and removing overlapping ATs...
DEBUG: False MSAL 4.65.0.0 MSAL.CoreCLR .NET 9.0.4 Microsoft Windows 10.0.26120 [2025-05-01 18:33:41Z - ac586374-d5f1-40b9-aed8-e7a6fc808ec6] 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 9.0.4 Microsoft Windows 10.0.26120 [2025-05-01 18:33:41Z] [Internal cache] Total number of cache partitions found while getting access tokens: 1
DEBUG: False MSAL 4.65.0.0 MSAL.CoreCLR .NET 9.0.4 Microsoft Windows 10.0.26120 [2025-05-01 18:33:41Z - ac586374-d5f1-40b9-aed8-e7a6fc808ec6] Intersecting scope entries count - 1
DEBUG: False MSAL 4.65.0.0 MSAL.CoreCLR .NET 9.0.4 Microsoft Windows 10.0.26120 [2025-05-01 18:33:41Z - ac586374-d5f1-40b9-aed8-e7a6fc808ec6] Matching entries after filtering by user - 1
DEBUG: False MSAL 4.65.0.0 MSAL.CoreCLR .NET 9.0.4 Microsoft Windows 10.0.26120 [2025-05-01 18:33:41Z - ac586374-d5f1-40b9-aed8-e7a6fc808ec6] [SaveTokenResponseAsync] Saving Id Token and Account in cache ...
DEBUG: False MSAL 4.65.0.0 MSAL.CoreCLR .NET 9.0.4 Microsoft Windows 10.0.26120 [2025-05-01 18:33:41Z - ac586374-d5f1-40b9-aed8-e7a6fc808ec6] [SaveTokenResponseAsync] Saving RT in cache...
DEBUG: False MSAL 4.65.0.0 MSAL.CoreCLR .NET 9.0.4 Microsoft Windows 10.0.26120 [2025-05-01 18:33:41Z - ac586374-d5f1-40b9-aed8-e7a6fc808ec6] IsLegacyAdalCacheEnabled: yes
DEBUG: False MSAL 4.65.0.0 MSAL.CoreCLR .NET 9.0.4 Microsoft Windows 10.0.26120 [2025-05-01 18:33:41Z - ac586374-d5f1-40b9-aed8-e7a6fc808ec6] Not writing FRT in ADAL legacy cache.
DEBUG: False MSAL 4.65.0.0 MSAL.CoreCLR .NET 9.0.4 Microsoft Windows 10.0.26120 [2025-05-01 18:33:41Z] [Internal cache] Total number of cache partitions found while getting refresh tokens: 1
DEBUG: False MSAL 4.65.0.0 MSAL.CoreCLR .NET 9.0.4 Microsoft Windows 10.0.26120 [2025-05-01 18:33:41Z] [Internal cache] Total number of cache partitions found while getting access tokens: 1
DEBUG: False MSAL 4.65.0.0 MSAL.CoreCLR .NET 9.0.4 Microsoft Windows 10.0.26120 [2025-05-01 18:33:41Z] [Internal cache] Total number of cache partitions found while getting refresh tokens: 1
DEBUG: False MSAL 4.65.0.0 MSAL.CoreCLR .NET 9.0.4 Microsoft Windows 10.0.26120 [2025-05-01 18:33:41Z - ac586374-d5f1-40b9-aed8-e7a6fc808ec6]
=== Token Acquisition finished successfully:
DEBUG: False MSAL 4.65.0.0 MSAL.CoreCLR .NET 9.0.4 Microsoft Windows 10.0.26120 [2025-05-01 18:33:41Z - ac586374-d5f1-40b9-aed8-e7a6fc808ec6] AT expiration time: 5/1/2025 7:55:58 PM +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 9.0.4 Microsoft Windows 10.0.26120 [2025-05-01 18:33:41Z - ac586374-d5f1-40b9-aed8-e7a6fc808ec6] Fetched access token from host login.microsoftonline.com.
DEBUG: False MSAL 4.65.0.0 MSAL.CoreCLR .NET 9.0.4 Microsoft Windows 10.0.26120 [2025-05-01 18:33:41Z - ac586374-d5f1-40b9-aed8-e7a6fc808ec6]
[LogMetricsFromAuthResult] Cache Refresh Reason: NotApplicable
[LogMetricsFromAuthResult] DurationInCacheInMs: 29
[LogMetricsFromAuthResult] DurationTotalInMs: 553
[LogMetricsFromAuthResult] DurationInHttpInMs: 607
DEBUG: False MSAL 4.65.0.0 MSAL.CoreCLR .NET 9.0.4 Microsoft Windows 10.0.26120 [2025-05-01 18:33:41Z - ac586374-d5f1-40b9-aed8-e7a6fc808ec6] TokenEndpoint: ****
DEBUG: InteractiveBrowserCredential.Authenticate succeeded. Scopes: [ https://management.core.windows.net//.default ] ParentRequestId: ExpiresOn: 2025-05-01T19:55:58.8378400+00:00
DEBUG: 2:33:41 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 9.0.4 Microsoft Windows 10.0.26120 [2025-05-01 18:33:41Z - d8406e5d-ad62-4d86-ac16-054d9e48053f] MSAL MSAL.CoreCLR with assembly version '4.65.0.0'. CorrelationId(d8406e5d-ad62-4d86-ac16-054d9e48053f)
DEBUG: False MSAL 4.65.0.0 MSAL.CoreCLR .NET 9.0.4 Microsoft Windows 10.0.26120 [2025-05-01 18:33:41Z - d8406e5d-ad62-4d86-ac16-054d9e48053f] === AcquireTokenSilent Parameters ===
DEBUG: False MSAL 4.65.0.0 MSAL.CoreCLR .NET 9.0.4 Microsoft Windows 10.0.26120 [2025-05-01 18:33:41Z - d8406e5d-ad62-4d86-ac16-054d9e48053f] LoginHint provided: False
DEBUG: False MSAL 4.65.0.0 MSAL.CoreCLR .NET 9.0.4 Microsoft Windows 10.0.26120 [2025-05-01 18:33:41Z - d8406e5d-ad62-4d86-ac16-054d9e48053f] Account provided: True
DEBUG: False MSAL 4.65.0.0 MSAL.CoreCLR .NET 9.0.4 Microsoft Windows 10.0.26120 [2025-05-01 18:33:41Z - d8406e5d-ad62-4d86-ac16-054d9e48053f] ForceRefresh: False
DEBUG: False MSAL 4.65.0.0 MSAL.CoreCLR .NET 9.0.4 Microsoft Windows 10.0.26120 [2025-05-01 18:33:41Z - d8406e5d-ad62-4d86-ac16-054d9e48053f]
=== 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 - d8406e5d-ad62-4d86-ac16-054d9e48053f
UserAssertion set: False
LongRunningOboCacheKey set: False
Region configured:
DEBUG: False MSAL 4.65.0.0 MSAL.CoreCLR .NET 9.0.4 Microsoft Windows 10.0.26120 [2025-05-01 18:33:41Z - d8406e5d-ad62-4d86-ac16-054d9e48053f] === 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 9.0.4 Microsoft Windows 10.0.26120 [2025-05-01 18:33:41Z] [Internal cache] Clearing user token cache accessor.
DEBUG: False MSAL 4.65.0.0 MSAL.CoreCLR .NET 9.0.4 Microsoft Windows 10.0.26120 [2025-05-01 18:33:41Z - d8406e5d-ad62-4d86-ac16-054d9e48053f] [Internal cache] Total number of cache partitions found while getting access tokens: 1
DEBUG: False MSAL 4.65.0.0 MSAL.CoreCLR .NET 9.0.4 Microsoft Windows 10.0.26120 [2025-05-01 18:33:41Z - d8406e5d-ad62-4d86-ac16-054d9e48053f] [FindAccessTokenAsync] Discovered 2 access tokens in cache using partition key: 1956948f-f4fc-4b38-9450-4f426126732e.de4bd3c1-1af3-4b17-8197-af243a41e675
DEBUG: False MSAL 4.65.0.0 MSAL.CoreCLR .NET 9.0.4 Microsoft Windows 10.0.26120 [2025-05-01 18:33:41Z - d8406e5d-ad62-4d86-ac16-054d9e48053f] [Region discovery] Not using a regional authority.
DEBUG: False MSAL 4.65.0.0 MSAL.CoreCLR .NET 9.0.4 Microsoft Windows 10.0.26120 [2025-05-01 18:33:41Z - d8406e5d-ad62-4d86-ac16-054d9e48053f] Access token is not expired. Returning the found cache entry. [Current time (05/01/2025 18:33:41) - Expiration Time (05/01/2025 19:55:58 +00:00) - Extended Expiration Time (05/01/2025 19:55:58 +00:00)]
DEBUG: False MSAL 4.65.0.0 MSAL.CoreCLR .NET 9.0.4 Microsoft Windows 10.0.26120 [2025-05-01 18:33:41Z - d8406e5d-ad62-4d86-ac16-054d9e48053f] Returning access token found in cache. RefreshOn exists ? False
DEBUG: False MSAL 4.65.0.0 MSAL.CoreCLR .NET 9.0.4 Microsoft Windows 10.0.26120 [2025-05-01 18:33:41Z - d8406e5d-ad62-4d86-ac16-054d9e48053f] [Region discovery] Not using a regional authority.
DEBUG: False MSAL 4.65.0.0 MSAL.CoreCLR .NET 9.0.4 Microsoft Windows 10.0.26120 [2025-05-01 18:33:41Z - d8406e5d-ad62-4d86-ac16-054d9e48053f]
=== Token Acquisition finished successfully:
DEBUG: False MSAL 4.65.0.0 MSAL.CoreCLR .NET 9.0.4 Microsoft Windows 10.0.26120 [2025-05-01 18:33:41Z - d8406e5d-ad62-4d86-ac16-054d9e48053f] AT expiration time: 5/1/2025 7:55:58 PM +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 9.0.4 Microsoft Windows 10.0.26120 [2025-05-01 18:33:41Z - d8406e5d-ad62-4d86-ac16-054d9e48053f]
[LogMetricsFromAuthResult] Cache Refresh Reason: NotApplicable
[LogMetricsFromAuthResult] DurationInCacheInMs: 0
[LogMetricsFromAuthResult] DurationTotalInMs: 13
[LogMetricsFromAuthResult] DurationInHttpInMs: 0
DEBUG: False MSAL 4.65.0.0 MSAL.CoreCLR .NET 9.0.4 Microsoft Windows 10.0.26120 [2025-05-01 18:33:41Z - d8406e5d-ad62-4d86-ac16-054d9e48053f] TokenEndpoint: ****
DEBUG: InteractiveBrowserCredential.GetToken succeeded. Scopes: [ https://management.core.windows.net//.default ] ParentRequestId: ExpiresOn: 2025-05-01T19:55:58.0000000+00:00
Retrieving subscriptions for the selection...
DEBUG: ============================ HTTP REQUEST ============================
HTTP Method:
GET
Absolute Uri:
https://management.azure.com/subscriptions/cfc74c36-dc41-44d3-9f7d-0a67b2cc76c9?api-version=2021-01-01
Headers:
Accept-Language : en-US
x-ms-client-request-id : 180997ca-9291-4492-9d3c-388adf83791a
Body:
DEBUG: ============================ HTTP RESPONSE ============================
Status Code:
OK
Headers:
Cache-Control : no-cache
Pragma : no-cache
x-ms-ratelimit-remaining-subscription-reads: 249
x-ms-ratelimit-remaining-subscription-global-reads: 3749
x-ms-request-id : 50f87199-3cbc-4f9f-8e22-ce32d1254463
x-ms-correlation-request-id : 50f87199-3cbc-4f9f-8e22-ce32d1254463
x-ms-routing-request-id : EASTUS:20250501T183342Z:50f87199-3cbc-4f9f-8e22-ce32d1254463
Strict-Transport-Security : max-age=31536000; includeSubDomains
X-Content-Type-Options : nosniff
X-Cache : CONFIG_NOCACHE
X-MSEdge-Ref : Ref A: 896BFA1618774DEABAA21947468B3D55 Ref B: BN1AA2051013049 Ref C: 2025-05-01T18:33:42Z
Date : Thu, 01 May 2025 18:33:42 GMT
Body:
{
"id": "/subscriptions/cfc74c36-dc41-44d3-9f7d-0a67b2cc76c9",
"authorizationSource": "RoleBased",
"managedByTenants": [],
"subscriptionId": "cfc74c36-dc41-44d3-9f7d-0a67b2cc76c9",
"tenantId": "de4bd3c1-1af3-4b17-8197-af243a41e675",
"displayName": "Visual Studio Enterprise Subscription – MPN",
"state": "Enabled",
"subscriptionPolicies": {
"locationPlacementId": "Public_2014-09-01",
"quotaId": "MSDN_2014-09-01",
"spendingLimit": "On"
}
}
DEBUG: 2:33:42 PM - [ConfigManager] Got nothing from [DisplaySecretsWarning], Module = [], Cmdlet = []. Returning default value [True].
DEBUG: 2:33:42 PM - [ConfigManager] Got nothing from [LoginExperienceV2], Module = [], Cmdlet = []. Returning default value [On].
DEBUG: 2:33:42 PM - [ConfigManager] Got [False] from [EnableLoginByWam], Module = [], Cmdlet = [].
DEBUG: 2:33:42 PM - [ConfigManager] Got nothing from [DisplayRegionIdentified], Module = [], Cmdlet = []. Returning default value [True].
DEBUG: 2:33:42 PM - [ConfigManager] Got nothing from [CheckForUpgrade], Module = [], Cmdlet = []. Returning default value [True].
DEBUG: AzureQoSEvent: Module: Az.Accounts:4.1.0; CommandName: Connect-AzAccount; PSVersion: 7.5.1; IsSuccess: True; Duration: 00:00:09.2054507; SanitizeDuration: 00:00:00.0009734
DEBUG: 2:33:42 PM - [ConfigManager] Got nothing from [EnableDataCollection], Module = [], Cmdlet = []. Returning default value [True].
DEBUG: 2:33:42 PM - ConnectAzureRmAccountCommand end processing.
OperationStopped: Method not found: 'Microsoft.Identity.Client.PublicClientApplicationBuilder
Microsoft.Identity.Client.Broker.BrokerExtension.WithBroker(Microsoft.Identity.Client.PublicClientApplicationBuilder,
Microsoft.Identity.Client.BrokerOptions)'.
12s ~/Code
>
I'm not seeing this on macOS. Could this be the MSAL issue when EXO and Graph cmdlet versions mismatch.
https://office365itpros.com/2023/10/20/powershell-module-clash-exo/
Shoot, it's actually affecting my EXO and IPPSSession connections. Any idea what combination of modules works or which ones actually create the conflict?
This is something with the latest EXO PowerShell module. I have the same issue on two different Windows machines, not with Maester, but with just connecting to EXO directly. So when Maester is trying to connect to EXO (as you saw @SamErde) it's generating this error. Seen some people were able to fix it by downgrading their EXO PS Module...hopefully Microsoft will come out with an updated EXO module that has this fixed...
I downgraded to EXO Module 3.5.1 (https://www.oneidentity.com/community/identity-manager/f/forum/38763/connecting-to-exchange-online-throws-error-during-sync-project-configuration-1im-v9-2) and the issue went away. @merill - does Maester always try to grab the latest? Or would it leave 3.5.1 alone until we manually update to a fixed version of the EXO module in the future?
P.S. I did try changing the order I loaded modules similar to that article from a couple years ago from Tony but didn't seem to help
I'll try that. If it solves my problem I can submit a PR that pins Maester to the working combination.
@SamErde also looks like 3.7.1 for ExchangeOnlineManagement works. When I went from 3.7.1 to 3.7.2 it started failing. Looks like it's still broken in 3.8.0-Preview1 & Preview2
But...just found out: Install-module -name ExchangeOnlineManagement -Scope AllUsers -RequiredVersion 3.6.0 actually install 3.7.1 Install-module -name ExchangeOnlineManagement -Scope AllUsers -RequiredVersion 3.7.1 actually install 3.7.2
@SamErde also looks like 3.7.1 for ExchangeOnlineManagement works. When I went from 3.7.1 to 3.7.2 it started failing. Looks like it's still broken in 3.8.0-Preview1 & Preview2
But...just found out: Install-module -name ExchangeOnlineManagement -Scope AllUsers -RequiredVersion 3.6.0 actually install 3.7.1 Install-module -name ExchangeOnlineManagement -Scope AllUsers -RequiredVersion 3.7.1 actually install 3.7.2
That's weird. The ExchangeOnlineManagement module manifest on the PowerShell Gallery looks correct:
Did we get to the bottom of this? I see the problem on one device but not on another.
I have not yet, and experienced a new variation of the issue that I am checking to see if it can be reproduced consistently: the order of importing modules can help, [depending on which versions are installed(?)]. I noticed yesterday that sometimes the Connect-MicrosoftTeams cmdlet was missing from the imported functions entirely. However, if I imported the Teams module and connected to Teams first, it succeeded and allowed others to still connect.
...but I definitely do not have a reliable combination of module versions yet!
I experience the same issue when ExchangeOnlineManagement 3.7.2 is installed. Downgrading to 3.7.1 fixed this error. I also however experience issue #875
Environment
- OS: Windows 11 24H2
- PSVersion: 7.5.1
- Maester version 1.1.0
I found a workaround. Maybe it help some folks here: https://github.com/microsoftgraph/msgraph-sdk-powershell/discussions/3254#discussioncomment-13328568.
I found a workaround. Maybe it help some folks here: microsoftgraph/msgraph-sdk-powershell#3254 (comment).
🤯 What am I missing? I see that you said an error is expected with the dummy credential ('Password cannot be empty in UsernamePassword flow') but how does this facilitate the actual connection? My workaround has been to use an actual UPN and deal with the authentication prompt.
Resolved in #973.
I just received this error today when running Connect-Maester -Service All.
maester-tests> connect-maester -Service All OperationStopped: Method not found: 'Microsoft.Identity.Client.PublicClientApplicationBuilder Microsoft.Identity.Client.Broker.BrokerExtension.WithBroker(Microsoft.Identity.Client.PublicClientApplicationBuilder, Microsoft.Identity.Client.BrokerOptions)'.
I just received this error today when running Connect-Maester -Service All.
maester-tests> connect-maester -Service All OperationStopped: Method not found: 'Microsoft.Identity.Client.PublicClientApplicationBuilder Microsoft.Identity.Client.Broker.BrokerExtension.WithBroker(Microsoft.Identity.Client.PublicClientApplicationBuilder, Microsoft.Identity.Client.BrokerOptions)'.
Which version of Maester are you using? Please share the output of Get-Module -Name 'Maester' -ListAvailable.
@SamErde v1.3.0. After I posted I dug more into it and I see the issue with EXO module. I haven’t downgraded versions yet but I find that if I connect to EXO first using connect-exchangeonlinemanagement , the connect-maester doesn’t error.
@SamErde v1.3.0. After I posted I dug more into it and I see the issue with EXO module. I haven’t downgraded versions yet but I find that if I connect to EXO first using connect-exchangeonlinemanagement , the connect-maester doesn’t error.
Connecting to Exchange Online first is usually a good workaround. If you are able to update Maester to the latest prwview version, there is a function in place now that pretty reliably handles that for you.
@SamErde that worked! Although I am seeing other errors which I'll probably open a new bug report for.
@SamErde that worked! Although I am seeing other errors which I'll probably open a new bug report for.
Was it the new [preview] version that worked, or connecting to Exchange first? :)
THe new preview version worked. I found that connecting to EXO first sometimes worked, other times it didn't. (Although I have only tested the new version once so far).
On Fri, Aug 8, 2025 at 11:40 AM Sam Erde @.***> wrote:
SamErde left a comment (maester365/maester#876) https://github.com/maester365/maester/issues/876#issuecomment-3168341965
@SamErde https://github.com/SamErde that worked! Although I am seeing other errors which I'll probably open a new bug report for.
Was it the new [preview] version that worked, or connecting to Exchange first? :)
— Reply to this email directly, view it on GitHub https://github.com/maester365/maester/issues/876#issuecomment-3168341965, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACBMF56G4HBCEFMR66ALAQT3MTAIDAVCNFSM6AAAAAB4INVW4WVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZTCNRYGM2DCOJWGU . You are receiving this because you commented.Message ID: @.***>
Just adding this as a reference as these WAM changes to the underlying modules come up often enough that an interactive work around can be nice for validating with. This would STILL have the DLL conflicts that @SamErde resolved with his PR, but would allow controlling which DLL you call through.
https://david-homer.blogspot.com/2025/01/exchange-online-management-powershell.html#:~:text=Workaround%203%3A%20Handle%20MSAL%20Authentication%20yourself