From 78f1974ebe200d228e34241b1d3bcbc047ba09c4 Mon Sep 17 00:00:00 2001 From: Neil Ye Date: Mon, 24 Jun 2024 17:20:21 +0800 Subject: [PATCH] azurerm_security_center_automation - remove forceNew from tags (#26292) --- .../securitycenter/security_center_automation_resource.go | 2 +- .../security_center_automation_resource_test.go | 4 ++++ website/docs/r/security_center_automation.html.markdown | 2 +- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/internal/services/securitycenter/security_center_automation_resource.go b/internal/services/securitycenter/security_center_automation_resource.go index 0756a64ade91..80b56994a360 100644 --- a/internal/services/securitycenter/security_center_automation_resource.go +++ b/internal/services/securitycenter/security_center_automation_resource.go @@ -207,7 +207,7 @@ func resourceSecurityCenterAutomation() *pluginsdk.Resource { }, }, - "tags": commonschema.TagsForceNew(), + "tags": commonschema.Tags(), }, } } diff --git a/internal/services/securitycenter/security_center_automation_resource_test.go b/internal/services/securitycenter/security_center_automation_resource_test.go index c48ee7e29e86..b2baa5c19227 100644 --- a/internal/services/securitycenter/security_center_automation_resource_test.go +++ b/internal/services/securitycenter/security_center_automation_resource_test.go @@ -266,6 +266,10 @@ resource "azurerm_security_center_automation" "test" { source { event_source = "Alerts" } + + tags = { + Env2 = "Test2" + } } `, data.RandomInteger, data.Locations.Primary, data.RandomInteger, data.Locations.Primary, data.RandomInteger, data.Locations.Primary) } diff --git a/website/docs/r/security_center_automation.html.markdown b/website/docs/r/security_center_automation.html.markdown index de6bf0ff301f..1473b50e7125 100644 --- a/website/docs/r/security_center_automation.html.markdown +++ b/website/docs/r/security_center_automation.html.markdown @@ -97,7 +97,7 @@ The following arguments are supported: * `enabled` - (Optional) Boolean to enable or disable this Security Center Automation. Defaults to `true`. -* `tags` - (Optional) A mapping of tags assigned to the resource. Changing this forces a new resource to be created. +* `tags` - (Optional) A mapping of tags assigned to the resource. ---