azure-native.network.PacketCapture
Explore with Pulumi AI
Information about packet capture session. Azure REST API version: 2023-02-01. Prior API version in Azure Native 1.x: 2020-11-01.
Other available API versions: 2020-06-01, 2023-04-01, 2023-05-01, 2023-06-01, 2023-09-01, 2023-11-01, 2024-01-01, 2024-03-01, 2024-05-01.
Example Usage
Create packet capture
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() => 
{
    var packetCapture = new AzureNative.Network.PacketCapture("packetCapture", new()
    {
        BytesToCapturePerPacket = 10000,
        Filters = new[]
        {
            new AzureNative.Network.Inputs.PacketCaptureFilterArgs
            {
                LocalIPAddress = "10.0.0.4",
                LocalPort = "80",
                Protocol = AzureNative.Network.PcProtocol.TCP,
            },
        },
        NetworkWatcherName = "nw1",
        PacketCaptureName = "pc1",
        ResourceGroupName = "rg1",
        StorageLocation = new AzureNative.Network.Inputs.PacketCaptureStorageLocationArgs
        {
            FilePath = "D:\\capture\\pc1.cap",
            StorageId = "/subscriptions/subid/resourceGroups/rg2/providers/Microsoft.Storage/storageAccounts/pcstore",
            StoragePath = "https://mytestaccountname.blob.core.windows.net/capture/pc1.cap",
        },
        Target = "/subscriptions/subid/resourceGroups/rg2/providers/Microsoft.Compute/virtualMachines/vm1",
        TimeLimitInSeconds = 100,
        TotalBytesPerSession = 100000,
    });
});
package main
import (
	network "github.com/pulumi/pulumi-azure-native-sdk/network/v2"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := network.NewPacketCapture(ctx, "packetCapture", &network.PacketCaptureArgs{
			BytesToCapturePerPacket: pulumi.Float64(10000),
			Filters: network.PacketCaptureFilterArray{
				&network.PacketCaptureFilterArgs{
					LocalIPAddress: pulumi.String("10.0.0.4"),
					LocalPort:      pulumi.String("80"),
					Protocol:       pulumi.String(network.PcProtocolTCP),
				},
			},
			NetworkWatcherName: pulumi.String("nw1"),
			PacketCaptureName:  pulumi.String("pc1"),
			ResourceGroupName:  pulumi.String("rg1"),
			StorageLocation: &network.PacketCaptureStorageLocationArgs{
				FilePath:    pulumi.String("D:\\capture\\pc1.cap"),
				StorageId:   pulumi.String("/subscriptions/subid/resourceGroups/rg2/providers/Microsoft.Storage/storageAccounts/pcstore"),
				StoragePath: pulumi.String("https://mytestaccountname.blob.core.windows.net/capture/pc1.cap"),
			},
			Target:               pulumi.String("/subscriptions/subid/resourceGroups/rg2/providers/Microsoft.Compute/virtualMachines/vm1"),
			TimeLimitInSeconds:   pulumi.Int(100),
			TotalBytesPerSession: pulumi.Float64(100000),
		})
		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.azurenative.network.PacketCapture;
import com.pulumi.azurenative.network.PacketCaptureArgs;
import com.pulumi.azurenative.network.inputs.PacketCaptureFilterArgs;
import com.pulumi.azurenative.network.inputs.PacketCaptureStorageLocationArgs;
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 packetCapture = new PacketCapture("packetCapture", PacketCaptureArgs.builder()
            .bytesToCapturePerPacket(10000)
            .filters(PacketCaptureFilterArgs.builder()
                .localIPAddress("10.0.0.4")
                .localPort("80")
                .protocol("TCP")
                .build())
            .networkWatcherName("nw1")
            .packetCaptureName("pc1")
            .resourceGroupName("rg1")
            .storageLocation(PacketCaptureStorageLocationArgs.builder()
                .filePath("D:\\capture\\pc1.cap")
                .storageId("/subscriptions/subid/resourceGroups/rg2/providers/Microsoft.Storage/storageAccounts/pcstore")
                .storagePath("https://mytestaccountname.blob.core.windows.net/capture/pc1.cap")
                .build())
            .target("/subscriptions/subid/resourceGroups/rg2/providers/Microsoft.Compute/virtualMachines/vm1")
            .timeLimitInSeconds(100)
            .totalBytesPerSession(100000)
            .build());
    }
}
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";
const packetCapture = new azure_native.network.PacketCapture("packetCapture", {
    bytesToCapturePerPacket: 10000,
    filters: [{
        localIPAddress: "10.0.0.4",
        localPort: "80",
        protocol: azure_native.network.PcProtocol.TCP,
    }],
    networkWatcherName: "nw1",
    packetCaptureName: "pc1",
    resourceGroupName: "rg1",
    storageLocation: {
        filePath: "D:\\capture\\pc1.cap",
        storageId: "/subscriptions/subid/resourceGroups/rg2/providers/Microsoft.Storage/storageAccounts/pcstore",
        storagePath: "https://mytestaccountname.blob.core.windows.net/capture/pc1.cap",
    },
    target: "/subscriptions/subid/resourceGroups/rg2/providers/Microsoft.Compute/virtualMachines/vm1",
    timeLimitInSeconds: 100,
    totalBytesPerSession: 100000,
});
import pulumi
import pulumi_azure_native as azure_native
packet_capture = azure_native.network.PacketCapture("packetCapture",
    bytes_to_capture_per_packet=10000,
    filters=[{
        "local_ip_address": "10.0.0.4",
        "local_port": "80",
        "protocol": azure_native.network.PcProtocol.TCP,
    }],
    network_watcher_name="nw1",
    packet_capture_name="pc1",
    resource_group_name="rg1",
    storage_location={
        "file_path": "D:\\capture\\pc1.cap",
        "storage_id": "/subscriptions/subid/resourceGroups/rg2/providers/Microsoft.Storage/storageAccounts/pcstore",
        "storage_path": "https://mytestaccountname.blob.core.windows.net/capture/pc1.cap",
    },
    target="/subscriptions/subid/resourceGroups/rg2/providers/Microsoft.Compute/virtualMachines/vm1",
    time_limit_in_seconds=100,
    total_bytes_per_session=100000)
resources:
  packetCapture:
    type: azure-native:network:PacketCapture
    properties:
      bytesToCapturePerPacket: 10000
      filters:
        - localIPAddress: 10.0.0.4
          localPort: '80'
          protocol: TCP
      networkWatcherName: nw1
      packetCaptureName: pc1
      resourceGroupName: rg1
      storageLocation:
        filePath: D:\capture\pc1.cap
        storageId: /subscriptions/subid/resourceGroups/rg2/providers/Microsoft.Storage/storageAccounts/pcstore
        storagePath: https://mytestaccountname.blob.core.windows.net/capture/pc1.cap
      target: /subscriptions/subid/resourceGroups/rg2/providers/Microsoft.Compute/virtualMachines/vm1
      timeLimitInSeconds: 100
      totalBytesPerSession: 100000
Create PacketCapture Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new PacketCapture(name: string, args: PacketCaptureArgs, opts?: CustomResourceOptions);@overload
def PacketCapture(resource_name: str,
                  args: PacketCaptureArgs,
                  opts: Optional[ResourceOptions] = None)
@overload
def PacketCapture(resource_name: str,
                  opts: Optional[ResourceOptions] = None,
                  network_watcher_name: Optional[str] = None,
                  resource_group_name: Optional[str] = None,
                  storage_location: Optional[PacketCaptureStorageLocationArgs] = None,
                  target: Optional[str] = None,
                  bytes_to_capture_per_packet: Optional[float] = None,
                  filters: Optional[Sequence[PacketCaptureFilterArgs]] = None,
                  packet_capture_name: Optional[str] = None,
                  scope: Optional[PacketCaptureMachineScopeArgs] = None,
                  target_type: Optional[PacketCaptureTargetType] = None,
                  time_limit_in_seconds: Optional[int] = None,
                  total_bytes_per_session: Optional[float] = None)func NewPacketCapture(ctx *Context, name string, args PacketCaptureArgs, opts ...ResourceOption) (*PacketCapture, error)public PacketCapture(string name, PacketCaptureArgs args, CustomResourceOptions? opts = null)
public PacketCapture(String name, PacketCaptureArgs args)
public PacketCapture(String name, PacketCaptureArgs args, CustomResourceOptions options)
type: azure-native:network:PacketCapture
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args PacketCaptureArgs
- 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 PacketCaptureArgs
- 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 PacketCaptureArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args PacketCaptureArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args PacketCaptureArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var azure_nativePacketCaptureResource = new AzureNative.Network.PacketCapture("azure-nativePacketCaptureResource", new()
{
    NetworkWatcherName = "string",
    ResourceGroupName = "string",
    StorageLocation = new AzureNative.Network.Inputs.PacketCaptureStorageLocationArgs
    {
        FilePath = "string",
        StorageId = "string",
        StoragePath = "string",
    },
    Target = "string",
    BytesToCapturePerPacket = 0,
    Filters = new[]
    {
        new AzureNative.Network.Inputs.PacketCaptureFilterArgs
        {
            LocalIPAddress = "string",
            LocalPort = "string",
            Protocol = "string",
            RemoteIPAddress = "string",
            RemotePort = "string",
        },
    },
    PacketCaptureName = "string",
    Scope = new AzureNative.Network.Inputs.PacketCaptureMachineScopeArgs
    {
        Exclude = new[]
        {
            "string",
        },
        Include = new[]
        {
            "string",
        },
    },
    TargetType = AzureNative.Network.PacketCaptureTargetType.AzureVM,
    TimeLimitInSeconds = 0,
    TotalBytesPerSession = 0,
});
example, err := network.NewPacketCapture(ctx, "azure-nativePacketCaptureResource", &network.PacketCaptureArgs{
	NetworkWatcherName: pulumi.String("string"),
	ResourceGroupName:  pulumi.String("string"),
	StorageLocation: &network.PacketCaptureStorageLocationArgs{
		FilePath:    pulumi.String("string"),
		StorageId:   pulumi.String("string"),
		StoragePath: pulumi.String("string"),
	},
	Target:                  pulumi.String("string"),
	BytesToCapturePerPacket: pulumi.Float64(0),
	Filters: network.PacketCaptureFilterArray{
		&network.PacketCaptureFilterArgs{
			LocalIPAddress:  pulumi.String("string"),
			LocalPort:       pulumi.String("string"),
			Protocol:        pulumi.String("string"),
			RemoteIPAddress: pulumi.String("string"),
			RemotePort:      pulumi.String("string"),
		},
	},
	PacketCaptureName: pulumi.String("string"),
	Scope: &network.PacketCaptureMachineScopeArgs{
		Exclude: pulumi.StringArray{
			pulumi.String("string"),
		},
		Include: pulumi.StringArray{
			pulumi.String("string"),
		},
	},
	TargetType:           network.PacketCaptureTargetTypeAzureVM,
	TimeLimitInSeconds:   pulumi.Int(0),
	TotalBytesPerSession: pulumi.Float64(0),
})
var azure_nativePacketCaptureResource = new PacketCapture("azure-nativePacketCaptureResource", PacketCaptureArgs.builder()
    .networkWatcherName("string")
    .resourceGroupName("string")
    .storageLocation(PacketCaptureStorageLocationArgs.builder()
        .filePath("string")
        .storageId("string")
        .storagePath("string")
        .build())
    .target("string")
    .bytesToCapturePerPacket(0)
    .filters(PacketCaptureFilterArgs.builder()
        .localIPAddress("string")
        .localPort("string")
        .protocol("string")
        .remoteIPAddress("string")
        .remotePort("string")
        .build())
    .packetCaptureName("string")
    .scope(PacketCaptureMachineScopeArgs.builder()
        .exclude("string")
        .include("string")
        .build())
    .targetType("AzureVM")
    .timeLimitInSeconds(0)
    .totalBytesPerSession(0)
    .build());
azure_native_packet_capture_resource = azure_native.network.PacketCapture("azure-nativePacketCaptureResource",
    network_watcher_name="string",
    resource_group_name="string",
    storage_location={
        "file_path": "string",
        "storage_id": "string",
        "storage_path": "string",
    },
    target="string",
    bytes_to_capture_per_packet=0,
    filters=[{
        "local_ip_address": "string",
        "local_port": "string",
        "protocol": "string",
        "remote_ip_address": "string",
        "remote_port": "string",
    }],
    packet_capture_name="string",
    scope={
        "exclude": ["string"],
        "include": ["string"],
    },
    target_type=azure_native.network.PacketCaptureTargetType.AZURE_VM,
    time_limit_in_seconds=0,
    total_bytes_per_session=0)
const azure_nativePacketCaptureResource = new azure_native.network.PacketCapture("azure-nativePacketCaptureResource", {
    networkWatcherName: "string",
    resourceGroupName: "string",
    storageLocation: {
        filePath: "string",
        storageId: "string",
        storagePath: "string",
    },
    target: "string",
    bytesToCapturePerPacket: 0,
    filters: [{
        localIPAddress: "string",
        localPort: "string",
        protocol: "string",
        remoteIPAddress: "string",
        remotePort: "string",
    }],
    packetCaptureName: "string",
    scope: {
        exclude: ["string"],
        include: ["string"],
    },
    targetType: azure_native.network.PacketCaptureTargetType.AzureVM,
    timeLimitInSeconds: 0,
    totalBytesPerSession: 0,
});
type: azure-native:network:PacketCapture
properties:
    bytesToCapturePerPacket: 0
    filters:
        - localIPAddress: string
          localPort: string
          protocol: string
          remoteIPAddress: string
          remotePort: string
    networkWatcherName: string
    packetCaptureName: string
    resourceGroupName: string
    scope:
        exclude:
            - string
        include:
            - string
    storageLocation:
        filePath: string
        storageId: string
        storagePath: string
    target: string
    targetType: AzureVM
    timeLimitInSeconds: 0
    totalBytesPerSession: 0
PacketCapture Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The PacketCapture resource accepts the following input properties:
- NetworkWatcher stringName 
- The name of the network watcher.
- ResourceGroup stringName 
- The name of the resource group.
- StorageLocation Pulumi.Azure Native. Network. Inputs. Packet Capture Storage Location 
- The storage location for a packet capture session.
- Target string
- The ID of the targeted resource, only AzureVM and AzureVMSS as target type are currently supported.
- BytesTo doubleCapture Per Packet 
- Number of bytes captured per packet, the remaining bytes are truncated.
- Filters
List<Pulumi.Azure Native. Network. Inputs. Packet Capture Filter> 
- A list of packet capture filters.
- PacketCapture stringName 
- The name of the packet capture session.
- Scope
Pulumi.Azure Native. Network. Inputs. Packet Capture Machine Scope 
- A list of AzureVMSS instances which can be included or excluded to run packet capture. If both included and excluded are empty, then the packet capture will run on all instances of AzureVMSS.
- TargetType Pulumi.Azure Native. Network. Packet Capture Target Type 
- Target type of the resource provided.
- TimeLimit intIn Seconds 
- Maximum duration of the capture session in seconds.
- TotalBytes doublePer Session 
- Maximum size of the capture output.
- NetworkWatcher stringName 
- The name of the network watcher.
- ResourceGroup stringName 
- The name of the resource group.
- StorageLocation PacketCapture Storage Location Args 
- The storage location for a packet capture session.
- Target string
- The ID of the targeted resource, only AzureVM and AzureVMSS as target type are currently supported.
- BytesTo float64Capture Per Packet 
- Number of bytes captured per packet, the remaining bytes are truncated.
- Filters
[]PacketCapture Filter Args 
- A list of packet capture filters.
- PacketCapture stringName 
- The name of the packet capture session.
- Scope
PacketCapture Machine Scope Args 
- A list of AzureVMSS instances which can be included or excluded to run packet capture. If both included and excluded are empty, then the packet capture will run on all instances of AzureVMSS.
- TargetType PacketCapture Target Type 
- Target type of the resource provided.
- TimeLimit intIn Seconds 
- Maximum duration of the capture session in seconds.
- TotalBytes float64Per Session 
- Maximum size of the capture output.
- networkWatcher StringName 
- The name of the network watcher.
- resourceGroup StringName 
- The name of the resource group.
- storageLocation PacketCapture Storage Location 
- The storage location for a packet capture session.
- target String
- The ID of the targeted resource, only AzureVM and AzureVMSS as target type are currently supported.
- bytesTo DoubleCapture Per Packet 
- Number of bytes captured per packet, the remaining bytes are truncated.
- filters
List<PacketCapture Filter> 
- A list of packet capture filters.
- packetCapture StringName 
- The name of the packet capture session.
- scope
PacketCapture Machine Scope 
- A list of AzureVMSS instances which can be included or excluded to run packet capture. If both included and excluded are empty, then the packet capture will run on all instances of AzureVMSS.
- targetType PacketCapture Target Type 
- Target type of the resource provided.
- timeLimit IntegerIn Seconds 
- Maximum duration of the capture session in seconds.
- totalBytes DoublePer Session 
- Maximum size of the capture output.
- networkWatcher stringName 
- The name of the network watcher.
- resourceGroup stringName 
- The name of the resource group.
- storageLocation PacketCapture Storage Location 
- The storage location for a packet capture session.
- target string
- The ID of the targeted resource, only AzureVM and AzureVMSS as target type are currently supported.
- bytesTo numberCapture Per Packet 
- Number of bytes captured per packet, the remaining bytes are truncated.
- filters
PacketCapture Filter[] 
- A list of packet capture filters.
- packetCapture stringName 
- The name of the packet capture session.
- scope
PacketCapture Machine Scope 
- A list of AzureVMSS instances which can be included or excluded to run packet capture. If both included and excluded are empty, then the packet capture will run on all instances of AzureVMSS.
- targetType PacketCapture Target Type 
- Target type of the resource provided.
- timeLimit numberIn Seconds 
- Maximum duration of the capture session in seconds.
- totalBytes numberPer Session 
- Maximum size of the capture output.
- network_watcher_ strname 
- The name of the network watcher.
- resource_group_ strname 
- The name of the resource group.
- storage_location PacketCapture Storage Location Args 
- The storage location for a packet capture session.
- target str
- The ID of the targeted resource, only AzureVM and AzureVMSS as target type are currently supported.
- bytes_to_ floatcapture_ per_ packet 
- Number of bytes captured per packet, the remaining bytes are truncated.
- filters
Sequence[PacketCapture Filter Args] 
- A list of packet capture filters.
- packet_capture_ strname 
- The name of the packet capture session.
- scope
PacketCapture Machine Scope Args 
- A list of AzureVMSS instances which can be included or excluded to run packet capture. If both included and excluded are empty, then the packet capture will run on all instances of AzureVMSS.
- target_type PacketCapture Target Type 
- Target type of the resource provided.
- time_limit_ intin_ seconds 
- Maximum duration of the capture session in seconds.
- total_bytes_ floatper_ session 
- Maximum size of the capture output.
- networkWatcher StringName 
- The name of the network watcher.
- resourceGroup StringName 
- The name of the resource group.
- storageLocation Property Map
- The storage location for a packet capture session.
- target String
- The ID of the targeted resource, only AzureVM and AzureVMSS as target type are currently supported.
- bytesTo NumberCapture Per Packet 
- Number of bytes captured per packet, the remaining bytes are truncated.
- filters List<Property Map>
- A list of packet capture filters.
- packetCapture StringName 
- The name of the packet capture session.
- scope Property Map
- A list of AzureVMSS instances which can be included or excluded to run packet capture. If both included and excluded are empty, then the packet capture will run on all instances of AzureVMSS.
- targetType "AzureVM" | "Azure VMSS" 
- Target type of the resource provided.
- timeLimit NumberIn Seconds 
- Maximum duration of the capture session in seconds.
- totalBytes NumberPer Session 
- Maximum size of the capture output.
Outputs
All input properties are implicitly available as output properties. Additionally, the PacketCapture resource produces the following output properties:
- Etag string
- A unique read-only string that changes whenever the resource is updated.
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- Name of the packet capture session.
- ProvisioningState string
- The provisioning state of the packet capture session.
- Etag string
- A unique read-only string that changes whenever the resource is updated.
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- Name of the packet capture session.
- ProvisioningState string
- The provisioning state of the packet capture session.
- etag String
- A unique read-only string that changes whenever the resource is updated.
- id String
- The provider-assigned unique ID for this managed resource.
- name String
- Name of the packet capture session.
- provisioningState String
- The provisioning state of the packet capture session.
- etag string
- A unique read-only string that changes whenever the resource is updated.
- id string
- The provider-assigned unique ID for this managed resource.
- name string
- Name of the packet capture session.
- provisioningState string
- The provisioning state of the packet capture session.
- etag str
- A unique read-only string that changes whenever the resource is updated.
- id str
- The provider-assigned unique ID for this managed resource.
- name str
- Name of the packet capture session.
- provisioning_state str
- The provisioning state of the packet capture session.
- etag String
- A unique read-only string that changes whenever the resource is updated.
- id String
- The provider-assigned unique ID for this managed resource.
- name String
- Name of the packet capture session.
- provisioningState String
- The provisioning state of the packet capture session.
Supporting Types
PacketCaptureFilter, PacketCaptureFilterArgs      
- LocalIPAddress string
- 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. Default = null.
- LocalPort string
- 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. Default = null.
- Protocol
string | Pulumi.Azure Native. Network. Pc Protocol 
- Protocol to be filtered on.
- RemoteIPAddress string
- 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. Default = null.
- RemotePort string
- 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. Default = null.
- LocalIPAddress string
- 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. Default = null.
- LocalPort string
- 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. Default = null.
- Protocol
string | PcProtocol 
- Protocol to be filtered on.
- RemoteIPAddress string
- 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. Default = null.
- RemotePort string
- 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. Default = null.
- localIPAddress String
- 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. Default = null.
- localPort String
- 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. Default = null.
- protocol
String | PcProtocol 
- Protocol to be filtered on.
- remoteIPAddress String
- 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. Default = null.
- remotePort String
- 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. Default = null.
- localIPAddress string
- 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. Default = null.
- localPort string
- 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. Default = null.
- protocol
string | PcProtocol 
- Protocol to be filtered on.
- remoteIPAddress string
- 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. Default = null.
- remotePort string
- 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. Default = null.
- local_ip_ straddress 
- 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. Default = null.
- local_port str
- 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. Default = null.
- protocol
str | PcProtocol 
- Protocol to be filtered on.
- remote_ip_ straddress 
- 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. Default = null.
- remote_port str
- 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. Default = null.
- localIPAddress String
- 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. Default = null.
- localPort String
- 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. Default = null.
- protocol String | "TCP" | "UDP" | "Any"
- Protocol to be filtered on.
- remoteIPAddress String
- 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. Default = null.
- remotePort String
- 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. Default = null.
PacketCaptureFilterResponse, PacketCaptureFilterResponseArgs        
- LocalIPAddress string
- 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. Default = null.
- LocalPort string
- 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. Default = null.
- Protocol string
- Protocol to be filtered on.
- RemoteIPAddress string
- 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. Default = null.
- RemotePort string
- 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. Default = null.
- LocalIPAddress string
- 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. Default = null.
- LocalPort string
- 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. Default = null.
- Protocol string
- Protocol to be filtered on.
- RemoteIPAddress string
- 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. Default = null.
- RemotePort string
- 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. Default = null.
- localIPAddress String
- 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. Default = null.
- localPort String
- 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. Default = null.
- protocol String
- Protocol to be filtered on.
- remoteIPAddress String
- 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. Default = null.
- remotePort String
- 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. Default = null.
- localIPAddress string
- 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. Default = null.
- localPort string
- 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. Default = null.
- protocol string
- Protocol to be filtered on.
- remoteIPAddress string
- 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. Default = null.
- remotePort string
- 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. Default = null.
- local_ip_ straddress 
- 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. Default = null.
- local_port str
- 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. Default = null.
- protocol str
- Protocol to be filtered on.
- remote_ip_ straddress 
- 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. Default = null.
- remote_port str
- 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. Default = null.
- localIPAddress String
- 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. Default = null.
- localPort String
- 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. Default = null.
- protocol String
- Protocol to be filtered on.
- remoteIPAddress String
- 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. Default = null.
- remotePort String
- 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. Default = null.
PacketCaptureMachineScope, PacketCaptureMachineScopeArgs        
PacketCaptureMachineScopeResponse, PacketCaptureMachineScopeResponseArgs          
PacketCaptureStorageLocation, PacketCaptureStorageLocationArgs        
- 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. Required if no storage ID is provided, otherwise optional.
- StorageId string
- The ID of the storage account to save the packet capture session. Required if no local file path is provided.
- StoragePath string
- The URI of the storage path to save the packet capture. Must be a well-formed URI describing the location 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. Required if no storage ID is provided, otherwise optional.
- StorageId string
- The ID of the storage account to save the packet capture session. Required if no local file path is provided.
- StoragePath string
- The URI of the storage path to save the packet capture. Must be a well-formed URI describing the location 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. Required if no storage ID is provided, otherwise optional.
- storageId String
- The ID of the storage account to save the packet capture session. Required if no local file path is provided.
- storagePath String
- The URI of the storage path to save the packet capture. Must be a well-formed URI describing the location 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. Required if no storage ID is provided, otherwise optional.
- storageId string
- The ID of the storage account to save the packet capture session. Required if no local file path is provided.
- storagePath string
- The URI of the storage path to save the packet capture. Must be a well-formed URI describing the location 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. Required if no storage ID is provided, otherwise optional.
- storage_id str
- The ID of the storage account to save the packet capture session. Required if no local file path is provided.
- storage_path str
- The URI of the storage path to save the packet capture. Must be a well-formed URI describing the location 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. Required if no storage ID is provided, otherwise optional.
- storageId String
- The ID of the storage account to save the packet capture session. Required if no local file path is provided.
- storagePath String
- The URI of the storage path to save the packet capture. Must be a well-formed URI describing the location to save the packet capture.
PacketCaptureStorageLocationResponse, PacketCaptureStorageLocationResponseArgs          
- 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. Required if no storage ID is provided, otherwise optional.
- StorageId string
- The ID of the storage account to save the packet capture session. Required if no local file path is provided.
- StoragePath string
- The URI of the storage path to save the packet capture. Must be a well-formed URI describing the location 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. Required if no storage ID is provided, otherwise optional.
- StorageId string
- The ID of the storage account to save the packet capture session. Required if no local file path is provided.
- StoragePath string
- The URI of the storage path to save the packet capture. Must be a well-formed URI describing the location 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. Required if no storage ID is provided, otherwise optional.
- storageId String
- The ID of the storage account to save the packet capture session. Required if no local file path is provided.
- storagePath String
- The URI of the storage path to save the packet capture. Must be a well-formed URI describing the location 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. Required if no storage ID is provided, otherwise optional.
- storageId string
- The ID of the storage account to save the packet capture session. Required if no local file path is provided.
- storagePath string
- The URI of the storage path to save the packet capture. Must be a well-formed URI describing the location 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. Required if no storage ID is provided, otherwise optional.
- storage_id str
- The ID of the storage account to save the packet capture session. Required if no local file path is provided.
- storage_path str
- The URI of the storage path to save the packet capture. Must be a well-formed URI describing the location 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. Required if no storage ID is provided, otherwise optional.
- storageId String
- The ID of the storage account to save the packet capture session. Required if no local file path is provided.
- storagePath String
- The URI of the storage path to save the packet capture. Must be a well-formed URI describing the location to save the packet capture.
PacketCaptureTargetType, PacketCaptureTargetTypeArgs        
- AzureVM 
- AzureVM
- AzureVMSS 
- AzureVMSS
- PacketCapture Target Type Azure VM 
- AzureVM
- PacketCapture Target Type Azure VMSS 
- AzureVMSS
- AzureVM 
- AzureVM
- AzureVMSS 
- AzureVMSS
- AzureVM 
- AzureVM
- AzureVMSS 
- AzureVMSS
- AZURE_VM
- AzureVM
- AZURE_VMSS
- AzureVMSS
- "AzureVM" 
- AzureVM
- "AzureVMSS" 
- AzureVMSS
PcProtocol, PcProtocolArgs    
- TCP
- TCP
- UDP
- UDP
- Any
- Any
- PcProtocol TCP 
- TCP
- PcProtocol UDP 
- UDP
- PcProtocol Any 
- Any
- TCP
- TCP
- UDP
- UDP
- Any
- Any
- TCP
- TCP
- UDP
- UDP
- Any
- Any
- TCP
- TCP
- UDP
- UDP
- ANY
- Any
- "TCP"
- TCP
- "UDP"
- UDP
- "Any"
- Any
Import
An existing resource can be imported using its type token, name, and identifier, e.g.
$ pulumi import azure-native:network:PacketCapture pc1 /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/packetCaptures/{packetCaptureName} 
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Azure Native pulumi/pulumi-azure-native
- License
- Apache-2.0