az network watcher flow-log

(PREVIEW) Manage network security group flow logging.

Commands

az network watcher flow-log configure Configure flow logging on a network security group.
az network watcher flow-log show Get the flow log configuration for a network security group.

az network watcher flow-log configure

Configure flow logging on a network security group.

az network watcher flow-log configure --nsg
[--enabled {false, true}]
[--resource-group]
[--retention]
[--storage-account]

Required Parameters

--nsg
Name or ID of the Network Security Group to target.

Optional Parameters

--enabled
Enable logging.
accepted values: false, true
--resource-group -g
Name of resource group. You can configure the default group using `az configure --defaults group=<name>`.
--retention
Number of days to retain logs.
--storage-account
Name or ID of the storage account in which to save the flow logs.

az network watcher flow-log show

Get the flow log configuration for a network security group.

az network watcher flow-log show --nsg
[--resource-group]

Required Parameters

--nsg

Optional Parameters

--resource-group -g
Name of resource group. You can configure the default group using `az configure --defaults group=<name>`.