Ensure that your Azure Virtual Networks (VNets) have a sufficient flow log retention period, i.e., greater than or equal to 90 days, configured for reliability and compliance purposes. The retention period represents the number of days to retain flow log data recorded for your Virtual Network resources.
Flow Logs is a feature of the Azure Network Watcher service that allows you to view information about inbound and outbound IP traffic through a Network Security Group (NSG) or Virtual Network (VNet). Virtual Network flow logs support connecting at the VNet, subnet, and Network Interface (NIC) level. A flow log data retention period of 90 days or more, should allow you to collect the necessary amount of logging data required to check for anomalies and provide details about any potential security breach.
This conformity rule assumes that Azure Network Watcher is active within the required Azure cloud regions and the Flow Logs feature is enabled for the verified Virtual Networks.
Audit
To determine if the flow log retention period configured for your Azure Virtual Networks is greater than or equal to 90 days, perform the following operations:
Remediation / Resolution
To extend the flow log data retention period for your Azure Virtual Networks (VNets), perform the following operations:
References
- Azure Official Documentation
- What is Azure Network Watcher?
- Virtual network flow logs
- Create, change, enable, disable, or delete virtual network flow logs
- Azure Command Line Interface (CLI) Documentation
- az account list
- az account set
- az network watcher flow-log list
- az network watcher flow-log show
- az network watcher flow-log update