Azure AD Admin cannot access the Azure SQL database over VPN

Mano 0 Reputation points
2025-01-31T16:31:47.0466667+00:00

I have setup an Azure SQL database and secured behind Azure VPN. Azure VPN is already configured to use Azure AD and works fine. When connecting to the database, I can use a local IP as I have to connect to the VPN before connecting to the database. Currently access to the database uses SQL authentication and access to the database works without any issue.

I enabled Azure AD authentication recently by adding an Entra Admin through the portal. However, I was not able to connect to the database using Azure AD credentials even after providing the Entra Admin owner level access to the resource.

After checking most documentation and several suggestions online, including Chat GPT, I have come to a stand still on this issue. The current setup seems well aligned with all Microsoft documentation and expert suggestions, however, the only thing I could suspect is that when the Entra Admin is added via the portal or through Azure CLI, the entry in the master table shows the Admin as EXTERNAL GROUP and not EXTERNAL USER.

The following SQL statement returns EXTERNAL GROUP as type_desc instead of EXTERNAL USER when queried using SQL authentication (as I cannot login using AD authentication):

SELECT * FROM sys.database_principals 
WHERE type_desc = 'EXTERNAL_USER' OR type_desc = 'EXTERNAL_GROUP';

I would like to note that I am adding a user as Entra Admin for the database and not a security group and have checked this in Entra ID and confirmed.

Any help / guidance on how I can setup the Entra Admin to be added as EXTERNAL USER to the master table and access the database via Azure AD authentication is greatly appreciated.

Azure SQL Database
Azure
Azure
A cloud computing platform and infrastructure for building, deploying and managing applications and services through a worldwide network of Microsoft-managed datacenters.
1,093 questions
{count} votes

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.