Failed to retrieve account authentication token - SSMS

Chun Hanssen 110 Reputation points
2025-11-07T13:38:23.2833333+00:00

I was trying to connect my Azure account in SSMS but was faced with the following error. Any ideas on how to mitigate this?

User's image

Azure SQL Database
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Amira Bedhiafi 40,726 Reputation points Volunteer Moderator
    2025-11-10T18:26:36.36+00:00

    Hello Chun !

    Thank you for posting on Microsoft Learn Q&A.

    SSMS tried to reuse a cached token, but your tenant/CA policy now requires an interactive MFA sign in so token retrieval fails.

    In SSMS, go to file then account Settings then sign out (or in object explorer, disconnect).

    Reconnect and in the connect to server window set authentication = Azure Active Directory – Universal with MFA and complete the MFA prompt.

    If the WAM prompt never shows or still fails, switch off WAM in SSMS


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.