Remediation
From Azure Portal
- Go to
Network Watcher. - Select
NSG flow logsblade in the Logs section. - Select each Network Security Group from the list.
- Ensure
Statusis set toOn. - Ensure
Retention (days)settinggreater than 90 days. - Select your storage account in the
Storage accountfield. - 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>