Skip to content

Commit

Permalink
fix: handle policy created resources on destroy
Browse files Browse the repository at this point in the history
  • Loading branch information
jaredfholgate committed Jan 6, 2025
1 parent 6cf41c3 commit d96d783
Showing 1 changed file with 15 additions and 3 deletions.
18 changes: 15 additions & 3 deletions templates/platform_landing_zone/terraform.tf
Original file line number Diff line number Diff line change
Expand Up @@ -37,19 +37,31 @@ provider "azapi" {

provider "azurerm" {
skip_provider_registration = true
features {}
features {
resource_group {
prevent_deletion_if_contains_resources = false
}
}
}

provider "azurerm" {
skip_provider_registration = true
alias = "management"
subscription_id = var.subscription_id_management
features {}
features {
resource_group {
prevent_deletion_if_contains_resources = false
}
}
}

provider "azurerm" {
skip_provider_registration = true
alias = "connectivity"
subscription_id = var.subscription_id_connectivity
features {}
features {
resource_group {
prevent_deletion_if_contains_resources = false
}
}
}

0 comments on commit d96d783

Please sign in to comment.