Skip to main content
Five Steps for Cloud Compliance Readiness·A practical playbook for security teamsDownload
CIS Microsoft Azure Foundations v6.0.0 · 6.1.1.6

Virtual network flow logs should be captured and sent to Log Analytics

  • Level 2
  • Management and Governance Services

This check looks at whether Azure virtual networks have flow logging enabled with the data going to a Log Analytics workspace. The safe setting is a virtual network flow log with traffic analytics sending its data to Log Analytics.

Why it matters

Flow logs record the IP traffic going through a network. Microsoft describes them as the source of truth for network activity in your cloud environment, useful for spotting unknown traffic, understanding which ports are reachable from the internet and investigating a suspected compromise. Without them there is little evidence of what a workload talked to.

Virtual network flow logs are enabled at the virtual network, so traffic from all supported workloads in it is recorded, without configuring several network security group levels. Microsoft also states that network security group flow logs are retiring and recommends migrating to virtual network flow logs. Sources: Microsoft Learn, Virtual network flow logs and NSG flow logs overview.

How to check it yourself

In the Azure portal open Network Watcher > Flow logs, and check that each virtual network you care about has a flow log, that its status is enabled and that traffic analytics points to a Log Analytics workspace. A read-only Azure CLI listing for one region:

az account set --subscription "<subscription-id>"
az network watcher flow-log list --location westeurope --output table

Compare the targets in the result with your list of virtual networks. A virtual network without an enabled flow log is a finding. Run it once per region where you have networks.

How to fix it

In Network Watcher > Flow logs choose Create, select the virtual network as the target resource, choose a standard storage account in the same region (the same subscription, or one in the same Microsoft Entra tenant), and enable traffic analytics with your Log Analytics workspace.

If you currently use network security group flow logs on the same workloads, Microsoft recommends disabling them before enabling virtual network flow logs, to avoid duplicate recording and extra cost. ConfigCobra itself never changes your Azure; these steps are performed by your team.

What changes when you fix it

Network behaviour and workload performance do not change: Microsoft states that logs are collected at one-minute intervals by the platform and do not affect your resources or network traffic. What changes is data volume and cost. Flow logs are billed on the volume collected, and storage and traffic analytics processing are billed separately, so busy networks can produce a large bill.

Because virtual network flow logs also capture traffic through gateways, log volume can be higher than with narrower logging. The storage account owner and the cost owner should be told, and a retention period should be chosen. Some services, such as App Service and Azure Functions, do not support flow logs, so those workloads stay unlogged. If you rotate customer-managed keys on the storage account, flow logging stops until you disable and re-enable it.

Included in

BenchmarkCIS IDProfile
CIS Microsoft Azure Foundations v6.0.06.1.1.6Level 2

Check this on your Microsoft Azure

ConfigCobra runs this check with every other control of the CIS Microsoft Azure Benchmarks, read-only.

Get in touch

Let's talk.

Whether you're evaluating ConfigCobra, running an audit, or managing a client fleet — we respond within one business day.

Free trial