diff --git a/terraform/app_service.tf b/terraform/app_service.tf index 18aea094..7fa9c9e5 100644 --- a/terraform/app_service.tf +++ b/terraform/app_service.tf @@ -60,4 +60,12 @@ resource "azurerm_linux_web_app" "main" { share_name = azurerm_storage_container.config.name mount_path = local.mount_path } + + lifecycle { + ignore_changes = [ + # tags get created for Application Insights + # https://github.com/hashicorp/terraform-provider-azurerm/issues/16569 + tags + ] + } } diff --git a/terraform/uptime/main.tf b/terraform/uptime/main.tf index 33e1296f..c0d1cf4c 100644 --- a/terraform/uptime/main.tf +++ b/terraform/uptime/main.tf @@ -17,6 +17,14 @@ resource "azurerm_application_insights_web_test" "healthcheck" { ] configuration = templatefile("${path.module}/webtest.xml", { url = var.url }) + + lifecycle { + ignore_changes = [ + # tags get automatically created + # https://github.com/hashicorp/terraform-provider-azurerm/issues/16569 + tags + ] + } } resource "azurerm_monitor_metric_alert" "uptime" {