CmdID / az / az network / az network network-watcher / az network network-watcher packet-capture
az network network-watcher packet-capture create
Create and start a packet capture on the specified VM. Azure CLI reference
12 options Its page in the Azure CLI reference
Options
--bytes-to-capture-per-packet, --bytes-to-captureNumber of bytes captured per packet, the remaining bytes are truncated.--capture-settingsThe capture setting holds the 'FileCount', 'FileSizeInBytes', 'SessionTimeLimitInSeconds' values.--continuous-captureThis continuous capture is a nullable boolean, which can hold 'null', 'true' or 'false' value.--filtersA list of packet capture filters.--network-watcher-nameThe name of the network watcher.--packet-capture-name, --name, -nThe name of the packet capture session.--scopeA list of AzureVMSS instances which can be included or excluded to run packet capture.--storage-locationThe storage location for a packet capture session.--target-typeTarget type of the resource provided.--targetThe ID of the targeted resource, only AzureVM and AzureVMSS as target type are currently supported.--time-limit-in-secondsMaximum duration of the capture session in seconds.--total-bytes-per-session, --total-bytesMaximum size of the capture output.