Use this data source to access information about an existing Network Watcher.
data "azurerm_network_watcher" "example" {
name = azurerm_network_watcher.example.name
resource_group_name = azurerm_resource_group.example.name
}
output "network_watcher_id" {
value = data.azurerm_network_watcher.example.id
}
name
- Specifies the Name of the Network Watcher.resource_group_name
- Specifies the Name of the Resource Group within which the Network Watcher exists.id
- The ID of the Network Watcher.
location
- The supported Azure location where the resource exists.
tags
- A mapping of tags assigned to the resource.
The timeouts
block allows you to specify timeouts for certain actions:
read
- (Defaults to 5 minutes) Used when retrieving the Network Watcher.