Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(resourcegroup): add tag feature for networkwatcherrg #421

Closed
wants to merge 4 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 9 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -336,6 +336,14 @@ Type: `bool`

Default: `false`

### <a name="input_network_watcher_resource_group_tags"></a> [network\_watcher\_resource\_group\_tags](#input\_network\_watcher\_resource\_group\_tags)

Description: n/a

Type: `map(string)`

Default: `{}`

### <a name="input_resource_group_creation_enabled"></a> [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.
<!-- END_TF_DOCS -->
<!-- END_TF_DOCS -->
2 changes: 1 addition & 1 deletion main.resourcegroup.tf
Original file line number Diff line number Diff line change
@@ -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
}


6 changes: 6 additions & 0 deletions variables.resourcegroup.tf
Original file line number Diff line number Diff line change
@@ -12,6 +12,12 @@ 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
description = "Whether to create additional resource groups in the target subscription. Requires `var.resource_groups`."