You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've noticed that creating a new rule using New-AzSentinelAlertRule and setting any value to the SuppressionDuration parameter, the rule creation fails with the following error:
##[error]Unable to initiate class with error: Invalid Properties for Scheduled alert rule: 'suppressionDuration' should be greater than or equal to 'queryFrequency'
Hello,
I've noticed that creating a new rule using
New-AzSentinelAlertRule
and setting any value to theSuppressionDuration
parameter, the rule creation fails with the following error:##[error]Unable to initiate class with error: Invalid Properties for Scheduled alert rule: 'suppressionDuration' should be greater than or equal to 'queryFrequency'
I'm using this data to create a rule:
So my parameters are:
I think I have tracked the issue down to this line in
ScheduledAlertProp.ps1
.It seems to use
-ge
to compareQueryFrequency
andSuppressionDuration
. However, running the compare manually gives:This is clearly wrong. There is a workaround though, for now. Specify all times in the same format. So
1H
becomes60M
:The text was updated successfully, but these errors were encountered: