An Azure relational database service.
Hi @Mano,
Welcome to Microsoft Q&A forum.
As I understand it, you've done a thorough job setting up your Azure SQL database and configuring Azure AD authentication. The issue you're encountering, with the Entra Admin being recognized as an EXTERNAL GROUP instead of an EXTERNAL USER, can be tricky.
Here are a few steps and considerations that might help resolve this:
1.Ensure that the user you're adding as the Entra Admin is indeed a user and not part of a group. Double-check the user details in Azure AD.
2.Sometimes, using the Azure portal might not reflect changes immediately. Try using Azure CLI or PowerShell to add the Azure AD user as an admin.
az sql server ad-admin create --display-name
--object-id
--resource-group
--server
3.Ensure that Azure AD authentication is properly configured on your SQL server. You can check this in the Azure portal under the SQL server settings.
4.Sometimes, there might be a delay in syncing changes from Azure AD to the SQL database. Give it some time and try again.
5.Ensure that the Azure AD user has the necessary permissions on the database. You can run the following SQL command to grant the necessary permissions:
CREATE USER [AzureADUser] FROM EXTERNAL PROVIDER;
ALTER ROLE db_owner ADD MEMBER [AzureADUser];
6.Check the SQL server logs for any errors or warnings related to Azure AD authentication. This might give you more insight into what’s going wrong.
For more information, please refer the documents:
Hope this helps. Do let us know if you any further queries.
If this answers your query, do click Accept Answer and Yes for was this answer helpful. And, if you have any further query do let us know.