Connect to a SQL Server virtual machine on Azure from local laptop via Azure VPN client

Jack Wong 10 Reputation points
2023-09-05T05:07:25.22+00:00

I can see that you connect to the SQL server on VM over the internet publicly (see link). However, my database contains sensitive data and I was wondering if I can set my SQL connectivity to be private (within virtual network) and then connect to the database from my local laptop via Azure VPN client.

Azure SQL Database
SQL Server
SQL Server
A family of Microsoft relational database management and analysis systems for e-commerce, line-of-business, and data warehousing solutions.
13,685 questions
{count} votes

2 answers

Sort by: Most helpful
  1. Olaf Helper 44,311 Reputation points
    2023-09-05T05:20:18.89+00:00

    Setup Firewall rules to allow access only from your machine, see

    Azure SQL Database and Azure Synapse IP firewall rules


  2. RahulRandive 9,581 Reputation points
    2023-09-05T12:09:32.3766667+00:00

    Hi @Jack Wong

    Have you tried “Azure SQL server using an Azure Private Endpoint” It would enable Azure resources, like virtual machines (VMs), to privately and securely communicate with Private Link resources such as Azure SQL server.

    Here is a document for reference - https://learn.microsoft.com/en-us/azure/private-link/tutorial-private-endpoint-sql-portal

    And here is a blog post to troubleshoot any issues you may encounter during configuration

    https://techcommunity.microsoft.com/t5/azure-database-support-blog/azure-sql-db-private-link-private-endpoint-connectivity/ba-p/1235573

    Thank you!

    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.