Unable to access Azure Database for MySQL private endpoint over VPN + VNet Peering

Abdelrhman Goma 95 Reputation points
2025-08-27T10:36:33.46+00:00

Hello,

I’m trying to connect to an Azure Database for MySQL private endpoint that I created in the UK South VNet.

Here’s my setup:

I have a VPN Gateway in the UAE VNet that allows me to connect my laptop to the VNet.

The UAE VNet is peered with the UK South VNet.

I created a Private Endpoint for the MySQL database inside the UK South VNet.

I also created a Private DNS Zone (privatelink.mysql.database.azure.com), added the A record for the private endpoint, and linked the DNS zone to both VNets (UAE + UK South).

Troubleshooting I already tried:

Verified that VNet peering between UAE and UK South is configured with Use Remote Gateway / Allow Forwarded Traffic.

Confirmed that the Private DNS Zone is linked to both VNets.

Verified that the A record in the Private DNS Zone resolves to the private endpoint IP.

Tried connecting via MySQL Workbench and command line but connection times out.

Ensured NSGs and firewalls are not blocking traffic.

Issue: Even after setting this up, I still cannot connect to the MySQL database using its private endpoint from my laptop over the VPN.

Hello,

I’m trying to connect to an Azure Database for MySQL private endpoint that I created in the UK South VNet.

Here’s my setup:

I have a VPN Gateway in the UAE VNet that allows me to connect my laptop to the VNet.

The UAE VNet is peered with the UK South VNet.

I created a Private Endpoint for the MySQL database inside the UK South VNet.

I also created a Private DNS Zone (privatelink.mysql.database.azure.com), added the A record for the private endpoint, and linked the DNS zone to both VNets (UAE + UK South).

Troubleshooting I already tried:

Verified that VNet peering between UAE and UK South is configured with Use Remote Gateway / Allow Forwarded Traffic.

Confirmed that the Private DNS Zone is linked to both VNets.

Verified that the A record in the Private DNS Zone resolves to the private endpoint IP.

Tried connecting via MySQL Workbench and command line but connection times out.

Ensured NSGs and firewalls are not blocking traffic.

Issue:
Even after setting this up, I still cannot connect to the MySQL database using its private endpoint from my laptop over the VPN.

Azure Virtual Network
Azure Virtual Network
An Azure networking service that is used to provision private networks and optionally to connect to on-premises datacenters.
{count} votes

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.