diff --git a/internal/services/monitor/monitor_scheduled_query_rules_alert_v2_resource.go b/internal/services/monitor/monitor_scheduled_query_rules_alert_v2_resource.go index 0238caeab15d..3ac82034ffb3 100644 --- a/internal/services/monitor/monitor_scheduled_query_rules_alert_v2_resource.go +++ b/internal/services/monitor/monitor_scheduled_query_rules_alert_v2_resource.go @@ -114,7 +114,8 @@ func (r ScheduledQueryRulesAlertV2Resource) Arguments() map[string]*pluginsdk.Sc Type: pluginsdk.TypeString, Required: true, ValidateFunc: validation.StringInSlice([]string{ - string(scheduledqueryrules.ConditionOperatorEquals), + // see https://github.com/Azure/azure-rest-api-specs/issues/21794 + "Equal", string(scheduledqueryrules.ConditionOperatorGreaterThan), string(scheduledqueryrules.ConditionOperatorGreaterThanOrEqual), string(scheduledqueryrules.ConditionOperatorLessThan), diff --git a/internal/services/monitor/monitor_scheduled_query_rules_alert_v2_resource_test.go b/internal/services/monitor/monitor_scheduled_query_rules_alert_v2_resource_test.go index 4d120a67d6c7..708938720373 100644 --- a/internal/services/monitor/monitor_scheduled_query_rules_alert_v2_resource_test.go +++ b/internal/services/monitor/monitor_scheduled_query_rules_alert_v2_resource_test.go @@ -149,7 +149,7 @@ resource "azurerm_monitor_scheduled_query_rules_alert_v2" "test" { QUERY time_aggregation_method = "Count" threshold = 5.0 - operator = "GreaterThan" + operator = "Equal" } } `, template, data.RandomInteger, data.Locations.Primary) diff --git a/website/docs/r/monitor_scheduled_query_rules_alert_v2.html.markdown b/website/docs/r/monitor_scheduled_query_rules_alert_v2.html.markdown index 55386088843e..0bb75181baed 100644 --- a/website/docs/r/monitor_scheduled_query_rules_alert_v2.html.markdown +++ b/website/docs/r/monitor_scheduled_query_rules_alert_v2.html.markdown @@ -146,7 +146,7 @@ An `action` block supports the following: A `criteria` block supports the following: -* `operator` - (Required) Specifies the criteria operator. Possible values are `Equals`, `GreaterThan`, `GreaterThanOrEqual`, `LessThan`,and `LessThanOrEqual`. +* `operator` - (Required) Specifies the criteria operator. Possible values are `Equal`, `GreaterThan`, `GreaterThanOrEqual`, `LessThan`,and `LessThanOrEqual`. * `query` - (Required) The query to run on logs. The results returned by this query are used to populate the alert.