An Azure managed MySQL database service for app development and deployment.
Hi Vincent Kiti,
Thank you for providing the detailed scenario — we understand the complexity involved, especially with cross‑tenant networking and large data volumes.
From the error message:
“Unable to connect to any of the specified MySQL hosts”
we can confirm that this issue is related to network connectivity, where Azure Database Migration Service (DMS) is not able to reach the source MySQL Flexible Server.
For Azure DMS to work successfully, it must have direct network access to both source and target databases. If this connectivity is not fully established, the migration activity will fail with the exact error you’re seeing.
In cross-tenant scenarios (like yours), the most common gaps are:
- Firewall configuration (Mandatory)
We recommend ensuring that server-level firewall rules are properly configured on both:
Source MySQL Flexible Server
Target MySQL Flexible Server
The firewall must allow traffic from the DMS subnet or VNet IP range, otherwise the connection attempt will fail.
2. DNS resolution (Critical but commonly missed)
Even when VNet peering is configured:
- Azure MySQL Flexible Server uses FQDN (DNS name) for connections
- If DNS resolution is not working across VNets/tenants, DMS cannot locate the server
We recommend:
- Linking the private DNS zone to both VNets
- Validating DNS resolution from a VM inside the DMS subnet
This is a key requirement for private networking scenarios.
3. VNet peering and routing validation
- Ensure bidirectional peering is enabled
- Confirm:
- Allow virtual network access is selected
- Verify that NSG or route tables are not blocking traffic
Once the above (Firewall + DNS + VNet) are correctly configured, the connectivity issue should be resolved.
Important guidance for your 20 TB reporting database
While the above steps will fix the connection problem, we also want to clarify that:
Using DMS alone is not recommended for very large databases (like 20 TB)
For large-scale migrations, we suggest a more efficient approach
- Use parallel tools (such as mydumper/myloader) for bulk data transfer
- Use binlog-based replication or DMS for incremental changes and cutover
This hybrid approach:
- Improves performance significantly
- Supports minimal downtime
- Scales better for large datasets
We are explaining that:
- The current error is caused by incomplete network configuration (especially DNS and firewall settings) rather than a DMS limitation
- Once these networking components are correctly configured, the migration connection should succeed
For your 20 TB reporting database, using DMS alone is not sufficient — a hybrid migration strategy is recommended for better performance and scalability
We recommend validating DNS resolution, firewall rules, and VNet configuration to resolve the DMS connectivity error. Additionally, for the 20 TB database, consider using a hybrid migration approach (parallel load + replication) to achieve better performance and minimal downtime.
Microsoft Reference Links:
- Migrate MySQL to Azure using Azure DMS [Tutorial:...soft Learn | Learn.Microsoft.com]
- Networking concepts for Azure MySQL Flexible Server [learn.microsoft.com]
- Azure MySQL migration guidance and large database strategies [Cross-Tena...tion Guide | Word]
Hope this helps. If you have any follow-up questions, please let me know. I would be happy to help.