From 86134cf643b21232beb0d6ea06e579931935cd5c Mon Sep 17 00:00:00 2001 From: Jelle den Burger Date: Thu, 30 Jul 2026 14:43:46 +0200 Subject: [PATCH 1/2] feat: ignore changes to `allow_nested_items_to_be_public` for Azure Storage Accounts --- modules/azure/storage-account/buildingblock/main.tf | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/modules/azure/storage-account/buildingblock/main.tf b/modules/azure/storage-account/buildingblock/main.tf index 938cf847..52920612 100644 --- a/modules/azure/storage-account/buildingblock/main.tf +++ b/modules/azure/storage-account/buildingblock/main.tf @@ -19,4 +19,10 @@ resource "azurerm_storage_account" "storage_account" { location = azurerm_resource_group.storage_account_rg.location account_tier = "Standard" account_replication_type = "GRS" -} \ No newline at end of file + + lifecycle { + ignore_changes = [ + allow_nested_items_to_be_public + ] + } +} From 0773d5e4919d34d531c3c5b82ac657a8ab877257 Mon Sep 17 00:00:00 2001 From: Jelle den Burger Date: Fri, 31 Jul 2026 10:10:09 +0200 Subject: [PATCH 2/2] Update main.tf --- .../azure/storage-account/buildingblock/main.tf | 17 ++++++----------- 1 file changed, 6 insertions(+), 11 deletions(-) diff --git a/modules/azure/storage-account/buildingblock/main.tf b/modules/azure/storage-account/buildingblock/main.tf index 52920612..c51be0fd 100644 --- a/modules/azure/storage-account/buildingblock/main.tf +++ b/modules/azure/storage-account/buildingblock/main.tf @@ -14,15 +14,10 @@ resource "azurerm_resource_group" "storage_account_rg" { } resource "azurerm_storage_account" "storage_account" { - name = "${var.storage_account_name}${random_string.resource_code.result}" - resource_group_name = azurerm_resource_group.storage_account_rg.name - location = azurerm_resource_group.storage_account_rg.location - account_tier = "Standard" - account_replication_type = "GRS" - - lifecycle { - ignore_changes = [ - allow_nested_items_to_be_public - ] - } + name = "${var.storage_account_name}${random_string.resource_code.result}" + resource_group_name = azurerm_resource_group.storage_account_rg.name + location = azurerm_resource_group.storage_account_rg.location + account_tier = "Standard" + account_replication_type = "GRS" + allow_nested_items_to_be_public = true }