As a POC I'm trying to connect my VM machine with Azure SQL Database using private endpoint. I've tried the tutorial found here: https://docs.microsoft.com/en-us/azure/private-link/create-private-endpoint-portal however I'm stuck at new private endpoint step.
Please look at the following screen:
the "Resource type" dropdown those not show any items
If I change the "Connection method" to "Connect to an Azure resource by resource ID or alias' and put the resource id of my sql server: /subscriptions/1efd84d6-173f-42cc-80db-7b2c17eb0edd/resourceGroups/eu_poland_general/providers/Microsoft.Sql/servers/plink-sql-server , I'm getting The resource type 'Microsoft.Sql/servers' is not a supported resource type. error:
I was able to overcome this issue with different approach. These are steps I've made
- I created the VNET for my VM and private endpoint with default subnet
- I've disabled the disable network policies for private endpoints by AZURE CLI from this question Private endpoint in Azure
- I've created virtual machine inside this vnet with rdp connection set up
- I've created Azure SQL server
- I've created Azure SQL database under the Azure SQL Server that I've just created
- During the creation of this database I've added a private endpoint in networking section.
At this point I've tried to connect to this database from VM I've created using the private address that was created by step 5.
I could not connect to database using private address (10.0.2.5), however I was able to connect to the sql server using the public address plink-sql-server.database.windows.net
I've also try to call nslookup on the server to see if the result are similar to the tutorial that I've mentioned at the beginning of this post however my answers are slightly different:
Anybody knows what is going on?