diff --git a/main.usermanagedidentity.tf b/main.usermanagedidentity.tf index 5a02a4bf..c965fcdd 100644 --- a/main.usermanagedidentity.tf +++ b/main.usermanagedidentity.tf @@ -16,4 +16,8 @@ module "usermanagedidentity" { federated_credentials_advanced = var.umi_federated_credentials_advanced federated_credentials_github = var.umi_federated_credentials_github federated_credentials_terraform_cloud = var.umi_federated_credentials_terraform_cloud + + depends_on = [ + module.resourcegroup + ] } diff --git a/main.virtualnetwork.tf b/main.virtualnetwork.tf index db53fb69..c7e60564 100644 --- a/main.virtualnetwork.tf +++ b/main.virtualnetwork.tf @@ -9,5 +9,6 @@ module "virtualnetwork" { depends_on = [ module.resourcegroup_networkwatcherrg, + module.resourcegroup ] }