ssms microsoft MFA dialog box does not show up

Vladislav Hrdina 25 Reputation points
2024-08-19T11:08:59.17+00:00

Hi,

I just had my work laptop reinstalled with new system to Windows 11 (from W10)

I'm using sql server management studio to connect to the database using the Microsoft Entra MFA Authentication option. When I provide the account name and hit connect, the window is in sort of "in progress" state as seen on the attached file and the dialog window where I'd provide the password does not show up.

Basically I was able to log in in the morning to database on W10 just fine, but I was not able to do it few hours later on W11. Initially I tried it on newest version of smss, but then I downgraded to my previous 19.3 version.

When using the Azure Data Studio, I'm able to access the database just fine using the same log in details, so I'm wondering if there's something wrong with either the W11 instance, my account or something else.

Azure SQL Database
0 comments No comments
{count} votes

Accepted answer
  1. Vinodh247 34,661 Reputation points MVP Volunteer Moderator
    2024-09-02T10:21:01.5066667+00:00

    Thanks Vladislav Hrdina

    Glad to know that you were able to figure this out and thanks for sharing the rootcause. By the way, Microsoft Q&A community has a policy that "The question author cannot accept their own answer, they can only accept answers by others.". Hence request you to accept this as an answer so we can close this thread. I am summarizing the issue and root cause you have found for it.

    Issue Summary: After reinstalling Windows 11, I can't connect to the database via SQL Server Management Studio using Microsoft Entra MFA, though Azure Data Studio works fine with the same credentials.

    Fix: Resolved the issue by creating a local profile for the Lieberman account, switching the default browser to Chrome, which successfully loaded the database page.


1 additional answer

Sort by: Most helpful
  1. Vinodh247 34,661 Reputation points MVP Volunteer Moderator
    2024-08-19T14:47:15.7033333+00:00

    Hi Vladislav Hrdina,

    Thanks for reaching out to Microsoft Q&A.

    1. Check SSMS Version: Ensure you are using SSMS version 18.6 or later, as earlier versions do not support Microsoft Entra authentication with MFA. You mentioned using version 19.3, which is compatible, but confirm that it is the latest version available.
    2. Clear SSMS Cache: Clear the cache for SSMS. Navigate to the following directory and delete the contents:
         %AppData%\Microsoft\SQL Server Management Studio
      
      After clearing the cache, restart SSMS and try connecting again.
      1. Windows Credential Manager: Open Windows Credential Manager and remove any stored credentials related to your Azure account. This can help resolve issues with expired or incorrect credentials.
    3. Firewall Configuration: Ensure that your corporate firewall allows traffic on port 1433, which is the default port for SQL Server connections. If you are behind a corporate firewall, this could be blocking the connection.

    Additional Troubleshooting Steps

    1. Re-register MFA: If the issue persists, consider re-registering your MFA settings. This may involve logging into your Azure account and ensuring that MFA is correctly configured for your user account.
    2. Use Azure Data Studio: Since you mentioned that Azure Data Studio works fine with the same credentials, it may be beneficial to continue using it if the problem with SSMS cannot be resolved quickly.
    3. Check for Updates: Ensure that your Windows 11 installation is fully updated, as there may be compatibility patches or updates that could resolve issues with SSMS.

    Please 'Upvote'(Thumbs-up) and 'Accept' as an answer if the reply was helpful. This will benefit other community members who face the same issue.


Your answer

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