From 8e1eb0c418312444b9bbca260115ab83eededf04 Mon Sep 17 00:00:00 2001 From: Nassim Guelbi Date: Sun, 13 Jul 2025 20:41:45 +0200 Subject: [PATCH] fix: autoIncreasePremiumFileShareQuota Alert queries - Fixed the Query for the Alert `Azure Files Premium - Share Quota Scaling Failed'`. It seems that the query was copied from custom image template module. - Added the same filter `RunbookName_s == "${varRunbookName}"` to the Alert `Azure Files Premium - Share Quota Increased` just to be safe when using the same script in different runbooks. --- .../brownfield/autoIncreasePremiumFileShareQuota/deploy.bicep | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/workload/bicep/brownfield/autoIncreasePremiumFileShareQuota/deploy.bicep b/workload/bicep/brownfield/autoIncreasePremiumFileShareQuota/deploy.bicep index 7928521b8..3d36b127a 100644 --- a/workload/bicep/brownfield/autoIncreasePremiumFileShareQuota/deploy.bicep +++ b/workload/bicep/brownfield/autoIncreasePremiumFileShareQuota/deploy.bicep @@ -119,7 +119,7 @@ var varAlerts = enableMonitoringAlerts ? [ criterias: { allOf: [ { - query: 'AzureDiagnostics\n| where ResourceProvider == "MICROSOFT.AUTOMATION"\n| where Category == "JobStreams"\n| where ResultDescription has "Image Template build failed"' + query: 'AzureDiagnostics\n| where ResourceProvider == "MICROSOFT.AUTOMATION"\n| where Category == "JobLogs"\n| where ResultType == "Failed" or ResultType == "Stopped" or ResultType == "Suspended"\n| where RunbookName_s == "${varRunbookName}"' TimeAggregation: 'Count' dimensions: [ { @@ -149,7 +149,7 @@ var varAlerts = enableMonitoringAlerts ? [ criterias: { allOf: [ { - query: 'AzureDiagnostics\n| where ResourceProvider == "MICROSOFT.AUTOMATION"\n| where Category == "JobStreams"\n| where ResultDescription has "New Capacity"' + query: 'AzureDiagnostics\n| where ResourceProvider == "MICROSOFT.AUTOMATION"\n| where Category == "JobStreams"\n| where ResultDescription has "New Capacity" | where RunbookName_s == "${varRunbookName}"' TimeAggregation: 'Count' dimensions: [ {