From 73ba421d6da719590e4af4937e57724ad40b8fbf Mon Sep 17 00:00:00 2001 From: Lars Martin S Date: Wed, 13 Dec 2023 12:30:33 +0100 Subject: [PATCH] fix: fjernet retention policy MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Ser ikke ut til at det er støttet lenger, ref. https://github.com/hashicorp/terraform-provider-azurerm/issues/23051 --- main.tf | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/main.tf b/main.tf index d8902dd..1ad758f 100644 --- a/main.tf +++ b/main.tf @@ -21,14 +21,6 @@ resource "azurerm_monitor_diagnostic_setting" "diagnostic_setting" { for_each = var.log_category_types content { category = enabled_log.value - - # TODO: The `retention_policy` has been deprecated in favor of `azurerm_storage_management_policy` resource. - # Learn more information on the deprecation [in the Azure documentation](https://aka.ms/diagnostic_settings_log_retention). - # https://github.com/hashicorp/terraform-provider-azurerm/pull/23260 - # https://github.com/hashicorp/terraform-provider-azurerm/issues/23051 - retention_policy { - enabled = true - } } } @@ -38,14 +30,6 @@ resource "azurerm_monitor_diagnostic_setting" "diagnostic_setting" { content { category = metric.value enabled = true - - # TODO: The `retention_policy` has been deprecated in favor of `azurerm_storage_management_policy` resource. - # Learn more information on the deprecation [in the Azure documentation](https://aka.ms/diagnostic_settings_log_retention). - # https://github.com/hashicorp/terraform-provider-azurerm/pull/23260 - # https://github.com/hashicorp/terraform-provider-azurerm/issues/23051 - retention_policy { - enabled = true - } } } }