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

Jack Wong 0 Reputation points

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.
10,932 questions
{count} votes

2 answers

Sort by: Most helpful
  1. Olaf Helper 33,836 Reputation points

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

    Azure SQL Database and Azure Synapse IP firewall rules

  2. Rahul Randive 4,366 Reputation points Microsoft Employee

    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 -

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

    Thank you!

    0 comments No comments