Skip to content
This repository is currently being migrated. It's locked while the migration is in progress.

Latest commit

 

History

History
39 lines (30 loc) · 1.1 KB

Readme.md

File metadata and controls

39 lines (30 loc) · 1.1 KB

Module for managing Azure Network Watcher

Inputs

Name Description Type Default Required
location string West Europe no
name_prefix string - yes

Outputs

Name Description
network_watcher_name The name of the network watcher. Can be used with azurerm_packet_capture

Example usage of this module

module "network-watcher" {
  source = "git::https://github.com/evry/tf-module-azure-network-watcher.git?ref=VERSION"
  name_prefix = "${var.name_prefix}
}

Example of using the network watcher with Azure Packet Capture

resource "azurerm_packet_capture" "packet_capture_test" {
  name                 = "pctestcapture"
  network_watcher_name = "${module.network-watcher.network_watcher_name}"
  resource_group_name  = "${azurerm_resource_group.test.name}"
  target_resource_id   = "${azurerm_virtual_machine.test.id}"

  storage_location {
    storage_account_id = "${azurerm_storage_account.test.id}"
  }

  depends_on = ["azurerm_virtual_machine_extension.test"]
}