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: 2018-01-01, 2020-06-01, 2023-04-01, 2023-05-01, 2023-06-01, 2023-09-01, 2023-11-01, 2024-01-01, 2024-03-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 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)
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,
});
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={
"filePath": "string",
"storageId": "string",
"storagePath": "string",
},
target="string",
bytes_to_capture_per_packet=0,
filters=[{
"localIPAddress": "string",
"localPort": "string",
"protocol": "string",
"remoteIPAddress": "string",
"remotePort": "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
The PacketCapture resource accepts the following input properties:
- Network
Watcher stringName - The name of the network watcher.
- Resource
Group stringName - The name of the resource group.
- Storage
Location 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.
- Bytes
To 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.
- Packet
Capture 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.
- Target
Type Pulumi.Azure Native. Network. Packet Capture Target Type - Target type of the resource provided.
- Time
Limit intIn Seconds - Maximum duration of the capture session in seconds.
- Total
Bytes doublePer Session - Maximum size of the capture output.
- Network
Watcher stringName - The name of the network watcher.
- Resource
Group stringName - The name of the resource group.
- Storage
Location 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.
- Bytes
To float64Capture Per Packet - Number of bytes captured per packet, the remaining bytes are truncated.
- Filters
[]Packet
Capture Filter Args - A list of packet capture filters.
- Packet
Capture stringName - The name of the packet capture session.
- Scope
Packet
Capture 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 float64Per Session - Maximum size of the capture output.
- network
Watcher StringName - The name of the network watcher.
- resource
Group StringName - The name of the resource group.
- storage
Location 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.
- bytes
To DoubleCapture Per Packet - Number of bytes captured per packet, the remaining bytes are truncated.
- filters
List<Packet
Capture Filter> - A list of packet capture filters.
- packet
Capture StringName - The name of the packet capture session.
- scope
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.
- target
Type PacketCapture Target Type - Target type of the resource provided.
- time
Limit IntegerIn Seconds - Maximum duration of the capture session in seconds.
- total
Bytes DoublePer Session - Maximum size of the capture output.
- network
Watcher stringName - The name of the network watcher.
- resource
Group stringName - The name of the resource group.
- storage
Location 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.
- bytes
To numberCapture Per Packet - Number of bytes captured per packet, the remaining bytes are truncated.
- filters
Packet
Capture Filter[] - A list of packet capture filters.
- packet
Capture stringName - The name of the packet capture session.
- scope
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.
- target
Type PacketCapture Target Type - Target type of the resource provided.
- time
Limit numberIn Seconds - Maximum duration of the capture session in seconds.
- total
Bytes 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[Packet
Capture Filter Args] - A list of packet capture filters.
- packet_
capture_ strname - The name of the packet capture session.
- scope
Packet
Capture 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.
- network
Watcher StringName - The name of the network watcher.
- resource
Group StringName - The name of the resource group.
- storage
Location 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.
- bytes
To NumberCapture Per Packet - Number of bytes captured per packet, the remaining bytes are truncated.
- filters List<Property Map>
- A list of packet capture filters.
- packet
Capture 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.
- target
Type "AzureVM" | "Azure VMSS" - Target type of the resource provided.
- time
Limit NumberIn Seconds - Maximum duration of the capture session in seconds.
- total
Bytes 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.
- Provisioning
State 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.
- Provisioning
State 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.
- provisioning
State 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.
- provisioning
State 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.
- provisioning
State String - The provisioning state of the packet capture session.
Supporting Types
PacketCaptureFilter, PacketCaptureFilterArgs
- Local
IPAddress 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.
- Local
Port 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.
- Remote
IPAddress 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.
- Remote
Port 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
IPAddress 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.
- Local
Port 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 | Pc
Protocol - Protocol to be filtered on.
- Remote
IPAddress 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.
- Remote
Port 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
IPAddress 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.
- local
Port 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 | Pc
Protocol - Protocol to be filtered on.
- remote
IPAddress 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.
- remote
Port 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
IPAddress 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.
- local
Port 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 | Pc
Protocol - Protocol to be filtered on.
- remote
IPAddress 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.
- remote
Port 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 | Pc
Protocol - 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.
- local
IPAddress 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.
- local
Port 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.
- remote
IPAddress 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.
- remote
Port 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
- Local
IPAddress 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.
- Local
Port 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.
- Remote
IPAddress 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.
- Remote
Port 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
IPAddress 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.
- Local
Port 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.
- Remote
IPAddress 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.
- Remote
Port 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
IPAddress 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.
- local
Port 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.
- remote
IPAddress 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.
- remote
Port 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
IPAddress 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.
- local
Port 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.
- remote
IPAddress 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.
- remote
Port 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.
- local
IPAddress 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.
- local
Port 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.
- remote
IPAddress 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.
- remote
Port 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
- File
Path 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.
- Storage
Id string - The ID of the storage account to save the packet capture session. Required if no local file path is provided.
- Storage
Path 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 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.
- Storage
Id string - The ID of the storage account to save the packet capture session. Required if no local file path is provided.
- Storage
Path 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 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.
- storage
Id String - The ID of the storage account to save the packet capture session. Required if no local file path is provided.
- storage
Path 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 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.
- storage
Id string - The ID of the storage account to save the packet capture session. Required if no local file path is provided.
- storage
Path 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.
- file
Path 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.
- storage
Id String - The ID of the storage account to save the packet capture session. Required if no local file path is provided.
- storage
Path 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
- File
Path 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.
- Storage
Id string - The ID of the storage account to save the packet capture session. Required if no local file path is provided.
- Storage
Path 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 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.
- Storage
Id string - The ID of the storage account to save the packet capture session. Required if no local file path is provided.
- Storage
Path 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 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.
- storage
Id String - The ID of the storage account to save the packet capture session. Required if no local file path is provided.
- storage
Path 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 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.
- storage
Id string - The ID of the storage account to save the packet capture session. Required if no local file path is provided.
- storage
Path 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.
- file
Path 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.
- storage
Id String - The ID of the storage account to save the packet capture session. Required if no local file path is provided.
- storage
Path 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
- Azure
VM - AzureVM
- Azure
VMSS - AzureVMSS
- Packet
Capture Target Type Azure VM - AzureVM
- Packet
Capture Target Type Azure VMSS - AzureVMSS
- Azure
VM - AzureVM
- Azure
VMSS - AzureVMSS
- Azure
VM - AzureVM
- Azure
VMSS - AzureVMSS
- AZURE_VM
- AzureVM
- AZURE_VMSS
- AzureVMSS
- "Azure
VM" - AzureVM
- "Azure
VMSS" - AzureVMSS
PcProtocol, PcProtocolArgs
- TCP
- TCP
- UDP
- UDP
- Any
- Any
- Pc
Protocol TCP - TCP
- Pc
Protocol UDP - UDP
- Pc
Protocol 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