Name | Description | Type | Default | Required |
---|---|---|---|---|
location | string | West Europe |
no | |
name_prefix | string | - | yes |
Name | Description |
---|---|
network_watcher_name | The name of the network watcher. Can be used with azurerm_packet_capture |
module "network-watcher" {
source = "git::https://github.com/evry/tf-module-azure-network-watcher.git?ref=VERSION"
name_prefix = "${var.name_prefix}
}
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"]
}