Blog Post

Azure Database Support Blog
1 MIN READ

Lesson Learned #175: Connecting to Private EndPoint of Azure SQL Database from Managed Instance

Jose_Manuel_Jurado's avatar
Jun 15, 2021

Today, I worked on a very interesting case when our customer wants to connect to the Private EndPoint/Link of Azure SQL Database from Azure SQL Managed Instance. In this article, I would like to share with an example how to do it. 

 

Basically, once you have created the Private Endpoint on the VNET/SUBNET of your Azure SQL Managed Instance. The most important thing is to resolve the IP. For this reason, it is important to add your DNS server resolution if you don't have this please add in your DNS server the resolution for your Azure SQL Database Private Endpoint IP. 

 

For example, servername.database.windows.net points to 10.1.2.5. If you have already deployed you Azure SQL Managed Instance before creating this Private Endpoint in order to update the DNS resolution of your Azure SQL Manage Instance nodes, I would like to suggest to scale up/down your Azure SQL Managed Instance in order to refresh the DNS servers.

 

Enjoy!

 

Updated Jul 07, 2021
Version 3.0

1 Comment

  • Mohamed Shehata's avatar
    Mohamed Shehata
    Copper Contributor

    Hi Jose,

     

    Thank you for the insights. I have a question regarding private endpoint/link with Azure SQL Managed Instance.

    AzSQL MI is already deployed with private IP address and can be accessible either over VNet peering (access on Azure) or S2S VPN (access from on premises). 

     

    Where does private link/endpoint fits?