From c38e4317acab23144c6c2660296f55f20da74759 Mon Sep 17 00:00:00 2001 From: Steve Laing Date: Mon, 8 Dec 2025 16:47:18 +0000 Subject: [PATCH] Remove @ symbol from KQL query https://learn.microsoft.com/en-us/kusto/query/extract-function state that this should be a string. Remove extra character. --- infrastructure/modules/container-app-job/alerts.tf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/infrastructure/modules/container-app-job/alerts.tf b/infrastructure/modules/container-app-job/alerts.tf index a12a7fd9..af1a9da1 100644 --- a/infrastructure/modules/container-app-job/alerts.tf +++ b/infrastructure/modules/container-app-job/alerts.tf @@ -15,7 +15,7 @@ resource "azurerm_monitor_scheduled_query_rules_alert" "job_failure" { ContainerAppSystemLogs_CL | where JobName_s == "${azurerm_container_app_job.this.name}" | where Reason_s == "ProcessExited" - | extend ExitCode = toint(extract(@"exit code:\\s*(\\d+)", 1, Log_s)) + | extend ExitCode = toint(extract("exit code:\\s*(\\d+)", 1, Log_s)) | where ExitCode != 0 KQL severity = 1