From 4d0a811a11b4fc1ccdd0f888e52fd5865b19be56 Mon Sep 17 00:00:00 2001 From: Matt White <16320656+matt-FFFFFF@users.noreply.github.com> Date: Tue, 5 Nov 2024 09:11:09 +0000 Subject: [PATCH] fix: subscription placement dependency on mg (#140) --- main.subscription_placement.tf | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/main.subscription_placement.tf b/main.subscription_placement.tf index 6da080c..0ae3b1a 100644 --- a/main.subscription_placement.tf +++ b/main.subscription_placement.tf @@ -11,4 +11,14 @@ resource "azapi_resource" "subscription_placement" { multiplier = lookup(var.retries.subscription_placement, "multiplier", null) randomization_factor = lookup(var.retries.subscription_placement, "randomization_factor", null) } : null + + depends_on = [ + azapi_resource.management_groups_level_0, + azapi_resource.management_groups_level_1, + azapi_resource.management_groups_level_2, + azapi_resource.management_groups_level_3, + azapi_resource.management_groups_level_4, + azapi_resource.management_groups_level_5, + azapi_resource.management_groups_level_6, + ] }