azure logo
Azure Classic v5.43.0, May 6 23

azure.network.NetworkPacketCapture

Explore with Pulumi AI

Configures Network Packet Capturing against a Virtual Machine using a Network Watcher.

!> NOTE: The azure.network.NetworkPacketCapture resource is deprecated and will be removed in favour of azure.compute.PacketCapture and azure.compute.ScaleSetPacketCapture in version 4.0 of the AzureRM Provider.

Example Usage

using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Azure = Pulumi.Azure;

return await Deployment.RunAsync(() => 
{
    var exampleResourceGroup = new Azure.Core.ResourceGroup("exampleResourceGroup", new()
    {
        Location = "West Europe",
    });

    var exampleNetworkWatcher = new Azure.Network.NetworkWatcher("exampleNetworkWatcher", new()
    {
        Location = exampleResourceGroup.Location,
        ResourceGroupName = exampleResourceGroup.Name,
    });

    var exampleVirtualNetwork = new Azure.Network.VirtualNetwork("exampleVirtualNetwork", new()
    {
        AddressSpaces = new[]
        {
            "10.0.0.0/16",
        },
        Location = exampleResourceGroup.Location,
        ResourceGroupName = exampleResourceGroup.Name,
    });

    var exampleSubnet = new Azure.Network.Subnet("exampleSubnet", new()
    {
        ResourceGroupName = exampleResourceGroup.Name,
        VirtualNetworkName = exampleVirtualNetwork.Name,
        AddressPrefixes = new[]
        {
            "10.0.2.0/24",
        },
    });

    var exampleNetworkInterface = new Azure.Network.NetworkInterface("exampleNetworkInterface", new()
    {
        Location = exampleResourceGroup.Location,
        ResourceGroupName = exampleResourceGroup.Name,
        IpConfigurations = new[]
        {
            new Azure.Network.Inputs.NetworkInterfaceIpConfigurationArgs
            {
                Name = "testconfiguration1",
                SubnetId = exampleSubnet.Id,
                PrivateIpAddressAllocation = "Dynamic",
            },
        },
    });

    var exampleVirtualMachine = new Azure.Compute.VirtualMachine("exampleVirtualMachine", new()
    {
        Location = exampleResourceGroup.Location,
        ResourceGroupName = exampleResourceGroup.Name,
        NetworkInterfaceIds = new[]
        {
            exampleNetworkInterface.Id,
        },
        VmSize = "Standard_F2",
        StorageImageReference = new Azure.Compute.Inputs.VirtualMachineStorageImageReferenceArgs
        {
            Publisher = "Canonical",
            Offer = "UbuntuServer",
            Sku = "16.04-LTS",
            Version = "latest",
        },
        StorageOsDisk = new Azure.Compute.Inputs.VirtualMachineStorageOsDiskArgs
        {
            Name = "osdisk",
            Caching = "ReadWrite",
            CreateOption = "FromImage",
            ManagedDiskType = "Standard_LRS",
        },
        OsProfile = new Azure.Compute.Inputs.VirtualMachineOsProfileArgs
        {
            ComputerName = "pctest-vm",
            AdminUsername = "testadmin",
            AdminPassword = "Password1234!",
        },
        OsProfileLinuxConfig = new Azure.Compute.Inputs.VirtualMachineOsProfileLinuxConfigArgs
        {
            DisablePasswordAuthentication = false,
        },
    });

    var exampleExtension = new Azure.Compute.Extension("exampleExtension", new()
    {
        VirtualMachineId = exampleVirtualMachine.Id,
        Publisher = "Microsoft.Azure.NetworkWatcher",
        Type = "NetworkWatcherAgentLinux",
        TypeHandlerVersion = "1.4",
        AutoUpgradeMinorVersion = true,
    });

    var exampleAccount = new Azure.Storage.Account("exampleAccount", new()
    {
        ResourceGroupName = exampleResourceGroup.Name,
        Location = exampleResourceGroup.Location,
        AccountTier = "Standard",
        AccountReplicationType = "LRS",
    });

    var exampleNetworkPacketCapture = new Azure.Network.NetworkPacketCapture("exampleNetworkPacketCapture", new()
    {
        NetworkWatcherName = exampleNetworkWatcher.Name,
        ResourceGroupName = exampleResourceGroup.Name,
        TargetResourceId = exampleVirtualMachine.Id,
        StorageLocation = new Azure.Network.Inputs.NetworkPacketCaptureStorageLocationArgs
        {
            StorageAccountId = exampleAccount.Id,
        },
    }, new CustomResourceOptions
    {
        DependsOn = new[]
        {
            exampleExtension,
        },
    });

});
package main

import (
	"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/compute"
	"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/core"
	"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/network"
	"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/storage"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		exampleResourceGroup, err := core.NewResourceGroup(ctx, "exampleResourceGroup", &core.ResourceGroupArgs{
			Location: pulumi.String("West Europe"),
		})
		if err != nil {
			return err
		}
		exampleNetworkWatcher, err := network.NewNetworkWatcher(ctx, "exampleNetworkWatcher", &network.NetworkWatcherArgs{
			Location:          exampleResourceGroup.Location,
			ResourceGroupName: exampleResourceGroup.Name,
		})
		if err != nil {
			return err
		}
		exampleVirtualNetwork, err := network.NewVirtualNetwork(ctx, "exampleVirtualNetwork", &network.VirtualNetworkArgs{
			AddressSpaces: pulumi.StringArray{
				pulumi.String("10.0.0.0/16"),
			},
			Location:          exampleResourceGroup.Location,
			ResourceGroupName: exampleResourceGroup.Name,
		})
		if err != nil {
			return err
		}
		exampleSubnet, err := network.NewSubnet(ctx, "exampleSubnet", &network.SubnetArgs{
			ResourceGroupName:  exampleResourceGroup.Name,
			VirtualNetworkName: exampleVirtualNetwork.Name,
			AddressPrefixes: pulumi.StringArray{
				pulumi.String("10.0.2.0/24"),
			},
		})
		if err != nil {
			return err
		}
		exampleNetworkInterface, err := network.NewNetworkInterface(ctx, "exampleNetworkInterface", &network.NetworkInterfaceArgs{
			Location:          exampleResourceGroup.Location,
			ResourceGroupName: exampleResourceGroup.Name,
			IpConfigurations: network.NetworkInterfaceIpConfigurationArray{
				&network.NetworkInterfaceIpConfigurationArgs{
					Name:                       pulumi.String("testconfiguration1"),
					SubnetId:                   exampleSubnet.ID(),
					PrivateIpAddressAllocation: pulumi.String("Dynamic"),
				},
			},
		})
		if err != nil {
			return err
		}
		exampleVirtualMachine, err := compute.NewVirtualMachine(ctx, "exampleVirtualMachine", &compute.VirtualMachineArgs{
			Location:          exampleResourceGroup.Location,
			ResourceGroupName: exampleResourceGroup.Name,
			NetworkInterfaceIds: pulumi.StringArray{
				exampleNetworkInterface.ID(),
			},
			VmSize: pulumi.String("Standard_F2"),
			StorageImageReference: &compute.VirtualMachineStorageImageReferenceArgs{
				Publisher: pulumi.String("Canonical"),
				Offer:     pulumi.String("UbuntuServer"),
				Sku:       pulumi.String("16.04-LTS"),
				Version:   pulumi.String("latest"),
			},
			StorageOsDisk: &compute.VirtualMachineStorageOsDiskArgs{
				Name:            pulumi.String("osdisk"),
				Caching:         pulumi.String("ReadWrite"),
				CreateOption:    pulumi.String("FromImage"),
				ManagedDiskType: pulumi.String("Standard_LRS"),
			},
			OsProfile: &compute.VirtualMachineOsProfileArgs{
				ComputerName:  pulumi.String("pctest-vm"),
				AdminUsername: pulumi.String("testadmin"),
				AdminPassword: pulumi.String("Password1234!"),
			},
			OsProfileLinuxConfig: &compute.VirtualMachineOsProfileLinuxConfigArgs{
				DisablePasswordAuthentication: pulumi.Bool(false),
			},
		})
		if err != nil {
			return err
		}
		exampleExtension, err := compute.NewExtension(ctx, "exampleExtension", &compute.ExtensionArgs{
			VirtualMachineId:        exampleVirtualMachine.ID(),
			Publisher:               pulumi.String("Microsoft.Azure.NetworkWatcher"),
			Type:                    pulumi.String("NetworkWatcherAgentLinux"),
			TypeHandlerVersion:      pulumi.String("1.4"),
			AutoUpgradeMinorVersion: pulumi.Bool(true),
		})
		if err != nil {
			return err
		}
		exampleAccount, err := storage.NewAccount(ctx, "exampleAccount", &storage.AccountArgs{
			ResourceGroupName:      exampleResourceGroup.Name,
			Location:               exampleResourceGroup.Location,
			AccountTier:            pulumi.String("Standard"),
			AccountReplicationType: pulumi.String("LRS"),
		})
		if err != nil {
			return err
		}
		_, err = network.NewNetworkPacketCapture(ctx, "exampleNetworkPacketCapture", &network.NetworkPacketCaptureArgs{
			NetworkWatcherName: exampleNetworkWatcher.Name,
			ResourceGroupName:  exampleResourceGroup.Name,
			TargetResourceId:   exampleVirtualMachine.ID(),
			StorageLocation: &network.NetworkPacketCaptureStorageLocationArgs{
				StorageAccountId: exampleAccount.ID(),
			},
		}, pulumi.DependsOn([]pulumi.Resource{
			exampleExtension,
		}))
		if err != nil {
			return err
		}
		return nil
	})
}
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azure.core.ResourceGroup;
import com.pulumi.azure.core.ResourceGroupArgs;
import com.pulumi.azure.network.NetworkWatcher;
import com.pulumi.azure.network.NetworkWatcherArgs;
import com.pulumi.azure.network.VirtualNetwork;
import com.pulumi.azure.network.VirtualNetworkArgs;
import com.pulumi.azure.network.Subnet;
import com.pulumi.azure.network.SubnetArgs;
import com.pulumi.azure.network.NetworkInterface;
import com.pulumi.azure.network.NetworkInterfaceArgs;
import com.pulumi.azure.network.inputs.NetworkInterfaceIpConfigurationArgs;
import com.pulumi.azure.compute.VirtualMachine;
import com.pulumi.azure.compute.VirtualMachineArgs;
import com.pulumi.azure.compute.inputs.VirtualMachineStorageImageReferenceArgs;
import com.pulumi.azure.compute.inputs.VirtualMachineStorageOsDiskArgs;
import com.pulumi.azure.compute.inputs.VirtualMachineOsProfileArgs;
import com.pulumi.azure.compute.inputs.VirtualMachineOsProfileLinuxConfigArgs;
import com.pulumi.azure.compute.Extension;
import com.pulumi.azure.compute.ExtensionArgs;
import com.pulumi.azure.storage.Account;
import com.pulumi.azure.storage.AccountArgs;
import com.pulumi.azure.network.NetworkPacketCapture;
import com.pulumi.azure.network.NetworkPacketCaptureArgs;
import com.pulumi.azure.network.inputs.NetworkPacketCaptureStorageLocationArgs;
import com.pulumi.resources.CustomResourceOptions;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;

public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }

    public static void stack(Context ctx) {
        var exampleResourceGroup = new ResourceGroup("exampleResourceGroup", ResourceGroupArgs.builder()        
            .location("West Europe")
            .build());

        var exampleNetworkWatcher = new NetworkWatcher("exampleNetworkWatcher", NetworkWatcherArgs.builder()        
            .location(exampleResourceGroup.location())
            .resourceGroupName(exampleResourceGroup.name())
            .build());

        var exampleVirtualNetwork = new VirtualNetwork("exampleVirtualNetwork", VirtualNetworkArgs.builder()        
            .addressSpaces("10.0.0.0/16")
            .location(exampleResourceGroup.location())
            .resourceGroupName(exampleResourceGroup.name())
            .build());

        var exampleSubnet = new Subnet("exampleSubnet", SubnetArgs.builder()        
            .resourceGroupName(exampleResourceGroup.name())
            .virtualNetworkName(exampleVirtualNetwork.name())
            .addressPrefixes("10.0.2.0/24")
            .build());

        var exampleNetworkInterface = new NetworkInterface("exampleNetworkInterface", NetworkInterfaceArgs.builder()        
            .location(exampleResourceGroup.location())
            .resourceGroupName(exampleResourceGroup.name())
            .ipConfigurations(NetworkInterfaceIpConfigurationArgs.builder()
                .name("testconfiguration1")
                .subnetId(exampleSubnet.id())
                .privateIpAddressAllocation("Dynamic")
                .build())
            .build());

        var exampleVirtualMachine = new VirtualMachine("exampleVirtualMachine", VirtualMachineArgs.builder()        
            .location(exampleResourceGroup.location())
            .resourceGroupName(exampleResourceGroup.name())
            .networkInterfaceIds(exampleNetworkInterface.id())
            .vmSize("Standard_F2")
            .storageImageReference(VirtualMachineStorageImageReferenceArgs.builder()
                .publisher("Canonical")
                .offer("UbuntuServer")
                .sku("16.04-LTS")
                .version("latest")
                .build())
            .storageOsDisk(VirtualMachineStorageOsDiskArgs.builder()
                .name("osdisk")
                .caching("ReadWrite")
                .createOption("FromImage")
                .managedDiskType("Standard_LRS")
                .build())
            .osProfile(VirtualMachineOsProfileArgs.builder()
                .computerName("pctest-vm")
                .adminUsername("testadmin")
                .adminPassword("Password1234!")
                .build())
            .osProfileLinuxConfig(VirtualMachineOsProfileLinuxConfigArgs.builder()
                .disablePasswordAuthentication(false)
                .build())
            .build());

        var exampleExtension = new Extension("exampleExtension", ExtensionArgs.builder()        
            .virtualMachineId(exampleVirtualMachine.id())
            .publisher("Microsoft.Azure.NetworkWatcher")
            .type("NetworkWatcherAgentLinux")
            .typeHandlerVersion("1.4")
            .autoUpgradeMinorVersion(true)
            .build());

        var exampleAccount = new Account("exampleAccount", AccountArgs.builder()        
            .resourceGroupName(exampleResourceGroup.name())
            .location(exampleResourceGroup.location())
            .accountTier("Standard")
            .accountReplicationType("LRS")
            .build());

        var exampleNetworkPacketCapture = new NetworkPacketCapture("exampleNetworkPacketCapture", NetworkPacketCaptureArgs.builder()        
            .networkWatcherName(exampleNetworkWatcher.name())
            .resourceGroupName(exampleResourceGroup.name())
            .targetResourceId(exampleVirtualMachine.id())
            .storageLocation(NetworkPacketCaptureStorageLocationArgs.builder()
                .storageAccountId(exampleAccount.id())
                .build())
            .build(), CustomResourceOptions.builder()
                .dependsOn(exampleExtension)
                .build());

    }
}
import pulumi
import pulumi_azure as azure

example_resource_group = azure.core.ResourceGroup("exampleResourceGroup", location="West Europe")
example_network_watcher = azure.network.NetworkWatcher("exampleNetworkWatcher",
    location=example_resource_group.location,
    resource_group_name=example_resource_group.name)
example_virtual_network = azure.network.VirtualNetwork("exampleVirtualNetwork",
    address_spaces=["10.0.0.0/16"],
    location=example_resource_group.location,
    resource_group_name=example_resource_group.name)
example_subnet = azure.network.Subnet("exampleSubnet",
    resource_group_name=example_resource_group.name,
    virtual_network_name=example_virtual_network.name,
    address_prefixes=["10.0.2.0/24"])
example_network_interface = azure.network.NetworkInterface("exampleNetworkInterface",
    location=example_resource_group.location,
    resource_group_name=example_resource_group.name,
    ip_configurations=[azure.network.NetworkInterfaceIpConfigurationArgs(
        name="testconfiguration1",
        subnet_id=example_subnet.id,
        private_ip_address_allocation="Dynamic",
    )])
example_virtual_machine = azure.compute.VirtualMachine("exampleVirtualMachine",
    location=example_resource_group.location,
    resource_group_name=example_resource_group.name,
    network_interface_ids=[example_network_interface.id],
    vm_size="Standard_F2",
    storage_image_reference=azure.compute.VirtualMachineStorageImageReferenceArgs(
        publisher="Canonical",
        offer="UbuntuServer",
        sku="16.04-LTS",
        version="latest",
    ),
    storage_os_disk=azure.compute.VirtualMachineStorageOsDiskArgs(
        name="osdisk",
        caching="ReadWrite",
        create_option="FromImage",
        managed_disk_type="Standard_LRS",
    ),
    os_profile=azure.compute.VirtualMachineOsProfileArgs(
        computer_name="pctest-vm",
        admin_username="testadmin",
        admin_password="Password1234!",
    ),
    os_profile_linux_config=azure.compute.VirtualMachineOsProfileLinuxConfigArgs(
        disable_password_authentication=False,
    ))
example_extension = azure.compute.Extension("exampleExtension",
    virtual_machine_id=example_virtual_machine.id,
    publisher="Microsoft.Azure.NetworkWatcher",
    type="NetworkWatcherAgentLinux",
    type_handler_version="1.4",
    auto_upgrade_minor_version=True)
example_account = azure.storage.Account("exampleAccount",
    resource_group_name=example_resource_group.name,
    location=example_resource_group.location,
    account_tier="Standard",
    account_replication_type="LRS")
example_network_packet_capture = azure.network.NetworkPacketCapture("exampleNetworkPacketCapture",
    network_watcher_name=example_network_watcher.name,
    resource_group_name=example_resource_group.name,
    target_resource_id=example_virtual_machine.id,
    storage_location=azure.network.NetworkPacketCaptureStorageLocationArgs(
        storage_account_id=example_account.id,
    ),
    opts=pulumi.ResourceOptions(depends_on=[example_extension]))
import * as pulumi from "@pulumi/pulumi";
import * as azure from "@pulumi/azure";

const exampleResourceGroup = new azure.core.ResourceGroup("exampleResourceGroup", {location: "West Europe"});
const exampleNetworkWatcher = new azure.network.NetworkWatcher("exampleNetworkWatcher", {
    location: exampleResourceGroup.location,
    resourceGroupName: exampleResourceGroup.name,
});
const exampleVirtualNetwork = new azure.network.VirtualNetwork("exampleVirtualNetwork", {
    addressSpaces: ["10.0.0.0/16"],
    location: exampleResourceGroup.location,
    resourceGroupName: exampleResourceGroup.name,
});
const exampleSubnet = new azure.network.Subnet("exampleSubnet", {
    resourceGroupName: exampleResourceGroup.name,
    virtualNetworkName: exampleVirtualNetwork.name,
    addressPrefixes: ["10.0.2.0/24"],
});
const exampleNetworkInterface = new azure.network.NetworkInterface("exampleNetworkInterface", {
    location: exampleResourceGroup.location,
    resourceGroupName: exampleResourceGroup.name,
    ipConfigurations: [{
        name: "testconfiguration1",
        subnetId: exampleSubnet.id,
        privateIpAddressAllocation: "Dynamic",
    }],
});
const exampleVirtualMachine = new azure.compute.VirtualMachine("exampleVirtualMachine", {
    location: exampleResourceGroup.location,
    resourceGroupName: exampleResourceGroup.name,
    networkInterfaceIds: [exampleNetworkInterface.id],
    vmSize: "Standard_F2",
    storageImageReference: {
        publisher: "Canonical",
        offer: "UbuntuServer",
        sku: "16.04-LTS",
        version: "latest",
    },
    storageOsDisk: {
        name: "osdisk",
        caching: "ReadWrite",
        createOption: "FromImage",
        managedDiskType: "Standard_LRS",
    },
    osProfile: {
        computerName: "pctest-vm",
        adminUsername: "testadmin",
        adminPassword: "Password1234!",
    },
    osProfileLinuxConfig: {
        disablePasswordAuthentication: false,
    },
});
const exampleExtension = new azure.compute.Extension("exampleExtension", {
    virtualMachineId: exampleVirtualMachine.id,
    publisher: "Microsoft.Azure.NetworkWatcher",
    type: "NetworkWatcherAgentLinux",
    typeHandlerVersion: "1.4",
    autoUpgradeMinorVersion: true,
});
const exampleAccount = new azure.storage.Account("exampleAccount", {
    resourceGroupName: exampleResourceGroup.name,
    location: exampleResourceGroup.location,
    accountTier: "Standard",
    accountReplicationType: "LRS",
});
const exampleNetworkPacketCapture = new azure.network.NetworkPacketCapture("exampleNetworkPacketCapture", {
    networkWatcherName: exampleNetworkWatcher.name,
    resourceGroupName: exampleResourceGroup.name,
    targetResourceId: exampleVirtualMachine.id,
    storageLocation: {
        storageAccountId: exampleAccount.id,
    },
}, {
    dependsOn: [exampleExtension],
});
resources:
  exampleResourceGroup:
    type: azure:core:ResourceGroup
    properties:
      location: West Europe
  exampleNetworkWatcher:
    type: azure:network:NetworkWatcher
    properties:
      location: ${exampleResourceGroup.location}
      resourceGroupName: ${exampleResourceGroup.name}
  exampleVirtualNetwork:
    type: azure:network:VirtualNetwork
    properties:
      addressSpaces:
        - 10.0.0.0/16
      location: ${exampleResourceGroup.location}
      resourceGroupName: ${exampleResourceGroup.name}
  exampleSubnet:
    type: azure:network:Subnet
    properties:
      resourceGroupName: ${exampleResourceGroup.name}
      virtualNetworkName: ${exampleVirtualNetwork.name}
      addressPrefixes:
        - 10.0.2.0/24
  exampleNetworkInterface:
    type: azure:network:NetworkInterface
    properties:
      location: ${exampleResourceGroup.location}
      resourceGroupName: ${exampleResourceGroup.name}
      ipConfigurations:
        - name: testconfiguration1
          subnetId: ${exampleSubnet.id}
          privateIpAddressAllocation: Dynamic
  exampleVirtualMachine:
    type: azure:compute:VirtualMachine
    properties:
      location: ${exampleResourceGroup.location}
      resourceGroupName: ${exampleResourceGroup.name}
      networkInterfaceIds:
        - ${exampleNetworkInterface.id}
      vmSize: Standard_F2
      storageImageReference:
        publisher: Canonical
        offer: UbuntuServer
        sku: 16.04-LTS
        version: latest
      storageOsDisk:
        name: osdisk
        caching: ReadWrite
        createOption: FromImage
        managedDiskType: Standard_LRS
      osProfile:
        computerName: pctest-vm
        adminUsername: testadmin
        adminPassword: Password1234!
      osProfileLinuxConfig:
        disablePasswordAuthentication: false
  exampleExtension:
    type: azure:compute:Extension
    properties:
      virtualMachineId: ${exampleVirtualMachine.id}
      publisher: Microsoft.Azure.NetworkWatcher
      type: NetworkWatcherAgentLinux
      typeHandlerVersion: '1.4'
      autoUpgradeMinorVersion: true
  exampleAccount:
    type: azure:storage:Account
    properties:
      resourceGroupName: ${exampleResourceGroup.name}
      location: ${exampleResourceGroup.location}
      accountTier: Standard
      accountReplicationType: LRS
  exampleNetworkPacketCapture:
    type: azure:network:NetworkPacketCapture
    properties:
      networkWatcherName: ${exampleNetworkWatcher.name}
      resourceGroupName: ${exampleResourceGroup.name}
      targetResourceId: ${exampleVirtualMachine.id}
      storageLocation:
        storageAccountId: ${exampleAccount.id}
    options:
      dependson:
        - ${exampleExtension}

Create NetworkPacketCapture Resource

new NetworkPacketCapture(name: string, args: NetworkPacketCaptureArgs, opts?: CustomResourceOptions);
@overload
def NetworkPacketCapture(resource_name: str,
                         opts: Optional[ResourceOptions] = None,
                         filters: Optional[Sequence[NetworkPacketCaptureFilterArgs]] = None,
                         maximum_bytes_per_packet: Optional[int] = None,
                         maximum_bytes_per_session: Optional[int] = None,
                         maximum_capture_duration: Optional[int] = None,
                         name: Optional[str] = None,
                         network_watcher_name: Optional[str] = None,
                         resource_group_name: Optional[str] = None,
                         storage_location: Optional[NetworkPacketCaptureStorageLocationArgs] = None,
                         target_resource_id: Optional[str] = None)
@overload
def NetworkPacketCapture(resource_name: str,
                         args: NetworkPacketCaptureArgs,
                         opts: Optional[ResourceOptions] = None)
func NewNetworkPacketCapture(ctx *Context, name string, args NetworkPacketCaptureArgs, opts ...ResourceOption) (*NetworkPacketCapture, error)
public NetworkPacketCapture(string name, NetworkPacketCaptureArgs args, CustomResourceOptions? opts = null)
public NetworkPacketCapture(String name, NetworkPacketCaptureArgs args)
public NetworkPacketCapture(String name, NetworkPacketCaptureArgs args, CustomResourceOptions options)
type: azure:network:NetworkPacketCapture
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

name string
The unique name of the resource.
args NetworkPacketCaptureArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name str
The unique name of the resource.
args NetworkPacketCaptureArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name string
The unique name of the resource.
args NetworkPacketCaptureArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args NetworkPacketCaptureArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name String
The unique name of the resource.
args NetworkPacketCaptureArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

NetworkPacketCapture Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

Inputs

The NetworkPacketCapture resource accepts the following input properties:

NetworkWatcherName string

The name of the Network Watcher. Changing this forces a new resource to be created.

ResourceGroupName string

The name of the resource group in which the Network Watcher exists. Changing this forces a new resource to be created.

StorageLocation NetworkPacketCaptureStorageLocationArgs

A storage_location block as defined below. Changing this forces a new resource to be created.

TargetResourceId string

The ID of the Resource to capture packets from. Changing this forces a new resource to be created.

Filters List<NetworkPacketCaptureFilterArgs>

One or more filter blocks as defined below. Changing this forces a new resource to be created.

MaximumBytesPerPacket int

The number of bytes captured per packet. The remaining bytes are truncated. Defaults to 0 (Entire Packet Captured). Changing this forces a new resource to be created.

MaximumBytesPerSession int

Maximum size of the capture in Bytes. Defaults to 1073741824 (1GB). Changing this forces a new resource to be created.

MaximumCaptureDuration int

The maximum duration of the capture session in seconds. Defaults to 18000 (5 hours). Changing this forces a new resource to be created.

Name string

The name to use for this Network Packet Capture. Changing this forces a new resource to be created.

NetworkWatcherName string

The name of the Network Watcher. Changing this forces a new resource to be created.

ResourceGroupName string

The name of the resource group in which the Network Watcher exists. Changing this forces a new resource to be created.

StorageLocation NetworkPacketCaptureStorageLocationArgs

A storage_location block as defined below. Changing this forces a new resource to be created.

TargetResourceId string

The ID of the Resource to capture packets from. Changing this forces a new resource to be created.

Filters []NetworkPacketCaptureFilterArgs

One or more filter blocks as defined below. Changing this forces a new resource to be created.

MaximumBytesPerPacket int

The number of bytes captured per packet. The remaining bytes are truncated. Defaults to 0 (Entire Packet Captured). Changing this forces a new resource to be created.

MaximumBytesPerSession int

Maximum size of the capture in Bytes. Defaults to 1073741824 (1GB). Changing this forces a new resource to be created.

MaximumCaptureDuration int

The maximum duration of the capture session in seconds. Defaults to 18000 (5 hours). Changing this forces a new resource to be created.

Name string

The name to use for this Network Packet Capture. Changing this forces a new resource to be created.

networkWatcherName String

The name of the Network Watcher. Changing this forces a new resource to be created.

resourceGroupName String

The name of the resource group in which the Network Watcher exists. Changing this forces a new resource to be created.

storageLocation NetworkPacketCaptureStorageLocationArgs

A storage_location block as defined below. Changing this forces a new resource to be created.

targetResourceId String

The ID of the Resource to capture packets from. Changing this forces a new resource to be created.

filters List<NetworkPacketCaptureFilterArgs>

One or more filter blocks as defined below. Changing this forces a new resource to be created.

maximumBytesPerPacket Integer

The number of bytes captured per packet. The remaining bytes are truncated. Defaults to 0 (Entire Packet Captured). Changing this forces a new resource to be created.

maximumBytesPerSession Integer

Maximum size of the capture in Bytes. Defaults to 1073741824 (1GB). Changing this forces a new resource to be created.

maximumCaptureDuration Integer

The maximum duration of the capture session in seconds. Defaults to 18000 (5 hours). Changing this forces a new resource to be created.

name String

The name to use for this Network Packet Capture. Changing this forces a new resource to be created.

networkWatcherName string

The name of the Network Watcher. Changing this forces a new resource to be created.

resourceGroupName string

The name of the resource group in which the Network Watcher exists. Changing this forces a new resource to be created.

storageLocation NetworkPacketCaptureStorageLocationArgs

A storage_location block as defined below. Changing this forces a new resource to be created.

targetResourceId string

The ID of the Resource to capture packets from. Changing this forces a new resource to be created.

filters NetworkPacketCaptureFilterArgs[]

One or more filter blocks as defined below. Changing this forces a new resource to be created.

maximumBytesPerPacket number

The number of bytes captured per packet. The remaining bytes are truncated. Defaults to 0 (Entire Packet Captured). Changing this forces a new resource to be created.

maximumBytesPerSession number

Maximum size of the capture in Bytes. Defaults to 1073741824 (1GB). Changing this forces a new resource to be created.

maximumCaptureDuration number

The maximum duration of the capture session in seconds. Defaults to 18000 (5 hours). Changing this forces a new resource to be created.

name string

The name to use for this Network Packet Capture. Changing this forces a new resource to be created.

network_watcher_name str

The name of the Network Watcher. Changing this forces a new resource to be created.

resource_group_name str

The name of the resource group in which the Network Watcher exists. Changing this forces a new resource to be created.

storage_location NetworkPacketCaptureStorageLocationArgs

A storage_location block as defined below. Changing this forces a new resource to be created.

target_resource_id str

The ID of the Resource to capture packets from. Changing this forces a new resource to be created.

filters Sequence[NetworkPacketCaptureFilterArgs]

One or more filter blocks as defined below. Changing this forces a new resource to be created.

maximum_bytes_per_packet int

The number of bytes captured per packet. The remaining bytes are truncated. Defaults to 0 (Entire Packet Captured). Changing this forces a new resource to be created.

maximum_bytes_per_session int

Maximum size of the capture in Bytes. Defaults to 1073741824 (1GB). Changing this forces a new resource to be created.

maximum_capture_duration int

The maximum duration of the capture session in seconds. Defaults to 18000 (5 hours). Changing this forces a new resource to be created.

name str

The name to use for this Network Packet Capture. Changing this forces a new resource to be created.

networkWatcherName String

The name of the Network Watcher. Changing this forces a new resource to be created.

resourceGroupName String

The name of the resource group in which the Network Watcher exists. Changing this forces a new resource to be created.

storageLocation Property Map

A storage_location block as defined below. Changing this forces a new resource to be created.

targetResourceId String

The ID of the Resource to capture packets from. Changing this forces a new resource to be created.

filters List<Property Map>

One or more filter blocks as defined below. Changing this forces a new resource to be created.

maximumBytesPerPacket Number

The number of bytes captured per packet. The remaining bytes are truncated. Defaults to 0 (Entire Packet Captured). Changing this forces a new resource to be created.

maximumBytesPerSession Number

Maximum size of the capture in Bytes. Defaults to 1073741824 (1GB). Changing this forces a new resource to be created.

maximumCaptureDuration Number

The maximum duration of the capture session in seconds. Defaults to 18000 (5 hours). Changing this forces a new resource to be created.

name String

The name to use for this Network Packet Capture. Changing this forces a new resource to be created.

Outputs

All input properties are implicitly available as output properties. Additionally, the NetworkPacketCapture resource produces the following output properties:

Id string

The provider-assigned unique ID for this managed resource.

Id string

The provider-assigned unique ID for this managed resource.

id String

The provider-assigned unique ID for this managed resource.

id string

The provider-assigned unique ID for this managed resource.

id str

The provider-assigned unique ID for this managed resource.

id String

The provider-assigned unique ID for this managed resource.

Look up Existing NetworkPacketCapture Resource

Get an existing NetworkPacketCapture resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

public static get(name: string, id: Input<ID>, state?: NetworkPacketCaptureState, opts?: CustomResourceOptions): NetworkPacketCapture
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        filters: Optional[Sequence[NetworkPacketCaptureFilterArgs]] = None,
        maximum_bytes_per_packet: Optional[int] = None,
        maximum_bytes_per_session: Optional[int] = None,
        maximum_capture_duration: Optional[int] = None,
        name: Optional[str] = None,
        network_watcher_name: Optional[str] = None,
        resource_group_name: Optional[str] = None,
        storage_location: Optional[NetworkPacketCaptureStorageLocationArgs] = None,
        target_resource_id: Optional[str] = None) -> NetworkPacketCapture
func GetNetworkPacketCapture(ctx *Context, name string, id IDInput, state *NetworkPacketCaptureState, opts ...ResourceOption) (*NetworkPacketCapture, error)
public static NetworkPacketCapture Get(string name, Input<string> id, NetworkPacketCaptureState? state, CustomResourceOptions? opts = null)
public static NetworkPacketCapture get(String name, Output<String> id, NetworkPacketCaptureState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
resource_name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
The following state arguments are supported:
Filters List<NetworkPacketCaptureFilterArgs>

One or more filter blocks as defined below. Changing this forces a new resource to be created.

MaximumBytesPerPacket int

The number of bytes captured per packet. The remaining bytes are truncated. Defaults to 0 (Entire Packet Captured). Changing this forces a new resource to be created.

MaximumBytesPerSession int

Maximum size of the capture in Bytes. Defaults to 1073741824 (1GB). Changing this forces a new resource to be created.

MaximumCaptureDuration int

The maximum duration of the capture session in seconds. Defaults to 18000 (5 hours). Changing this forces a new resource to be created.

Name string

The name to use for this Network Packet Capture. Changing this forces a new resource to be created.

NetworkWatcherName string

The name of the Network Watcher. Changing this forces a new resource to be created.

ResourceGroupName string

The name of the resource group in which the Network Watcher exists. Changing this forces a new resource to be created.

StorageLocation NetworkPacketCaptureStorageLocationArgs

A storage_location block as defined below. Changing this forces a new resource to be created.

TargetResourceId string

The ID of the Resource to capture packets from. Changing this forces a new resource to be created.

Filters []NetworkPacketCaptureFilterArgs

One or more filter blocks as defined below. Changing this forces a new resource to be created.

MaximumBytesPerPacket int

The number of bytes captured per packet. The remaining bytes are truncated. Defaults to 0 (Entire Packet Captured). Changing this forces a new resource to be created.

MaximumBytesPerSession int

Maximum size of the capture in Bytes. Defaults to 1073741824 (1GB). Changing this forces a new resource to be created.

MaximumCaptureDuration int

The maximum duration of the capture session in seconds. Defaults to 18000 (5 hours). Changing this forces a new resource to be created.

Name string

The name to use for this Network Packet Capture. Changing this forces a new resource to be created.

NetworkWatcherName string

The name of the Network Watcher. Changing this forces a new resource to be created.

ResourceGroupName string

The name of the resource group in which the Network Watcher exists. Changing this forces a new resource to be created.

StorageLocation NetworkPacketCaptureStorageLocationArgs

A storage_location block as defined below. Changing this forces a new resource to be created.

TargetResourceId string

The ID of the Resource to capture packets from. Changing this forces a new resource to be created.

filters List<NetworkPacketCaptureFilterArgs>

One or more filter blocks as defined below. Changing this forces a new resource to be created.

maximumBytesPerPacket Integer

The number of bytes captured per packet. The remaining bytes are truncated. Defaults to 0 (Entire Packet Captured). Changing this forces a new resource to be created.

maximumBytesPerSession Integer

Maximum size of the capture in Bytes. Defaults to 1073741824 (1GB). Changing this forces a new resource to be created.

maximumCaptureDuration Integer

The maximum duration of the capture session in seconds. Defaults to 18000 (5 hours). Changing this forces a new resource to be created.

name String

The name to use for this Network Packet Capture. Changing this forces a new resource to be created.

networkWatcherName String

The name of the Network Watcher. Changing this forces a new resource to be created.

resourceGroupName String

The name of the resource group in which the Network Watcher exists. Changing this forces a new resource to be created.

storageLocation NetworkPacketCaptureStorageLocationArgs

A storage_location block as defined below. Changing this forces a new resource to be created.

targetResourceId String

The ID of the Resource to capture packets from. Changing this forces a new resource to be created.

filters NetworkPacketCaptureFilterArgs[]

One or more filter blocks as defined below. Changing this forces a new resource to be created.

maximumBytesPerPacket number

The number of bytes captured per packet. The remaining bytes are truncated. Defaults to 0 (Entire Packet Captured). Changing this forces a new resource to be created.

maximumBytesPerSession number

Maximum size of the capture in Bytes. Defaults to 1073741824 (1GB). Changing this forces a new resource to be created.

maximumCaptureDuration number

The maximum duration of the capture session in seconds. Defaults to 18000 (5 hours). Changing this forces a new resource to be created.

name string

The name to use for this Network Packet Capture. Changing this forces a new resource to be created.

networkWatcherName string

The name of the Network Watcher. Changing this forces a new resource to be created.

resourceGroupName string

The name of the resource group in which the Network Watcher exists. Changing this forces a new resource to be created.

storageLocation NetworkPacketCaptureStorageLocationArgs

A storage_location block as defined below. Changing this forces a new resource to be created.

targetResourceId string

The ID of the Resource to capture packets from. Changing this forces a new resource to be created.

filters Sequence[NetworkPacketCaptureFilterArgs]

One or more filter blocks as defined below. Changing this forces a new resource to be created.

maximum_bytes_per_packet int

The number of bytes captured per packet. The remaining bytes are truncated. Defaults to 0 (Entire Packet Captured). Changing this forces a new resource to be created.

maximum_bytes_per_session int

Maximum size of the capture in Bytes. Defaults to 1073741824 (1GB). Changing this forces a new resource to be created.

maximum_capture_duration int

The maximum duration of the capture session in seconds. Defaults to 18000 (5 hours). Changing this forces a new resource to be created.

name str

The name to use for this Network Packet Capture. Changing this forces a new resource to be created.

network_watcher_name str

The name of the Network Watcher. Changing this forces a new resource to be created.

resource_group_name str

The name of the resource group in which the Network Watcher exists. Changing this forces a new resource to be created.

storage_location NetworkPacketCaptureStorageLocationArgs

A storage_location block as defined below. Changing this forces a new resource to be created.

target_resource_id str

The ID of the Resource to capture packets from. Changing this forces a new resource to be created.

filters List<Property Map>

One or more filter blocks as defined below. Changing this forces a new resource to be created.

maximumBytesPerPacket Number

The number of bytes captured per packet. The remaining bytes are truncated. Defaults to 0 (Entire Packet Captured). Changing this forces a new resource to be created.

maximumBytesPerSession Number

Maximum size of the capture in Bytes. Defaults to 1073741824 (1GB). Changing this forces a new resource to be created.

maximumCaptureDuration Number

The maximum duration of the capture session in seconds. Defaults to 18000 (5 hours). Changing this forces a new resource to be created.

name String

The name to use for this Network Packet Capture. Changing this forces a new resource to be created.

networkWatcherName String

The name of the Network Watcher. Changing this forces a new resource to be created.

resourceGroupName String

The name of the resource group in which the Network Watcher exists. Changing this forces a new resource to be created.

storageLocation Property Map

A storage_location block as defined below. Changing this forces a new resource to be created.

targetResourceId String

The ID of the Resource to capture packets from. Changing this forces a new resource to be created.

Supporting Types

NetworkPacketCaptureFilter

Protocol string

The Protocol to be filtered on. Possible values include Any, TCP and UDP. Changing this forces a new resource to be created.

LocalIpAddress string

The local IP Address to be filtered on. Notation: "127.0.0.1" for single address entry. "127.0.0.1-127.0.0.255" for range. "127.0.0.1;127.0.0.5" for multiple entries. Multiple ranges not currently supported. Mixing ranges with multiple entries not currently supported. Changing this forces a new resource to be created.

LocalPort string

The local port to be filtered on. Notation: "80" for single port entry."80-85" for range. "80;443;" for multiple entries. Multiple ranges not currently supported. Mixing ranges with multiple entries not currently supported. Changing this forces a new resource to be created.

RemoteIpAddress string

The remote IP Address to be filtered on. Notation: "127.0.0.1" for single address entry. "127.0.0.1-127.0.0.255" for range. "127.0.0.1;127.0.0.5;" for multiple entries. Multiple ranges not currently supported. Mixing ranges with multiple entries not currently supported.. Changing this forces a new resource to be created.

RemotePort string

The remote port to be filtered on. Notation: "80" for single port entry."80-85" for range. "80;443;" for multiple entries. Multiple ranges not currently supported. Mixing ranges with multiple entries not currently supported. Changing this forces a new resource to be created.

Protocol string

The Protocol to be filtered on. Possible values include Any, TCP and UDP. Changing this forces a new resource to be created.

LocalIpAddress string

The local IP Address to be filtered on. Notation: "127.0.0.1" for single address entry. "127.0.0.1-127.0.0.255" for range. "127.0.0.1;127.0.0.5" for multiple entries. Multiple ranges not currently supported. Mixing ranges with multiple entries not currently supported. Changing this forces a new resource to be created.

LocalPort string

The local port to be filtered on. Notation: "80" for single port entry."80-85" for range. "80;443;" for multiple entries. Multiple ranges not currently supported. Mixing ranges with multiple entries not currently supported. Changing this forces a new resource to be created.

RemoteIpAddress string

The remote IP Address to be filtered on. Notation: "127.0.0.1" for single address entry. "127.0.0.1-127.0.0.255" for range. "127.0.0.1;127.0.0.5;" for multiple entries. Multiple ranges not currently supported. Mixing ranges with multiple entries not currently supported.. Changing this forces a new resource to be created.

RemotePort string

The remote port to be filtered on. Notation: "80" for single port entry."80-85" for range. "80;443;" for multiple entries. Multiple ranges not currently supported. Mixing ranges with multiple entries not currently supported. Changing this forces a new resource to be created.

protocol String

The Protocol to be filtered on. Possible values include Any, TCP and UDP. Changing this forces a new resource to be created.

localIpAddress String

The local IP Address to be filtered on. Notation: "127.0.0.1" for single address entry. "127.0.0.1-127.0.0.255" for range. "127.0.0.1;127.0.0.5" for multiple entries. Multiple ranges not currently supported. Mixing ranges with multiple entries not currently supported. Changing this forces a new resource to be created.

localPort String

The local port to be filtered on. Notation: "80" for single port entry."80-85" for range. "80;443;" for multiple entries. Multiple ranges not currently supported. Mixing ranges with multiple entries not currently supported. Changing this forces a new resource to be created.

remoteIpAddress String

The remote IP Address to be filtered on. Notation: "127.0.0.1" for single address entry. "127.0.0.1-127.0.0.255" for range. "127.0.0.1;127.0.0.5;" for multiple entries. Multiple ranges not currently supported. Mixing ranges with multiple entries not currently supported.. Changing this forces a new resource to be created.

remotePort String

The remote port to be filtered on. Notation: "80" for single port entry."80-85" for range. "80;443;" for multiple entries. Multiple ranges not currently supported. Mixing ranges with multiple entries not currently supported. Changing this forces a new resource to be created.

protocol string

The Protocol to be filtered on. Possible values include Any, TCP and UDP. Changing this forces a new resource to be created.

localIpAddress string

The local IP Address to be filtered on. Notation: "127.0.0.1" for single address entry. "127.0.0.1-127.0.0.255" for range. "127.0.0.1;127.0.0.5" for multiple entries. Multiple ranges not currently supported. Mixing ranges with multiple entries not currently supported. Changing this forces a new resource to be created.

localPort string

The local port to be filtered on. Notation: "80" for single port entry."80-85" for range. "80;443;" for multiple entries. Multiple ranges not currently supported. Mixing ranges with multiple entries not currently supported. Changing this forces a new resource to be created.

remoteIpAddress string

The remote IP Address to be filtered on. Notation: "127.0.0.1" for single address entry. "127.0.0.1-127.0.0.255" for range. "127.0.0.1;127.0.0.5;" for multiple entries. Multiple ranges not currently supported. Mixing ranges with multiple entries not currently supported.. Changing this forces a new resource to be created.

remotePort string

The remote port to be filtered on. Notation: "80" for single port entry."80-85" for range. "80;443;" for multiple entries. Multiple ranges not currently supported. Mixing ranges with multiple entries not currently supported. Changing this forces a new resource to be created.

protocol str

The Protocol to be filtered on. Possible values include Any, TCP and UDP. Changing this forces a new resource to be created.

local_ip_address str

The local IP Address to be filtered on. Notation: "127.0.0.1" for single address entry. "127.0.0.1-127.0.0.255" for range. "127.0.0.1;127.0.0.5" for multiple entries. Multiple ranges not currently supported. Mixing ranges with multiple entries not currently supported. Changing this forces a new resource to be created.

local_port str

The local port to be filtered on. Notation: "80" for single port entry."80-85" for range. "80;443;" for multiple entries. Multiple ranges not currently supported. Mixing ranges with multiple entries not currently supported. Changing this forces a new resource to be created.

remote_ip_address str

The remote IP Address to be filtered on. Notation: "127.0.0.1" for single address entry. "127.0.0.1-127.0.0.255" for range. "127.0.0.1;127.0.0.5;" for multiple entries. Multiple ranges not currently supported. Mixing ranges with multiple entries not currently supported.. Changing this forces a new resource to be created.

remote_port str

The remote port to be filtered on. Notation: "80" for single port entry."80-85" for range. "80;443;" for multiple entries. Multiple ranges not currently supported. Mixing ranges with multiple entries not currently supported. Changing this forces a new resource to be created.

protocol String

The Protocol to be filtered on. Possible values include Any, TCP and UDP. Changing this forces a new resource to be created.

localIpAddress String

The local IP Address to be filtered on. Notation: "127.0.0.1" for single address entry. "127.0.0.1-127.0.0.255" for range. "127.0.0.1;127.0.0.5" for multiple entries. Multiple ranges not currently supported. Mixing ranges with multiple entries not currently supported. Changing this forces a new resource to be created.

localPort String

The local port to be filtered on. Notation: "80" for single port entry."80-85" for range. "80;443;" for multiple entries. Multiple ranges not currently supported. Mixing ranges with multiple entries not currently supported. Changing this forces a new resource to be created.

remoteIpAddress String

The remote IP Address to be filtered on. Notation: "127.0.0.1" for single address entry. "127.0.0.1-127.0.0.255" for range. "127.0.0.1;127.0.0.5;" for multiple entries. Multiple ranges not currently supported. Mixing ranges with multiple entries not currently supported.. Changing this forces a new resource to be created.

remotePort String

The remote port to be filtered on. Notation: "80" for single port entry."80-85" for range. "80;443;" for multiple entries. Multiple ranges not currently supported. Mixing ranges with multiple entries not currently supported. Changing this forces a new resource to be created.

NetworkPacketCaptureStorageLocation

FilePath string

A valid local path on the targeting VM. Must include the name of the capture file (*.cap). For Linux virtual machine it must start with /var/captures.

StorageAccountId string

The ID of the storage account to save the packet capture session

StoragePath string

The URI of the storage path to save the packet capture.

FilePath string

A valid local path on the targeting VM. Must include the name of the capture file (*.cap). For Linux virtual machine it must start with /var/captures.

StorageAccountId string

The ID of the storage account to save the packet capture session

StoragePath string

The URI of the storage path to save the packet capture.

filePath String

A valid local path on the targeting VM. Must include the name of the capture file (*.cap). For Linux virtual machine it must start with /var/captures.

storageAccountId String

The ID of the storage account to save the packet capture session

storagePath String

The URI of the storage path to save the packet capture.

filePath string

A valid local path on the targeting VM. Must include the name of the capture file (*.cap). For Linux virtual machine it must start with /var/captures.

storageAccountId string

The ID of the storage account to save the packet capture session

storagePath string

The URI of the storage path to save the packet capture.

file_path str

A valid local path on the targeting VM. Must include the name of the capture file (*.cap). For Linux virtual machine it must start with /var/captures.

storage_account_id str

The ID of the storage account to save the packet capture session

storage_path str

The URI of the storage path to save the packet capture.

filePath String

A valid local path on the targeting VM. Must include the name of the capture file (*.cap). For Linux virtual machine it must start with /var/captures.

storageAccountId String

The ID of the storage account to save the packet capture session

storagePath String

The URI of the storage path to save the packet capture.

Import

Packet Captures can be imported using the resource id, e.g.

 $ pulumi import azure:network/networkPacketCapture:NetworkPacketCapture capture1 /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mygroup1/providers/Microsoft.Network/networkWatchers/watcher1/packetCaptures/capture1

Package Details

Repository
Azure Classic pulumi/pulumi-azure
License
Apache-2.0
Notes

This Pulumi package is based on the azurerm Terraform Provider.