I am looking for a way to sign in into Azure SQL DB with my AAD credentials, but I only want to have read-only access.
First try
- Opened Azure SQL Server Access Control (IAM) tab.
- Added myself a
Managed Applications Reader
role. - This doesn't allow me to connecto to the DB with the following error.
Cannot connect to abc.database.windows.net.
------------------------------
ADDITIONAL INFORMATION:
One or more errors occurred. (mscorlib)
------------------------------
AADSTS900021: Requested tenant identifier '00000000-0000-0000-0000-000000000000' is not valid.
Tenant identifiers may not be an empty GUID.
Trace ID: xxx
Correlation ID: yyy
Timestamp: 2020-04-09 08:57:20Z (System.Data)
Second try
- Opened Azure SQL Server Active Directory Admin.
- Added myself as an admin.
- This allows me to connect now with AAD credentials, but I have all the permissions I am scared to have on a prod DB now.
Is this achievable?