Skip to content

Commit

Permalink
fix: fjernet retention policy
Browse files Browse the repository at this point in the history
Ser ikke ut til at det er støttet lenger, ref. hashicorp/terraform-provider-azurerm#23051
  • Loading branch information
cx-lmp committed Dec 13, 2023
1 parent e4ac74e commit 73ba421
Showing 1 changed file with 0 additions and 16 deletions.
16 changes: 0 additions & 16 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
}
}

Expand All @@ -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
}
}
}
}

0 comments on commit 73ba421

Please sign in to comment.