PacketCapture Constructors
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
PacketCapture() |
Initializes a new instance of the PacketCapture class. |
PacketCapture(String, PacketCaptureStorageLocation, PacketCaptureMachineScope, Nullable<PacketCaptureTargetType>, Nullable<Int64>, Nullable<Int64>, Nullable<Int32>, IList<PacketCaptureFilter>) |
Initializes a new instance of the PacketCapture class. |
PacketCapture()
Initializes a new instance of the PacketCapture class.
public PacketCapture ();
Public Sub New ()
Applies to
PacketCapture(String, PacketCaptureStorageLocation, PacketCaptureMachineScope, Nullable<PacketCaptureTargetType>, Nullable<Int64>, Nullable<Int64>, Nullable<Int32>, IList<PacketCaptureFilter>)
Initializes a new instance of the PacketCapture class.
public PacketCapture (string target, Microsoft.Azure.Management.Network.Models.PacketCaptureStorageLocation storageLocation, Microsoft.Azure.Management.Network.Models.PacketCaptureMachineScope scope = default, Microsoft.Azure.Management.Network.Models.PacketCaptureTargetType? targetType = default, long? bytesToCapturePerPacket = default, long? totalBytesPerSession = default, int? timeLimitInSeconds = default, System.Collections.Generic.IList<Microsoft.Azure.Management.Network.Models.PacketCaptureFilter> filters = default);
new Microsoft.Azure.Management.Network.Models.PacketCapture : string * Microsoft.Azure.Management.Network.Models.PacketCaptureStorageLocation * Microsoft.Azure.Management.Network.Models.PacketCaptureMachineScope * Nullable<Microsoft.Azure.Management.Network.Models.PacketCaptureTargetType> * Nullable<int64> * Nullable<int64> * Nullable<int> * System.Collections.Generic.IList<Microsoft.Azure.Management.Network.Models.PacketCaptureFilter> -> Microsoft.Azure.Management.Network.Models.PacketCapture
Public Sub New (target As String, storageLocation As PacketCaptureStorageLocation, Optional scope As PacketCaptureMachineScope = Nothing, Optional targetType As Nullable(Of PacketCaptureTargetType) = Nothing, Optional bytesToCapturePerPacket As Nullable(Of Long) = Nothing, Optional totalBytesPerSession As Nullable(Of Long) = Nothing, Optional timeLimitInSeconds As Nullable(Of Integer) = Nothing, Optional filters As IList(Of PacketCaptureFilter) = Nothing)
Parameters
- target
- String
The ID of the targeted resource, only AzureVM and AzureVMSS as target type are currently supported.
- storageLocation
- PacketCaptureStorageLocation
The storage location for a packet capture session.
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
- Nullable<PacketCaptureTargetType>
Target type of the resource provided. Possible values include: 'AzureVM', 'AzureVMSS'
Number of bytes captured per packet, the remaining bytes are truncated.
- filters
- IList<PacketCaptureFilter>
A list of packet capture filters.