diff --git a/ops/terraform/main.tf b/ops/terraform/main.tf index f2689048..2008a9f0 100644 --- a/ops/terraform/main.tf +++ b/ops/terraform/main.tf @@ -72,6 +72,7 @@ module "middleware_api" { vnet = module.networking.network_name sku_name = var.sku_name https_only = true + depends_on = [module.networking.middlewaresubnet_id, module.networking.lbsubnet_id] } module "ocr_api" { @@ -86,6 +87,7 @@ module "ocr_api" { vnet = module.networking.network_name sku_name = var.sku_name https_only = true + depends_on = [module.networking.ocrsubnet_id, module.networking.middlewaresubnet_id] } module "ocr_autoscale" {