From 35a860baa7922ab0c08d1ca9a35201822bd74774 Mon Sep 17 00:00:00 2001 From: michael Vincent Date: Thu, 26 Sep 2024 13:06:36 -0400 Subject: [PATCH 1/4] customize tags on network watcher resource group --- main.resourcegroup.tf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.resourcegroup.tf b/main.resourcegroup.tf index f2bcc7be..6dc3de6a 100644 --- a/main.resourcegroup.tf +++ b/main.resourcegroup.tf @@ -15,7 +15,7 @@ module "resourcegroup_networkwatcherrg" { subscription_id = local.subscription_id location = var.location resource_group_name = "NetworkWatcherRG" - tags = {} + tags = var.network_watcher_resource_group_tags } From f1d0a57525db2a901ca0d8ef4ba80159953af8c6 Mon Sep 17 00:00:00 2001 From: michael Vincent Date: Thu, 26 Sep 2024 13:12:11 -0400 Subject: [PATCH 2/4] Update variables.resourcegroup.tf --- variables.resourcegroup.tf | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/variables.resourcegroup.tf b/variables.resourcegroup.tf index 685db2ec..2cfc0c7c 100644 --- a/variables.resourcegroup.tf +++ b/variables.resourcegroup.tf @@ -11,6 +11,11 @@ which includes destroying the resource (and all resources within it). DESCRIPTION default = false } +variable "network_watcher_resource_group_tags" { + type = map(string) + description = "Tags for `NetworkWatcherRG` in the subscription." + default = {} +} variable "resource_group_creation_enabled" { type = bool From e3f6275b7a6650bf6f5d647305a2eaed15550452 Mon Sep 17 00:00:00 2001 From: michael Vincent Date: Thu, 26 Sep 2024 13:12:38 -0400 Subject: [PATCH 3/4] Update variables.resourcegroup.tf --- variables.resourcegroup.tf | 1 + 1 file changed, 1 insertion(+) diff --git a/variables.resourcegroup.tf b/variables.resourcegroup.tf index 2cfc0c7c..55d59a98 100644 --- a/variables.resourcegroup.tf +++ b/variables.resourcegroup.tf @@ -11,6 +11,7 @@ which includes destroying the resource (and all resources within it). DESCRIPTION default = false } + variable "network_watcher_resource_group_tags" { type = map(string) description = "Tags for `NetworkWatcherRG` in the subscription." From 7d97e70f95632307a3388c9ba881f4a595222fe3 Mon Sep 17 00:00:00 2001 From: michael Vincent Date: Thu, 26 Sep 2024 14:36:54 -0400 Subject: [PATCH 4/4] Update README.md --- README.md | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 7efa905f..9f706b18 100644 --- a/README.md +++ b/README.md @@ -336,6 +336,14 @@ Type: `bool` Default: `false` +### [network\_watcher\_resource\_group\_tags](#input\_network\_watcher\_resource\_group\_tags) + +Description: n/a + +Type: `map(string)` + +Default: `{}` + ### [resource\_group\_creation\_enabled](#input\_resource\_group\_creation\_enabled) Description: Whether to create additional resource groups in the target subscription. Requires `var.resource_groups`. @@ -619,7 +627,6 @@ Default: "Microsoft.Sql": [], "Microsoft.Storage": [], "Microsoft.StreamAnalytics": [], - "Microsoft.TimeSeriesInsights": [], "Microsoft.Web": [], "microsoft.insights": [] } @@ -1108,4 +1115,4 @@ Authorized use of Microsoft trademarks or logos is subject to and must follow [Microsoft's Trademark & Brand Guidelines](https://www.microsoft.com/legal/intellectualproperty/trademarks/usage/general). Use of Microsoft trademarks or logos in modified versions of this project must not cause confusion or imply Microsoft sponsorship. Any use of third-party trademarks or logos are subject to those third-party's policies. - \ No newline at end of file +