diff --git a/src/core-itn/70_monitoring.tf b/src/core-itn/70_monitoring.tf index bd9e5cf3d..6b6c9c70b 100644 --- a/src/core-itn/70_monitoring.tf +++ b/src/core-itn/70_monitoring.tf @@ -16,6 +16,12 @@ resource "azurerm_log_analytics_workspace" "log_analytics_workspace" { internet_query_enabled = var.law_internet_query_enabled tags = var.tags + + lifecycle { + ignore_changes = [ + sku + ] + } } # Application insights diff --git a/src/next-core/02_monitor.tf b/src/next-core/02_monitor.tf index 30b57003a..dd0d2985f 100644 --- a/src/next-core/02_monitor.tf +++ b/src/next-core/02_monitor.tf @@ -16,6 +16,12 @@ resource "azurerm_log_analytics_workspace" "log_analytics_workspace" { allow_resource_only_permissions = var.env_short != "p" tags = var.tags + + lifecycle { + ignore_changes = [ + sku + ] + } } # Application insights diff --git a/src/synthetic-monitoring/01_analytics_workspace.tf b/src/synthetic-monitoring/01_analytics_workspace.tf index b79bb5bb9..d0091eb55 100644 --- a/src/synthetic-monitoring/01_analytics_workspace.tf +++ b/src/synthetic-monitoring/01_analytics_workspace.tf @@ -14,6 +14,12 @@ resource "azurerm_log_analytics_workspace" "log_analytics_workspace" { reservation_capacity_in_gb_per_day = var.env_short == "p" ? 100 : null tags = var.tags + + lifecycle { + ignore_changes = [ + sku + ] + } } # Application insights