Comments
20 comments
-
Hi @Faizul_Hussain
Can I ask are you using an Azure Managed Instance authentication using Entra MFA (Azure AD MFA)? -
Hi @DanC,
Yes we are using Entra with MFA
Thanks -
Hi @Faizul_Hussain
This is currently a known issue with Azure Managed Instances and using Entra with MFA
Could you downgrade to using this version here: https://download.red-gate.com/checkforupdates/SQLPrompt/SQLPrompt_10.14.6.5992.exe
Then also use SSMS versions 18.12.1 or 19.2 -
Hi @DanC,
This issue happens even with local instance of SQL Server, not just Azure Managed instances
I have tried SSMS 19.2 and SQLPrompt_10.14.6.5992.exe
Thanks -
I have tried SSMS 19.2 and SQLPrompt_10.14.6.5992.exe
-
Hi @Faizul_Hussain
We had a release today which should address the issue when on the latest version of SSMS: https://download.red-gate.com/checkforupdates/SQLPrompt/SQLPrompt_10.14.10.7538.exe -
Same issue unfortunately
-
Hi @Faizul_Hussain
I'm going to reach out via a support ticket to investigate this further with you
-
I am running into this same issue. Logs show the following error:Microsoft.Data.SqlClient.SqlException (0x80131904): Login failed for user '<token-identified principal>'.at Microsoft.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)at Microsoft.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)at Microsoft.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)at Microsoft.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj)at Microsoft.Data.SqlClient.SqlInternalConnectionTds.CompleteLogin(Boolean enlistOK)at Microsoft.Data.SqlClient.SqlInternalConnectionTds.AttemptOneLogin(ServerInfo serverInfo, String newPassword, SecureString newSecurePassword, Boolean ignoreSniOpenTimeout, TimeoutTimer timeout, Boolean withFailover, Boolean isFirstTransparentAttempt, Boolean disableTnir)at Microsoft.Data.SqlClient.SqlInternalConnectionTds.LoginNoFailover(ServerInfo serverInfo, String newPassword, SecureString newSecurePassword, Boolean redirectedUserInstance, SqlConnectionString connectionOptions, SqlCredential credential, TimeoutTimer timeout)at Microsoft.Data.SqlClient.SqlInternalConnectionTds.OpenLoginEnlist(TimeoutTimer timeout, SqlConnectionString connectionOptions, SqlCredential credential, String newPassword, SecureString newSecurePassword, Boolean redirectedUserInstance)at Microsoft.Data.SqlClient.SqlInternalConnectionTds..ctor(DbConnectionPoolIdentity identity, SqlConnectionString connectionOptions, SqlCredential credential, Object providerInfo, String newPassword, SecureString newSecurePassword, Boolean redirectedUserInstance, SqlConnectionString userConnectionOptions, SessionData reconnectSessionData, ServerCertificateValidationCallback serverCallback, ClientCertificateRetrievalCallback clientCallback, DbConnectionPool pool, String accessToken, SqlClientOriginalNetworkAddressInfo originalNetworkAddressInfo, Boolean applyTransientFaultHandling)at Microsoft.Data.SqlClient.SqlConnectionFactory.CreateConnection(DbConnectionOptions options, DbConnectionPoolKey poolKey, Object poolGroupProviderInfo, DbConnectionPool pool, DbConnection owningConnection, DbConnectionOptions userOptions)at Microsoft.Data.ProviderBase.DbConnectionFactory.CreateNonPooledConnection(DbConnection owningConnection, DbConnectionPoolGroup poolGroup, DbConnectionOptions userOptions)at Microsoft.Data.ProviderBase.DbConnectionFactory.TryGetConnection(DbConnection owningConnection, TaskCompletionSource`1 retry, DbConnectionOptions userOptions, DbConnectionInternal oldConnection, DbConnectionInternal& connection)at Microsoft.Data.ProviderBase.DbConnectionInternal.TryOpenConnectionInternal(DbConnection outerConnection, DbConnectionFactory connectionFactory, TaskCompletionSource`1 retry, DbConnectionOptions userOptions)at Microsoft.Data.ProviderBase.DbConnectionClosed.TryOpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory, TaskCompletionSource`1 retry, DbConnectionOptions userOptions)at Microsoft.Data.SqlClient.SqlConnection.TryOpenInner(TaskCompletionSource`1 retry)at Microsoft.Data.SqlClient.SqlConnection.TryOpen(TaskCompletionSource`1 retry, SqlConnectionOverrides overrides)at Microsoft.Data.SqlClient.SqlConnection.Open(SqlConnectionOverrides overrides)at Microsoft.Data.SqlClient.SqlConnection.Open()at RedGate.SqlPrompt.Cache.Candidates.DatabaseCandidate.LoadDatabase()This only occurs when logged in via Entra MFASSMS Version: 19.3.4.0SQL Prompt: 10.14.10.7538
-
DanC said:Hi @Faizul_Hussain
I'm going to reach out via a support ticket to investigate this further with you
SQL Prompt -- 10.14.10.7538SSMS -- 18.12.1
Thanks,
-
I have the exact same issue and have tried reinstalling multiple times with no success. Has anyone found a solution? Found that any updates have worked?
-
Hi @Sparx
Unfortunately, this is still currently a bug in the tool
I would advise reaching out with a support ticket to keep updated -
Checking the 'Trust server certificate' when connecting to the server resolved the issue for me.
-
DougY said:Checking the 'Trust server certificate' when connecting to the server resolved the issue for me.
-
None of the above worked for me either. Azure MFA connection generates in logs:
SqlException (0x80131904): Login failed for user '<token-identified principal>'.
-
I am experiencing the same issue connecting to an Azure SQL Managed Instance (authenticated with Microsoft Entra MFA) with SQL Prompt 10.14.18.8999. I have tried with both SSMS 19.3 and 20.1.
I have tried checking Trust Server Certificate and the error still exists. -
Same issue here connecting to an Azure SQL Managed Instance (authenticated with Microsoft Entra MFA) with SSMS 20.1 & SQL Prompt 10.14.19.89311
-
FYI, I received this message from support:Can you uninstall SQL Prompt, then reinstall using the installer below?https://download.red-gate.com/checkforupdates/SQLPrompt/SQLPrompt_10.14.4.4865.exe
This version does allow SQL Prompt to work properly in SSMS 19.3. I was unable to get it to install for SSMS 20.1. -
I also got this from support when I asked when the latest version of SQL Prompt would work:The issue is caused by conflicting MDS versions between SSMS and SQL Prompt. It's currently under investigation with the developers.As of now, you will have to continue using 10.14.4 if you wish to use Azure Managed Instances + MFA authentication.
-
I currently have SSMS v20.2 and SQL prompt v10.14.21.9884 installed. Could you advise which latest combination address the prompt suggestion issues please?
I'm seeing the same issue on azure MFA
Add comment
Please sign in to leave a comment.
This is not isolated, its all users, in all machines, physical laptops, VM's etc...
Using Azure database