From 00b3c66fe0d56eaae97886fceec620c213cbc5c1 Mon Sep 17 00:00:00 2001 From: Aris van Ommeren Date: Mon, 25 Oct 2021 11:22:04 +0200 Subject: [PATCH] `azurerm_monitor_metric_alert`: Tags added to AccTests --- .../monitor_metric_alert_resource_test.go | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/internal/services/monitor/monitor_metric_alert_resource_test.go b/internal/services/monitor/monitor_metric_alert_resource_test.go index 9a0cce975a37..22a72008cc4d 100644 --- a/internal/services/monitor/monitor_metric_alert_resource_test.go +++ b/internal/services/monitor/monitor_metric_alert_resource_test.go @@ -181,6 +181,13 @@ resource "azurerm_monitor_metric_alert" "test" { } window_size = "PT1H" + + tags = { + test = "123" + Example = "Example123" + terraform = "Coolllll" + CUSTOMER = "CUSTOMERx" + } } `, data.RandomInteger, data.Locations.Primary, data.RandomString, data.RandomInteger) } @@ -270,6 +277,16 @@ resource "azurerm_monitor_metric_alert" "test" { action { action_group_id = azurerm_monitor_action_group.test2.id } + + tags = { + test = "456" + Example = "Example456" + Terraform = "Coolllll" + tfazurerm = "Awesome" + CUSTOMER = "CUSTOMERx" + "EXAMPLE.TAG" = "sample" + "Foo.Bar" = "Test tag" + } } `, data.RandomInteger, data.Locations.Primary, data.RandomString) }