Azure DB secure through Azure Active Directory
PatrickS
Posts: 3 New member
in SQL Search
According to the release notes, SQL Search added support for Azure SQL DB's in version 2.2.
However, we're using SSMS 2017, SQL Search v2.4.4.1453 and connecting to an Azure SQL Database. In SQL Search, the list of object types as well as the list of database names is disabled and blank. If I look in the log files I see:
30 Aug 2017 12:08:27.717 [1] ERROR RedGate.SQLSearch.Addin.LoggingErrorHandler - Failed to get the object hierarchy
Exception: Exception has been thrown by the target of an invocation.
30 Aug 2017 12:08:27.850 [1] ERROR RedGate.SQLSearch.Addin.LoggingErrorHandler - Failed to get the object hierarchy
Exception: Exception has been thrown by the target of an invocation.
30 Aug 2017 12:08:27.874 [66] ERROR RedGate.SQLSearch.Addin.LoggingErrorHandler - Exception while indexing Jobs on XXXXXX.database.windows.net:
Exception: Cannot open server "somedomain.com" requested by the login. The login failed.
30 Aug 2017 12:08:28.236 [1] ERROR RedGate.SQLSearch.Addin.LoggingErrorHandler - Failed to get the object hierarchy
Exception: Exception has been thrown by the target of an invocation.
30 Aug 2017 12:08:28.413 [1] ERROR RedGate.SQLSearch.Addin.LoggingErrorHandler - Failed to get the object hierarchy
Exception: Exception has been thrown by the target of an invocation.
30 Aug 2017 12:08:28.450 [60] ERROR RedGate.SQLSearch.Addin.LoggingErrorHandler - Exception while indexing Jobs on XXXXXX.database.windows.net:
Exception: Cannot open server "somedomain.com" requested by the login. The login failed.
I'm already connected to the database and can do anything I want (queries, sprocs, inserts, adds, deletes, etc...) so I don't know where the "login failed" is coming from.
Is this scenario (Azure SQL DB secured through Azure Active Directory) supported?
However, we're using SSMS 2017, SQL Search v2.4.4.1453 and connecting to an Azure SQL Database. In SQL Search, the list of object types as well as the list of database names is disabled and blank. If I look in the log files I see:
30 Aug 2017 12:08:27.717 [1] ERROR RedGate.SQLSearch.Addin.LoggingErrorHandler - Failed to get the object hierarchy
Exception: Exception has been thrown by the target of an invocation.
30 Aug 2017 12:08:27.850 [1] ERROR RedGate.SQLSearch.Addin.LoggingErrorHandler - Failed to get the object hierarchy
Exception: Exception has been thrown by the target of an invocation.
30 Aug 2017 12:08:27.874 [66] ERROR RedGate.SQLSearch.Addin.LoggingErrorHandler - Exception while indexing Jobs on XXXXXX.database.windows.net:
Exception: Cannot open server "somedomain.com" requested by the login. The login failed.
30 Aug 2017 12:08:28.236 [1] ERROR RedGate.SQLSearch.Addin.LoggingErrorHandler - Failed to get the object hierarchy
Exception: Exception has been thrown by the target of an invocation.
30 Aug 2017 12:08:28.413 [1] ERROR RedGate.SQLSearch.Addin.LoggingErrorHandler - Failed to get the object hierarchy
Exception: Exception has been thrown by the target of an invocation.
30 Aug 2017 12:08:28.450 [60] ERROR RedGate.SQLSearch.Addin.LoggingErrorHandler - Exception while indexing Jobs on XXXXXX.database.windows.net:
Exception: Cannot open server "somedomain.com" requested by the login. The login failed.
I'm already connected to the database and can do anything I want (queries, sprocs, inserts, adds, deletes, etc...) so I don't know where the "login failed" is coming from.
Is this scenario (Azure SQL DB secured through Azure Active Directory) supported?
Tagged:
Comments
Sorry, this isn't supported. We have an outstanding feature request for this on our system and I've added a note to it to say that you would like to see this implemented.
Apologies.
Redgate Software
Redgate Software
Redgate Software
The latest SQL Search version (v 3.2.2) released today should now support Azure AD authentication.
Note that exception referring to a wrong server "mydomain.com" which is part of login "user@mydomain.com" but server selector within SQL Search shows proper "XXXX.XXXX.database.windows.net"
I am connecting from SSMS (version: 14.0.17289.0) via Active Directory - Universal with MFA support to an Azure Managed Instance.
These are the errors I'm seeing in the SQLSearchAddin Log:
System.Data.SqlClient.SqlException (0x80131904): Cannot open server "database.windows.net" requested by the login. The login failed.
Exception: Exception has been thrown by the target of an invocation.