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

evry/tf-module-azure-network-watcher

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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"]
}

About

Terraform module for Azure for managing Network Watcher

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages