Welcome to the Microsoft Q&A Platform. Thank you for reaching out & I hope you are doing well.
I understand that you have a Managed mySql in vnet1 and a VM in vnet2 and these two VNETs are peered to a HubVNET which has a Azure Firewall and you would like to establish Transit connectivity between the Spokes VNET1 and VNET2.
Before Troubleshooting for VNET2, I would suggest you to make sure VMs in VNET1 are able to reach and access the database.
- Can you confirm if the VMs in VNET1 work with the Database?
For Transit connectivity,
- I believe the service you are using is Azure Database for MySQL - Flexible Server
- Correct me if I am wrong
- Can you confirm if UDRs are associated to both the subnet of the VM and the subnet of the managed database with a route 0.0.0.0/0 pointing to Azure Firewall IP ?
- In the network rules, may I ask why you are planning to use a FQDN instead of IP Address?
- From the VM, please run *
nsolookup name.mysql.database.azure.com
*and share the results - From the VM, please run *
ping name.mysql.database.azure.com
*and share the results
- From the VM, please run *
Cheers,
Kapil