> For the complete documentation index, see [llms.txt](https://cortex-docs.paloaltonetworks.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://cortex-docs.paloaltonetworks.com/posture-rules/cloud-saas-active-directory-posture-rules/cortex-posture-query-based-rules/detection-rules-by-name/azure-network-watcher-network-security-group-nsg-flow-logs-are-disabled.md). Agents can also search and read this documentation through its [MCP server](https://cortex-docs.paloaltonetworks.com/~gitbook/mcp).

# Azure Network Watcher Network Security Group (NSG) flow logs are disabled

### Synopsis

| Field               | Value                                                                     |
| ------------------- | ------------------------------------------------------------------------- |
| Rule Type           | Detection                                                                 |
| Finding Type        | Azure Network Watcher Network Security Group (NSG) flow logs are disabled |
| Finding ID          | 60000212                                                                  |
| Generates a Finding | This detection rule also generates a finding                              |
| Severity            | Informational                                                             |
| Category            | CONFIGURATION                                                             |
| Cloud Providers     | AZURE                                                                     |
| Platform Module     | CSPM                                                                      |
| Asset Types         | AZURE\_SECURITY\_GROUP                                                    |

### Description

Azure Network Security Groups (NSGs) lacking flow logs present a significant security risk, hindering effective network traffic monitoring and incident response.

Network Watcher's NSG flow logs provide crucial insights into network traffic patterns, including allowed and denied flows, source/destination IPs and ports, and associated network interfaces. Disabling these logs limits visibility into potential attacks, data breaches, or misconfigurations, making threat detection and response significantly more challenging. Untrusted IP addresses accessing resources can go unnoticed, potentially leading to unauthorized access and data exfiltration.

The impact of this misconfiguration is reduced threat detection capabilities, delayed incident response, and increased vulnerability to attacks. Comprehensive network visibility is critical for security posture management, enabling quicker identification and mitigation of security incidents. Enabled NSG flow logs provide this crucial visibility, allowing security teams to proactively identify and address threats.

To mitigate this risk, ensure all NSGs have flow logs enabled. Regularly review and analyze these logs for suspicious activity. Configure appropriate alerting mechanisms to notify security teams of unusual traffic patterns. Implement a process for promptly investigating and addressing any security alerts generated from NSG flow log analysis.

### Remediation

Follow the below steps to enable flow logs for Network security group via Azure Portal:

1. Log in to the Azure portal.
2. Search 'Network foundation'.
3. Under 'Virtual Network', Select 'Network security groups'
4. Search and Click the Network security group for which you need to modify the flow log settings.
5. Under 'Monitoring', Select 'NSG flow logs'.
6. Select the flow log with Status 'Disabled', Click on 'Enable' at the top.
7. Confirm the flow log name and click 'Enable' at the bottom.

Use the below command to enable flow logs for Network security group via Azure CLI:

```
az network watcher flow-log update --name <Flow Log name> --nsg <NSG name> --resource-group <Resource Group name> --storage-account <Storage account> --enabled true --location <location>
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://cortex-docs.paloaltonetworks.com/posture-rules/cloud-saas-active-directory-posture-rules/cortex-posture-query-based-rules/detection-rules-by-name/azure-network-watcher-network-security-group-nsg-flow-logs-are-disabled.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
