Unable to access Azure Database for MySQL private endpoint over VPN + VNet Peering
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.