Skip to content

Commit

Permalink
fix: Application insights web test preview fixed web_test_id formatti…
Browse files Browse the repository at this point in the history
…ng (#330)

fix: application insights web test preview fixed web_test_id cases
  • Loading branch information
christian-calabrese authored Jul 22, 2024
1 parent 1259cea commit 93aa0b5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions application_insights_web_test_preview/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,13 @@ resource "azurerm_monitor_metric_alert" "this" {
severity = var.severity
scopes = [
var.application_insight_id,
"/subscriptions/${var.subscription_id}/resourcegroups/${var.resource_group}/providers/microsoft.insights/webTests/${var.name}-${var.application_insight_name}",
"/subscriptions/${var.subscription_id}/resourceGroups/${var.resource_group}/providers/Microsoft.Insights/webTests/${var.name}-${var.application_insight_name}",
]
description = var.alert_description
auto_mitigate = var.auto_mitigate

application_insights_web_test_location_availability_criteria {
web_test_id = "/subscriptions/${var.subscription_id}/resourcegroups/${var.resource_group}/providers/microsoft.insights/webTests/${var.name}-${var.application_insight_name}"
web_test_id = "/subscriptions/${var.subscription_id}/resourceGroups/${var.resource_group}/providers/Microsoft.Insights/webTests/${var.name}-${var.application_insight_name}"
component_id = var.application_insight_id
failed_location_count = var.failed_location_count
}
Expand Down

0 comments on commit 93aa0b5

Please sign in to comment.