Compliancemanzill.com
CIS Microsoft Azure Foundations Benchmark v1.4.0

CIS Microsoft Azure Foundations Benchmark v1.4.0/Networking/88 of 115

6.4Ensure that Network Security Group Flow Log retention period is 'greater than 90 days'

Control family: Networking

Control description

Network Security Group Flow Logs should be enabled and the retention period is set to greater than or equal to 90 days.

How to implement

ResponsibilityCustomerYou configure and operate this in your own cloud accounts.

Flow logs record the traffic allowed and denied through the network, and you need at least 90 days of them to investigate an incident found late. Network security group flow logs no longer accept new configurations and retire on 30 September 2027, so new flow logs are set on virtual networks instead, with a retention of 90 days or more.

Before you start

The same on every cloud, before the steps in the tabs.

  • Make sure the Microsoft.Insights resource provider is registered on each subscription (Subscriptions > Resource providers).

Evidence

  • The Microsoft.Insights provider registration on each subscription

On Azure the tasks create virtual network flow logs with 90-day retention in Network Watcher, and raise the retention of any NSG flow logs that remain until they are migrated.

Task 1Create a virtual network flow log with 90-day retention

  1. Sign in to the Azure portal at portal.azure.com, search for network watcher and select Network Watcher.
  2. Under Logs, select Flow logs, then + Create.
  3. On Basics, choose the subscription, set Flow log type to Virtual network, select + Select target resource and pick the virtual network, then Confirm selection.
  4. Enter a Flow Log Name, choose a Standard general-purpose v2 storage account, and set Retention (days) to 90 or more.
  5. Optionally, on Analytics, select Enable traffic analytics and a Log Analytics workspace.
  6. Select Review + create, then Create.
  7. Check it: the flow log is listed for the virtual network and files appear in the storage account.

Task 2Raise retention on remaining NSG flow logs and plan their migration

  1. In Network Watcher > Flow logs, filter on the network security group flow log type.
  2. Open each one and set Retention (days) to 90 or more, then save.
  3. Plan to replace each with a virtual network flow log before 30 September 2027.
  4. Check it: every remaining NSG flow log keeps at least 90 days.

Evidence

  • Network Watcher > Flow logs, listing each flow log and its retention
  • The migration plan for NSG flow logs

Console steps as of 5 November 2026. Not every step has been confirmed in a live console yet, and menus and labels can move between releases, so look for the nearest match if one has changed.