CmdID

CmdID / az / az network / az network firewall

az network firewall packet-capture-operation

Runs a packet capture operation on AzureFirewall. Azure CLI extensions reference

1 example 9 options Its page in the Azure CLI extensions reference

Opens CmdID with your command. It is read in your browser and sent nowhere.

Examples

from the Azure CLI, each command read by CmdID

AzureFirewallPacketCaptureOperation

az network firewall packet-capture-operation --resource-group rg1 --azure-firewall-name azureFirewall1 --duration-in-seconds 300 --number-of-packets-to-capture 5000 --sas-url someSASURL --file-name azureFirewallPacketCapture --protocol Any --flags "[{type:syn},{type:fin}]" --filters "[{sources:[20.1.1.0],destinations:[20.1.2.0],destination-ports:[4500]},{sources:[10.1.1.0,10.1.1.1],destinations:[10.1.2.0],destination-ports:[123,80]}]" --operation StartIdentify
--resource-groupName of resource group.
--azure-firewall-nameThe name of the azure firewall.
--duration-in-secondsDuration of packet capture in seconds.
--number-of-packets-to-captureNumber of packets to be captured.
--sas-urlSAS URL of the destination blob container where the packet capture file will be uploaded.
--file-nameName of file to be uploaded to sasURL
--protocolThe protocol of packets to capture
--flagsThe tcp-flag type to be captured.
--filtersRules to filter packet captures.
--operationThe Azure Firewall packet capture operation to perform
az network firewall packet-capture-operation --resource-group rg1 --azure-firewall-name azureFirewall1 --operation StatusIdentify
--resource-groupName of resource group.
--azure-firewall-nameThe name of the azure firewall.
--operationThe Azure Firewall packet capture operation to perform
az network firewall packet-capture-operation --resource-group rg1 --azure-firewall-name azureFirewall1 --operation StopIdentify
--resource-groupName of resource group.
--azure-firewall-nameThe name of the azure firewall.
--operationThe Azure Firewall packet capture operation to perform

Options

9 in the Azure CLI extensions reference
--azure-firewall-nameThe name of the azure firewall.
--duration-in-secondsDuration of packet capture in seconds.
--file-nameName of file to be uploaded to sasURL
--filtersRules to filter packet captures.
--flagsThe tcp-flag type to be captured.
--number-of-packets-to-capture, --num-packetsNumber of packets to be captured.
--operationThe Azure Firewall packet capture operation to perform
--protocolThe protocol of packets to capture
--sas-urlSAS URL of the destination blob container where the packet capture file will be uploaded.