Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ignore hidden-link tags created by Azure on the App Service #171

Merged
merged 1 commit into from
Nov 4, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions terraform/app_service.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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
]
}
}
8 changes: 8 additions & 0 deletions terraform/uptime/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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" {
Expand Down