Configure Azure SQL Managed Instance for Windows Authentication

Harrison Reeves-Williams 0 Reputation points
2023-04-05T12:48:19.3033333+00:00

My environment consists of two domains: one is the on-premises Windows AD domain, and the other is the Azure AD tenant. The two domains are connected, and Azure AD Connect is set up to sync a specific OU with selected security groups to Azure AD. (The Idea being these security groups with have my users in on the local AD and the group synced to Azure and linked to the SQL DB) I use simlar setup for Share drives hosted on Storage account setup to be access’s to on prem users) I have a SQL Managed Instance in Azure that i want to configure to accept Kerberos authentication from the on-premises Windows AD domain. To do this, i have set up an incoming trust-based flow from the on-premises Windows AD domain to Azure AD. I have also verified that the security group containing the users i want to grant access to the SQL Managed Instance has been synced to Azure AD. I then followed the steps to configure the SQL Managed Instance to accept Kerberos authentication for the security group. I created an SPN for the SQL Managed Instance and registered it with the service account using the setspn.exe tool. However, when attempting to connect to the SQL Managed Instance with a Windows account, I encountered an error when creating the login. “login was from an untrusted domain and could not be used with integrated authentication.” This is the guide I have followed: https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/winauth-azuread-setup-incoming-trust-based-flow?view=azuresq I have tried to recreate all the setup from the guide and its not working I’m struggling to find which direction I should be looking at.

Azure SQL Database
Windows for business Windows Client for IT Pros Directory services Active Directory
Microsoft Security Microsoft Entra Microsoft Entra ID
Windows for business Windows Client for IT Pros User experience Other
{count} votes

1 answer

Sort by: Most helpful
  1. Alberto Morillo 34,671 Reputation points MVP Volunteer Moderator
    2023-04-05T14:59:12.53+00:00

    Please see the steps provided on this article also.

    0 comments No comments

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.