az network watcher flow-log

(PREVIEW) Commands to manage NSG flow logging.

Commands

az network watcher flow-log configure Configure flow logging on a Network Security Group (NSG).
az network watcher flow-log show Show flow log configuration for an NSG.

az network watcher flow-log configure

Configure flow logging on a Network Security Group (NSG).

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=.

--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

Show flow log configuration for an NSG.

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=.