Skip to content

Commit 39cf087

Browse files
Merge pull request #272627 from halkazwini/nw-migrate
Add screenshot
2 parents 0efeebb + 7dc3484 commit 39cf087

File tree

2 files changed

+12
-8
lines changed

2 files changed

+12
-8
lines changed
116 KB
Loading

articles/network-watcher/nsg-flow-logs-migrate.md

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
---
22
title: Migrate to VNet flow logs
33
titleSuffix: Azure Network Watcher
4-
description: Learn how to migrate your Azure Network Watcher NSG flow logs to VNet flow logs using the Azure portal and PowerShell.
4+
description: Learn how to migrate your Azure Network Watcher NSG flow logs to VNet flow logs using the Azure portal and a PowerShell script.
55
author: halkazwini
66
ms.author: halkazwini
77
ms.service: network-watcher
88
ms.topic: how-to
9-
ms.date: 04/16/2024
9+
ms.date: 04/18/2024
1010

11-
#CustomerIntent: As an Azure administrator, I want to learn how to migrate my NSG flow logs to the new VNet flow logs so that I can use VNet flow logs to log my virtual network IP traffic.
11+
#CustomerIntent: As an Azure administrator, I want to migrate my NSG flow logs to the new VNet flow logs so that I can use all the benefits of VNet flow logs, which overcome some of the NSG flow logs limitations..
1212
---
1313

1414
# Migrate from NSG flow logs to VNet flow logs
@@ -22,7 +22,7 @@ In this article, you learn how to migrate your existing NSG flow logs to VNet fl
2222

2323
- An Azure account with an active subscription. [Create an account for free](https://azure.microsoft.com/free/?WT.mc_id=A261C142F).
2424

25-
- PowerShell 7. For more information, see [Install PowerShell on Windows, Linux, and macOS](/powershell/scripting/install/installing-powershell). This article requires the Az PowerShell module. For more information, see [How to install Azure PowerShell](/powershell/azure/install-azure-powershell). To find the installed version, run `Get-Module -ListAvailable Az`.
25+
- PowerShell installed on your machine. For more information, see [Install PowerShell on Windows, Linux, and macOS](/powershell/scripting/install/installing-powershell). This article requires the Az PowerShell module. For more information, see [How to install Azure PowerShell](/powershell/azure/install-azure-powershell). To find the installed version, run `Get-Module -ListAvailable Az`.
2626

2727
- Necessary RBAC permissions for subscriptions of the flow logs and Log Analytics workspaces if traffic analytics is enabled for any of the NSG flow logs. For more information, see [Network Watcher RBAC permissions](required-rbac-permissions.md).
2828

@@ -84,7 +84,7 @@ In this section, you learn how to use the script file that you downloaded in the
8484
Please enter the number of threads you would like to use, press enter for using default value of 16:
8585
```
8686
87-
After the analysis is complete, you'll see the analysis report on screen and in an html file in the same directory of the migration files. The report lists the number of NSG flow logs that will be disabled and the number of VNet flow logs that are created to replace them. The number of VNet flow logs that will be created depends on the type of migration that you choose. For example, if the network security group that you're migrating its flow log is associated with three network interfaces in the same virtual network, then you can choose *migration with aggregation* to have a single VNet flow log resource applied to the virtual network. You can also choose *migration without aggregation* to have three VNet flow logs (one VNet flow log resource per network interface).
87+
After the analysis is complete, you'll see the analysis report on screen and in an html file in the same directory of the migration files. The report lists the number of NSG flow logs that will be disabled and the number of VNet flow logs that are created to replace them. The number of VNet flow logs that are created depends on the type of migration that you choose. For example, if the network security group that you're migrating its flow log is associated with three network interfaces in the same virtual network, then you can choose *migration with aggregation* to have a single VNet flow log resource applied to the virtual network. You can also choose *migration without aggregation* to have three VNet flow logs (one VNet flow log resource per network interface).
8888
8989
> [!NOTE]
9090
> See `AnalysisReport-<subscriptionId>-<region>-<time>.html` file for a full report of the analysis that you performed. The file is available in the same directory of the script.
@@ -99,15 +99,19 @@ In this section, you learn how to use the script file that you downloaded in the
9999
4. Quit
100100
```
101101
102-
1. After the migration is completed successfully, you can cancel the migration and revert changes. To accept the migration enter **n**, otherwise enter **y**. Once you accept the changes you can't revert them.
102+
1. After you see the summary of migration on screen, you can cancel the migration and revert changes. To accept and proceed with the migration enter **n**, otherwise enter **y**. Once you accept the changes, you can't revert them.
103103
104104
```
105105
Do you want to rollback? You won't get the option to revert the actions done now again (y/n): n
106106
```
107107
108-
> [!NOTE]
109-
> Keep the script and analysis report files for reference in case you have any issues with the migration.
108+
1. Check the Azure portal to confirm that the status of NSG flow logs that you migrated became disabled, and VNet flow logs are created to replace them.
109+
110+
:::image type="content" source="./media/nsg-flow-logs-migrate/list-flow-logs.png" alt-text="Screenshot that shows the newly created VNet flow log as a result of migrating from NSG flow log." lightbox="./media/nsg-flow-logs-migrate/list-flow-logs.png":::
110111
112+
> [!NOTE]
113+
> Keep the script and analysis report files for reference in case you have any issues with the migration.
114+
111115
## Related content
112116
113117
- [NSG flow logs](nsg-flow-logs-overview.md)

0 commit comments

Comments
 (0)