Setup Firewall rules to allow access only from your machine, see
Connect to a SQL Server virtual machine on Azure from local laptop via Azure VPN client
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.
2 answers
Sort by: Most helpful
-
-
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
Thank you!