unable to connect to AzAccount

Glenn Maxwell 13,121 Reputation points
2024-07-31T05:38:08.31+00:00

Hi All ,from today i am facing issue connecting to AzAccount i am getting below error please guide me.

Connect-AzAccount : UsernamePasswordCredential authentication failed: There was an error parsing WS-Trust response from the endpoint. This may occur if there is an issue with your ADFS configuration. See  https://aka.ms/msal-net-iwa-troubleshooting for more details. Error Message: Object reference not set to an instance of an object. See the troubleshooting guide for more information. https://aka.ms/azsdk/net/identity/usernamepasswordcredential/troubleshoot At line:1 char:1 + Connect-AzAccount -Credential (get-credential -UserName myusername ... + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~     + CategoryInfo          : CloseError: (:) [Connect-AzAccount], AuthenticationFailedException     + FullyQualifiedErrorId : Microsoft.Azure.Commands.Profile.ConnectAzureRmAccountCommand  

Windows for business | Windows Server | User experience | PowerShell
{count} votes

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.