diff --git a/.azure/modules/functionApp/slackNotifier.bicep b/.azure/modules/functionApp/slackNotifier.bicep index ec5b24d46..8c5aee77e 100644 --- a/.azure/modules/functionApp/slackNotifier.bicep +++ b/.azure/modules/functionApp/slackNotifier.bicep @@ -168,7 +168,7 @@ var query = ''' Environment = tostring(customDimensions.AspNetCoreEnvironment), Type = itemType, problemId, - message, + tostring(customDimensions.MessageTemplate), severityLevel | extend SeverityLevel = case( severityLevel == 0, "Verbose", @@ -178,7 +178,7 @@ var query = ''' severityLevel == 4, "Critical", tostring(severityLevel) ) - | extend Details = coalesce(message, problemId) + | extend Details = coalesce(customDimensions_MessageTemplate, problemId) | extend Details = replace_string(Details, "Digdir.Domain.Dialogporten.", "") | project Environment, Type, SeverityLevel, Count, Details '''