From 86deaf0aca96002de24543442f772e1c888042d2 Mon Sep 17 00:00:00 2001 From: Vladimir Lazarenko Date: Fri, 11 Jun 2021 17:33:48 +0200 Subject: [PATCH] `azurerm_monitor_metric_alert`: Support `StartsWith` dimension operator (#12181) --- .../internal/services/monitor/monitor_metric_alert_resource.go | 1 + website/docs/r/monitor_metric_alert.html.markdown | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/azurerm/internal/services/monitor/monitor_metric_alert_resource.go b/azurerm/internal/services/monitor/monitor_metric_alert_resource.go index c5a6e2c8d61b..6c962a427003 100644 --- a/azurerm/internal/services/monitor/monitor_metric_alert_resource.go +++ b/azurerm/internal/services/monitor/monitor_metric_alert_resource.go @@ -122,6 +122,7 @@ func resourceMonitorMetricAlert() *pluginsdk.Resource { ValidateFunc: validation.StringInSlice([]string{ "Include", "Exclude", + "StartsWith", }, false), }, "values": { diff --git a/website/docs/r/monitor_metric_alert.html.markdown b/website/docs/r/monitor_metric_alert.html.markdown index eab43395a06d..a5d86d22c6fa 100644 --- a/website/docs/r/monitor_metric_alert.html.markdown +++ b/website/docs/r/monitor_metric_alert.html.markdown @@ -146,7 +146,7 @@ A `application_insights_web_test_location_availability_criteria` block supports A `dimension` block supports the following: * `name` - (Required) One of the dimension names. -* `operator` - (Required) The dimension operator. Possible values are `Include` and `Exclude`. +* `operator` - (Required) The dimension operator. Possible values are `Include`, `Exclude` and `StartsWith`. * `values` - (Required) The list of dimension values. ## Attributes Reference