Connecting to "SQL Server on Azure VM" SQL instance through the internet, using "Active Directory - Password" authentication

Nikos Drakopoulos 1 Reputation point
2021-05-25T13:08:52.05+00:00

Hi all,

I have a "SQL Server on Azure VM" on Azure, which is simply a Windows Server with preinstalled SQL server as far as I can tell.
I have created an "Azure AD Domain Services" domain, and joined the server successfully there, so user management is on Azure AD.

Now I'm trying to connect to the SQL server directly through the internet, by using an account on this directory. I can successfully logon to the server using an SQL user, so firewalls etc are configured correctly. I can also logon to the SQL instance locally from the server, so the permissions are also set properly.

But when trying to connect by using "Active Directory - Password" on either the SQL Management studio, or my .net application, I get error "Login failed for user ". (Microsoft SQL Server, error: 18456)

Please note that the above scenario works properly if I use either "Azure SQL Database" or "Azure SQL Managed Instance", after adding the user as an "Active Directory admin" in the Azure portal.

Am I missing something on the configuration of Azure AD? Or is this scenario just not supported?

Thanks in advance

SQL Server on Azure Virtual Machines
Microsoft Entra
{count} votes

2 answers

Sort by: Most helpful
  1. Rohith C 1 Reputation point
    2022-04-14T10:51:51.417+00:00

    Hi,
    Were you able to find the cause here ? i have the same issue

    Regards,
    Rohith

    0 comments No comments

  2. Masood Ahmad Mohammed Ishaq 6 Reputation points
    2022-06-15T10:13:34.54+00:00

    Hi
    we are also looking for a solution to this scenario.

    Regards
    Masood

    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.