azurerm_network_watcher
Manages a Network Watcher.
Example Usage
resource "azurerm_resource_group" "test" { name = "production-nwwatcher" location = "West US" } resource "azurerm_network_watcher" "test" { name = "production-nwwatcher" location = "${azurerm_resource_group.test.location}" resource_group_name = "${azurerm_resource_group.test.name}" }
Argument Reference
The following arguments are supported:
-
name
- (Required) The name of the Network Watcher. Changing this forces a new resource to be created. -
resource_group_name
- (Required) The name of the resource group in which to create the Network Watcher. Changing this forces a new resource to be created. -
location
- (Required) Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created. -
tags
- (Optional) A mapping of tags to assign to the resource.
Attributes Reference
The following attributes are exported:
-
id
- The Network Watcher ID.
Import
Network Watchers can be imported using the resource id
, e.g.
terraform import azurerm_network_watcher.watcher1 /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mygroup1/providers/Microsoft.Network/networkWatchers/watcher1
© 2018 HashiCorpLicensed under the MPL 2.0 License.
https://www.terraform.io/docs/providers/azurerm/r/network_watcher.html