Error
Connect-AzAccount : Method not found: ‘System.Threading.Tasks.Task`1 Azure.Identity.InteractiveBrowserCredential.AuthenticateAsync(Azure.Core.TokenRequestContext, System.Threading.CancellationToken)’.
Could not find tenant id for provided tenant domain ‘xxxxxx’. Please ensure that the provided user is found in the provided tenant domain.
At line:1 char:1
- Connect-AzAccount -Tenant “xxxxxx”
~~~~~~~~~~~~~~~~- CategoryInfo : CloseError: (:) [Connect-AzAccount], ArgumentNullException
- FullyQualifiedErrorId : Microsoft.Azure.Commands.Profile.ConnectAzureRmAccountCommand
Solution
- Run Clear-AzContext
- Delete folder C:\Users\<userid>\.Azure
- Close-down Powershell / Powershell ISE and start Powershell again
Background
Az-module was updated to latest version, but was throwing the above error when connecting to Azure.