|
1 | 1 | ---
|
2 |
| -title: Manage virtual network flow logs using Azure Policy |
| 2 | +title: Audit and deploy virtual network flow logs using Azure Policy |
3 | 3 | titleSuffix: Azure Network Watcher
|
4 | 4 | description: Learn how to use Azure Policy built-in policies to audit virtual networks and deploy Azure Network Watcher virtual network flow logs.
|
5 | 5 | author: halkazwini
|
6 | 6 | ms.author: halkazwini
|
7 | 7 | ms.service: network-watcher
|
8 | 8 | ms.topic: how-to
|
9 |
| -ms.date: 05/03/2024 |
| 9 | +ms.date: 05/07/2024 |
| 10 | + |
| 11 | +#CustomerIntent: As an Azure administrator, I want to use Azure Policy to audit and deploy virtual network flow logs. |
10 | 12 | ---
|
11 | 13 |
|
12 |
| -# Manage virtual network flow logs using Azure Policy |
| 14 | +# Audit and deploy virtual network flow logs using Azure Policy |
13 | 15 |
|
14 | 16 | Azure Policy helps you enforce organizational standards and assess compliance at scale. Common use cases for Azure Policy include implementing governance for resource consistency, regulatory compliance, security, cost, and management. To learn more about Azure policy, see [What is Azure Policy?](../governance/policy/overview.md) and [Quickstart: Create a policy assignment to identify noncompliant resources](../governance/policy/assign-policy-portal.md).
|
15 | 17 |
|
@@ -125,15 +127,19 @@ To assign the *deployIfNotExists* policy, follow these steps:
|
125 | 127 |
|
126 | 128 | :::image type="content" source="./media/vnet-flow-logs-policy/deploy-policy-compliance-details.png" alt-text="Screenshot that shows the noncompliant virtual networks based on the deploy policy." lightbox="./media/vnet-flow-logs-policy/deploy-policy-compliance-details.png":::
|
127 | 129 |
|
128 |
| - The policy takes some time to evaluate and deploy flow logs for all noncompliant virtual networks in the specified scope. |
| 130 | + > [!NOTE] |
| 131 | + > The policy takes some time to evaluate virtual networks in the specified scope and deploy flow logs for the noncompliant virtual networks. |
129 | 132 |
|
130 |
| -1. Verify that there are no noncompliant virtual networks in the policy compliance page. |
| 133 | +1. Go to **Flow logs** under **Logs** in **Network Watcher** to see the flow logs that were deployed by the policy. |
131 | 134 |
|
132 |
| - :::image type="content" source="./media/vnet-flow-logs-policy/deploy-policy-compliance-details-compliant.png" alt-text="Screenshot that shows there aren't any noncompliant virtual networks after the deployment policy deployed flow logs in the defined scope." lightbox="./media/vnet-flow-logs-policy/deploy-policy-compliance-details-compliant.png"::: |
| 135 | + :::image type="content" source="./media/vnet-flow-logs-policy/flow-logs.png" alt-text="Screenshot that shows the flow logs list in Network Watcher." lightbox="./media/vnet-flow-logs-policy/flow-logs.png"::: |
133 | 136 |
|
134 |
| - You can view the deployed virtual network flow logs by going to **Flow logs** under **Logs** in **Network Watcher**. |
| 137 | +1. In the policy compliance page, verify that all virtual networks in the specified scope are compliant. |
135 | 138 |
|
136 |
| - :::image type="content" source="./media/vnet-flow-logs-policy/flow-logs.png" alt-text="Screenshot that shows the flow logs list in Network Watcher." lightbox="./media/vnet-flow-logs-policy/flow-logs.png"::: |
| 139 | + :::image type="content" source="./media/vnet-flow-logs-policy/deploy-policy-compliance-details-compliant.png" alt-text="Screenshot that shows there aren't any noncompliant virtual networks after the deployment policy deployed flow logs in the defined scope." lightbox="./media/vnet-flow-logs-policy/deploy-policy-compliance-details-compliant.png"::: |
| 140 | + |
| 141 | + > [!NOTE] |
| 142 | + > It can take up to 24 hours to update resource compliance status in Azure Policy compliance page. For more information, see [Understand evaluation outcomes](../governance/policy/overview.md?toc=/azure/network-watcher/toc.json#understand-evaluation-outcomes). |
137 | 143 |
|
138 | 144 | ## Related content
|
139 | 145 |
|
|
0 commit comments