diff --git a/quickstart/201-mysql-fs-db/main.tf b/quickstart/201-mysql-fs-db/main.tf index d7d88c09c..bb1765cff 100644 --- a/quickstart/201-mysql-fs-db/main.tf +++ b/quickstart/201-mysql-fs-db/main.tf @@ -71,6 +71,8 @@ resource "azurerm_private_dns_zone_virtual_network_link" "default" { private_dns_zone_name = azurerm_private_dns_zone.default.name resource_group_name = azurerm_resource_group.rg.name virtual_network_id = azurerm_virtual_network.default.id + + depends_on = [azurerm_subnet.default] } # Manages the MySQL Flexible Server @@ -103,4 +105,4 @@ resource "azurerm_mysql_flexible_server" "default" { } depends_on = [azurerm_private_dns_zone_virtual_network_link.default] -} \ No newline at end of file +}