From 838070fc44c2804584f13b4e38daa3e5c764dc84 Mon Sep 17 00:00:00 2001 From: terrymandin Date: Mon, 27 May 2024 10:46:31 -0600 Subject: [PATCH] added "prevent_deletion_if_contains_resources" setting --- examples/default/terraform.tf | 6 +++++- examples/encrypted-disk/terraform.tf | 6 +++++- examples/private-endpoint/terraform.tf | 6 +++++- 3 files changed, 15 insertions(+), 3 deletions(-) diff --git a/examples/default/terraform.tf b/examples/default/terraform.tf index 8dc4e9e..9a25186 100644 --- a/examples/default/terraform.tf +++ b/examples/default/terraform.tf @@ -13,7 +13,11 @@ terraform { } provider "azurerm" { - features {} + features { + resource_group { + prevent_deletion_if_contains_resources = false + } + } } diff --git a/examples/encrypted-disk/terraform.tf b/examples/encrypted-disk/terraform.tf index 8dc4e9e..9a25186 100644 --- a/examples/encrypted-disk/terraform.tf +++ b/examples/encrypted-disk/terraform.tf @@ -13,7 +13,11 @@ terraform { } provider "azurerm" { - features {} + features { + resource_group { + prevent_deletion_if_contains_resources = false + } + } } diff --git a/examples/private-endpoint/terraform.tf b/examples/private-endpoint/terraform.tf index 8dc4e9e..9a25186 100644 --- a/examples/private-endpoint/terraform.tf +++ b/examples/private-endpoint/terraform.tf @@ -13,7 +13,11 @@ terraform { } provider "azurerm" { - features {} + features { + resource_group { + prevent_deletion_if_contains_resources = false + } + } }