Remediation
From Azure Portalβ
- Go to
Network Watcher
. - Select
NSG flow logs
blade in the Logs section. - Select each Network Security Group from the list.
- Ensure
Status
is set toOn
. - Ensure
Retention (days)
settinggreater than 90 days
. - Select your storage account in the
Storage account
field. - Select
Save
.
From Azure CLIβ
Enable the NSG flow logs
and set the Retention (days)
to greater than or equal to 90 days
:
az network watcher flow-log configure --nsg <NameorID of the Network Security Group> --enabled true --resource-group <resourceGroupName> --retention 91 --storage-account <NameorID of the storage account to save flow logs>