we are running PoC on SQL Server Managed Instance but it doesn't seem to be walk in the park and we're hit some blockers. Hoping some of you may have resolved this already and can share some experiences :)
Our Business Acceptance Criteria:
- Users must be able to run standard SQL queries- OK
- Users must be able to correlate data between databases on cloud-based server- BLOCKED
- Users must be able to access from and to on-prem linked servers- BLOCKED
- Users must be able to access data with existing tools
- SSMS - OK
- Spotfire- OK
- PowerBI - BLOCKED, AAD user doesn't work!
- Excel - BLOCKED, AAD user doesn't work!
- Tableau - Pending
Given I have SQL Server Managed Instance with these setup
- SQL Managed Instance, General Purpose
- MI on private VNet, we have Azure AD synced with our ON-PREM AD
- Lifted two databases
DB1
,DB2
from ON-PREM instances - MI Containment = Disabled,
DB1
andDB2
Containment = None - Mapped existing user groups from Azure AD (AAD) DB_ADM_USERS
- Granted DBO role on group
DB_ADM_USERS
on each databaseDB1
,DB2
- Granted DBO role on group
DB_ADM_USERS
onMASTER
- Added linked servers to ON-PREM instances using option #4 Security Context with remote user and password
- I have
USER1
who is part of AAD GroupDBM_ADM_USERS
USER1
connects via latest version of SSMSUSER1
connects using Active Directory - Integrated
Questions: When user logs in Uses Active Directory - Integrated
- If USER1 doest not specify databases in connection, we get connection error
Cannot connect to xxxx.xxxx.database.windows.net. Login failed for user 'NT AUTHORITY\ANONYMOUS LOGON'. (Microsoft SQL Server, Error: 18456)
- If USER1 specifies the database to connect to such as
DB1
User can successfully connects, DB1 objects are accessible
User CANNOT see DB2
is not accessible and all other objects including the Linked Servers
- If USER1 specifies the database to connect to such as
DB2
User can successfully connects, DB2
objects are accessible
User CANNOT see DB1
is not accessible and all other objects including the Linked Servers
Thanks in advanced - Ardi