Skip to content

Data Source: azurermNetworkWatcher

Use this data source to access information about an existing Network Watcher.

Example Usage

import * as cdktf from "cdktf";
/*Provider bindings are generated by running cdktf get.
See https://cdk.tf/provider-generation for more details.*/
import * as azurerm from "./.gen/providers/azurerm";
/*The following providers are missing schema information and might need manual adjustments to synthesize correctly: azurerm.
For a more precise conversion please use the --provider flag in convert.*/
const dataAzurermNetworkWatcherExample =
  new azurerm.dataAzurermNetworkWatcher.DataAzurermNetworkWatcher(
    this,
    "example",
    {
      name: "${azurerm_network_watcher.example.name}",
      resource_group_name: "${azurerm_resource_group.example.name}",
    }
  );
new cdktf.TerraformOutput(this, "network_watcher_id", {
  value: dataAzurermNetworkWatcherExample.id,
});

Argument Reference

  • name - Specifies the Name of the Network Watcher.
  • resourceGroupName - Specifies the Name of the Resource Group within which the Network Watcher exists.

Attributes Reference

  • 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.

Timeouts

The timeouts block allows you to specify timeouts for certain actions:

  • read - (Defaults to 5 minutes) Used when retrieving the Network Watcher.