I solved same issue with executing below command in windows PowerShell and ISE PowerShell
Update-AzConfig -EnableLoginByWam $false
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Hi Team,
Can someone here please assist me with this error to connect my PowerShell session using the Connect-AzAccount ?
PS C:\WINDOWS\system32\WindowsPowerShell\v1.0> Connect-AzAccount
WARNING: Unable to acquire token for tenant 'organizations' with error 'InteractiveBrowserCredential authentication failed: Method not found: 'Void Microsoft.Identity.Client.Extensions.Msal.MsalCacheHelper.RegisterCache(Micros
oft.Identity.Client.ITokenCache)'.'
WARNING: Please run 'Connect-AzAccount -DeviceCode' if browser is not supported in this session.
Connect-AzAccount : InteractiveBrowserCredential authentication failed: Method not found: 'Void Microsoft.Identity.Client.Extensions.Msal.MsalCacheHelper.RegisterCache(Microsoft.Identity.Client.ITokenCache)'.
At line:1 char:1
+ Connect-AzAccount
+ ~~~~~~~~~~~~~~~~~
+ CategoryInfo : CloseError: (:) [Connect-AzAccount], AuthenticationFailedException
+ FullyQualifiedErrorId : Microsoft.Azure.Commands.Profile.ConnectAzureRmAccountCommand
PS C:\WINDOWS\system32\WindowsPowerShell\v1.0> Connect-AzAccount -UseDeviceAuthentication
WARNING: Unable to acquire token for tenant 'organizations' with error 'DeviceCodeCredential authentication failed: Method not found: 'Void Microsoft.Identity.Client.Extensions.Msal.MsalCacheHelper.RegisterCache(Microsoft.Iden
tity.Client.ITokenCache)'.'
Connect-AzAccount : DeviceCodeCredential authentication failed: Method not found: 'Void Microsoft.Identity.Client.Extensions.Msal.MsalCacheHelper.RegisterCache(Microsoft.Identity.Client.ITokenCache)'.
At line:1 char:1
+ Connect-AzAccount -UseDeviceAuthentication
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : CloseError: (:) [Connect-AzAccount], AuthenticationFailedException
+ FullyQualifiedErrorId : Microsoft.Azure.Commands.Profile.ConnectAzureRmAccountCommand
PS C:\WINDOWS\system32\WindowsPowerShell\v1.0> Clear-AzContext PS C:\WINDOWS\system32\WindowsPowerShell\v1.0> Clear-AzContext -Scope CurrentUser Clear-AzContext : Method not found: 'Void Microsoft.Identity.Client.Extensions.Msal.MsalCacheHelper.RegisterCache(Microsoft.Identity.Client.ITokenCache)'. At line:1 char:1 + Clear-AzContext -Scope CurrentUser + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : CloseError: (:) [Clear-AzContext], MissingMethodException + FullyQualifiedErrorId : Microsoft.Azure.Commands.Profile.Context.ClearAzureRmContext
Thank you in advance.
I solved same issue with executing below command in windows PowerShell and ISE PowerShell
Update-AzConfig -EnableLoginByWam $false
Hi,
Typically this happens because of some outdated module, simply try by updating them:
I included the MS id client as The error points towards an issue with the Microsoft.Identity.Client.
Update-Module -Name Az
Install-Module -Name Microsoft.Identity.Client
or just fresh re-install:
Uninstall-Module -Name Az -AllVersions
Install-Module -Name Az -AllowClobber -Scope CurrentUser
Also, check if you have the latest Powershell installed and .Net Fw:
$PSVersionTable.PSVersion
and for .Net go in: (Regedit)
HKLM:\SOFTWARE\Wow6432Node\Microsoft\NET Framework Setup\NDP
I hope that this was useful !