NetworkPacketCapture
Configures Network Packet Capturing against a Virtual Machine using a Network Watcher.
Create a NetworkPacketCapture Resource
new NetworkPacketCapture(name: string, args: NetworkPacketCaptureArgs, opts?: CustomResourceOptions);def NetworkPacketCapture(resource_name, opts=None, filters=None, maximum_bytes_per_packet=None, maximum_bytes_per_session=None, maximum_capture_duration=None, name=None, network_watcher_name=None, resource_group_name=None, storage_location=None, target_resource_id=None, __props__=None);func NewNetworkPacketCapture(ctx *Context, name string, args NetworkPacketCaptureArgs, opts ...ResourceOption) (*NetworkPacketCapture, error)public NetworkPacketCapture(string name, NetworkPacketCaptureArgs args, CustomResourceOptions? opts = null)- 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.
- opts ResourceOptions
- A bag of options that control this 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.
NetworkPacketCapture Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Programming Model docs.
Inputs
The NetworkPacketCapture resource accepts the following input properties:
- Network
Watcher stringName The name of the Network Watcher. Changing this forces a new resource to be created.
- Resource
Group stringName The name of the resource group in which the Network Watcher exists. Changing this forces a new resource to be created.
- Storage
Location NetworkPacket Capture Storage Location Args A
storage_locationblock as defined below. Changing this forces a new resource to be created.- Target
Resource stringId The ID of the Resource to capture packets from. Changing this forces a new resource to be created.
- Filters
List<Network
Packet Capture Filter Args> One or more
filterblocks as defined below. Changing this forces a new resource to be created.- Maximum
Bytes intPer Packet 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 intPer Session Maximum size of the capture in Bytes. Defaults to
1073741824(1GB). Changing this forces a new resource to be created.- Maximum
Capture intDuration 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 stringName The name of the Network Watcher. Changing this forces a new resource to be created.
- Resource
Group stringName The name of the resource group in which the Network Watcher exists. Changing this forces a new resource to be created.
- Storage
Location NetworkPacket Capture Storage Location A
storage_locationblock as defined below. Changing this forces a new resource to be created.- Target
Resource stringId The ID of the Resource to capture packets from. Changing this forces a new resource to be created.
- Filters
[]Network
Packet Capture Filter One or more
filterblocks as defined below. Changing this forces a new resource to be created.- Maximum
Bytes intPer Packet 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 intPer Session Maximum size of the capture in Bytes. Defaults to
1073741824(1GB). Changing this forces a new resource to be created.- Maximum
Capture intDuration 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 stringName The name of the Network Watcher. Changing this forces a new resource to be created.
- resource
Group stringName The name of the resource group in which the Network Watcher exists. Changing this forces a new resource to be created.
- storage
Location NetworkPacket Capture Storage Location A
storage_locationblock as defined below. Changing this forces a new resource to be created.- target
Resource stringId The ID of the Resource to capture packets from. Changing this forces a new resource to be created.
- filters
Network
Packet Capture Filter[] One or more
filterblocks as defined below. Changing this forces a new resource to be created.- maximum
Bytes numberPer Packet 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 numberPer Session Maximum size of the capture in Bytes. Defaults to
1073741824(1GB). Changing this forces a new resource to be created.- maximum
Capture numberDuration 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_ strname The name of the Network Watcher. Changing this forces a new resource to be created.
- resource_
group_ strname The name of the resource group in which the Network Watcher exists. Changing this forces a new resource to be created.
- storage_
location Dict[NetworkPacket Capture Storage Location] A
storage_locationblock as defined below. Changing this forces a new resource to be created.- target_
resource_ strid The ID of the Resource to capture packets from. Changing this forces a new resource to be created.
- filters
List[Network
Packet Capture Filter] One or more
filterblocks as defined below. Changing this forces a new resource to be created.- maximum_
bytes_ floatper_ packet 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_ floatper_ session Maximum size of the capture in Bytes. Defaults to
1073741824(1GB). Changing this forces a new resource to be created.- maximum_
capture_ floatduration 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.
Outputs
All input properties are implicitly available as output properties. Additionally, the NetworkPacketCapture resource produces the following output properties:
Look up an 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): NetworkPacketCapturestatic get(resource_name, id, opts=None, filters=None, maximum_bytes_per_packet=None, maximum_bytes_per_session=None, maximum_capture_duration=None, name=None, network_watcher_name=None, resource_group_name=None, storage_location=None, target_resource_id=None, __props__=None);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)- 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.
The following state arguments are supported:
- Filters
List<Network
Packet Capture Filter Args> One or more
filterblocks as defined below. Changing this forces a new resource to be created.- Maximum
Bytes intPer Packet 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 intPer Session Maximum size of the capture in Bytes. Defaults to
1073741824(1GB). Changing this forces a new resource to be created.- Maximum
Capture intDuration 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 stringName The name of the Network Watcher. Changing this forces a new resource to be created.
- Resource
Group stringName The name of the resource group in which the Network Watcher exists. Changing this forces a new resource to be created.
- Storage
Location NetworkPacket Capture Storage Location Args A
storage_locationblock as defined below. Changing this forces a new resource to be created.- Target
Resource stringId The ID of the Resource to capture packets from. Changing this forces a new resource to be created.
- Filters
[]Network
Packet Capture Filter One or more
filterblocks as defined below. Changing this forces a new resource to be created.- Maximum
Bytes intPer Packet 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 intPer Session Maximum size of the capture in Bytes. Defaults to
1073741824(1GB). Changing this forces a new resource to be created.- Maximum
Capture intDuration 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 stringName The name of the Network Watcher. Changing this forces a new resource to be created.
- Resource
Group stringName The name of the resource group in which the Network Watcher exists. Changing this forces a new resource to be created.
- Storage
Location NetworkPacket Capture Storage Location A
storage_locationblock as defined below. Changing this forces a new resource to be created.- Target
Resource stringId The ID of the Resource to capture packets from. Changing this forces a new resource to be created.
- filters
Network
Packet Capture Filter[] One or more
filterblocks as defined below. Changing this forces a new resource to be created.- maximum
Bytes numberPer Packet 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 numberPer Session Maximum size of the capture in Bytes. Defaults to
1073741824(1GB). Changing this forces a new resource to be created.- maximum
Capture numberDuration 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 stringName The name of the Network Watcher. Changing this forces a new resource to be created.
- resource
Group stringName The name of the resource group in which the Network Watcher exists. Changing this forces a new resource to be created.
- storage
Location NetworkPacket Capture Storage Location A
storage_locationblock as defined below. Changing this forces a new resource to be created.- target
Resource stringId The ID of the Resource to capture packets from. Changing this forces a new resource to be created.
- filters
List[Network
Packet Capture Filter] One or more
filterblocks as defined below. Changing this forces a new resource to be created.- maximum_
bytes_ floatper_ packet 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_ floatper_ session Maximum size of the capture in Bytes. Defaults to
1073741824(1GB). Changing this forces a new resource to be created.- maximum_
capture_ floatduration 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_ strname The name of the Network Watcher. Changing this forces a new resource to be created.
- resource_
group_ strname The name of the resource group in which the Network Watcher exists. Changing this forces a new resource to be created.
- storage_
location Dict[NetworkPacket Capture Storage Location] A
storage_locationblock as defined below. Changing this forces a new resource to be created.- target_
resource_ strid 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,TCPandUDP. Changing this forces a new resource to be created.- Local
Ip stringAddress 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 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.
- Remote
Ip stringAddress 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 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,TCPandUDP. Changing this forces a new resource to be created.- Local
Ip stringAddress 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 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.
- Remote
Ip stringAddress 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 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,TCPandUDP. Changing this forces a new resource to be created.- local
Ip stringAddress 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 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.
- remote
Ip stringAddress 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 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,TCPandUDP. Changing this forces a new resource to be created.- local
Ip strAddress 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 strAddress 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.
NetworkPacketCaptureStorageLocation
- 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.- Storage
Account stringId The ID of the storage account to save the packet capture session
- Storage
Path string The URI of the storage path 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.- Storage
Account stringId The ID of the storage account to save the packet capture session
- Storage
Path string The URI of the storage path 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.- storage
Account stringId The ID of the storage account to save the packet capture session
- storage
Path 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
Path str The URI of the storage path to save the packet capture.
- storage_
account_ strid The ID of the storage account to save the packet capture session
Package Details
- Repository
- https://github.com/pulumi/pulumi-azure
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
azurermTerraform Provider.