You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This tutorial helps you use Azure Network Watcher NSG flow log capability to log a virtual machine's network traffic that flows through the [network security group (NSG)](../virtual-network/network-security-groups-overview.md) associated to its network interface.
24
24
25
-
In this tutorial, you learn how to:
25
+
You learn how to:
26
26
27
27
> [!div class="checklist"]
28
28
> * Create a virtual network and a Bastion host
@@ -34,15 +34,15 @@ In this tutorial, you learn how to:
34
34
35
35
## Prerequisites
36
36
37
-
- An Azure account with an active subscription. f you don't have one, create a [free account](https://azure.microsoft.com/free/?WT.mc_id=A261C142F) before you begin.
37
+
- An Azure account with an active subscription. If you don't have one, create a [free account](https://azure.microsoft.com/free/?WT.mc_id=A261C142F) before you begin.
38
38
39
39
## Sign in to Azure
40
40
41
41
Sign in to the [Azure portal](https://portal.azure.com).
42
42
43
43
## Create a virtual network
44
44
45
-
In this section, you create a virtual network (**myVNet**).
45
+
In this section, you create **myVNet** virtual network.
46
46
47
47
1. In the search box at the top of the portal, enter *virtual networks*. Select **Virtual networks** in the search results.
48
48
@@ -56,7 +56,7 @@ In this section, you create a virtual network (**myVNet**).
56
56
| Subscription | Select your Azure subscription. |
57
57
| Resource Group | Select **Create new**. </br> Enter *myResourceGroup* in **Name**. </br> Select **OK**. |
58
58
|**Instance details**||
59
-
| Name | Enter *myVNet1*. |
59
+
| Name | Enter *myVNet*. |
60
60
| Region | Select **East US**. |
61
61
62
62
1. Select the **IP Addresses** tab, or select **Next: IP Addresses** button at the bottom of the page.
@@ -76,7 +76,7 @@ In this section, you create a virtual network (**myVNet**).
76
76
| Setting | Value |
77
77
| --- | --- |
78
78
| Bastion name | Enter *myBastionHost*. |
79
-
| AzureBastionSubnet address space | Enter *10.0.3.0/24*. |
79
+
| AzureBastionSubnet address space | Enter *10.0.1.0/24*. |
80
80
| Public IP Address | Select **Create new**. </br> Enter *myBastionIP* for **Name**. </br> Select **OK**. |
81
81
82
82
1. Select the **Review + create** tab or select the **Review + create** button.
@@ -85,7 +85,7 @@ In this section, you create a virtual network (**myVNet**).
85
85
86
86
## Create a virtual machine
87
87
88
-
In this section, you create a virtual machine (**myVM**).
88
+
In this section, you create **myVM** virtual machine.
89
89
90
90
1. In the search box at the top of the portal, enter *virtual machines*. Select **Virtual machines** in the search results.
91
91
@@ -129,31 +129,31 @@ In this section, you create a virtual machine (**myVM**).
129
129
130
130
8. Once the deployment is complete, select **Go to resource** to go to the **Overview** page of **myVM**.
131
131
132
-
9. Select **Connect**, then select **Bastion**.
132
+
9. Select **Connect** then select **Bastion**.
133
133
134
134
10. Enter the username and password that you created in the previous steps. Leave **Open in new browser tab** checked.
135
135
136
136
11. Select **Connect** button.
137
137
138
138
## Register Insights provider
139
139
140
-
NSG flow logging requires the **Microsoft.Insights** provider. To check its status, complete the following steps:
140
+
NSG flow logging requires the **Microsoft.Insights** provider. To check its status, follow these steps:
141
141
142
142
1. In the search box at the top of the portal, enter *subscriptions*. Select **Subscriptions** in the search results.
143
143
144
144
1. Select the Azure subscription that you want to enable the provider for in **Subscriptions**.
145
145
146
146
1. Select **Resource providers** under **Settings** of your subscription.
147
147
148
-
1. Enter *insights* in the filter box.
148
+
1. Enter *insight* in the filter box.
149
149
150
-
1. Confirm the status of the provider displayed is **Registered**. If the status is **NotRegistered**, select **Microsoft.Insights** provider then select **Register**.
150
+
1. Confirm the status of the provider displayed is **Registered**. If the status is **NotRegistered**, select the **Microsoft.Insights** provider then select **Register**.
151
151
152
152
:::image type="content" source="./media/network-watcher-nsg-flow-logging-portal/register-microsoft-insights.png" alt-text="Screenshot of registering Microsoft Insights provider in the Azure portal.":::
153
153
154
154
## Create a storage account
155
155
156
-
In this section, you create a storage account that's used to store the flow logs.
156
+
In this section, you create a storage account to use it to store the flow logs.
157
157
158
158
1. In the search box at the top of the portal, enter *storage accounts*. Select **Storage accounts** in the search results.
159
159
@@ -167,7 +167,7 @@ In this section, you create a storage account that's used to store the flow logs
167
167
|**Instance details**||
168
168
| Storage account name | Enter a unique name. This tutorial uses **mynwstorageaccount**. |
169
169
| Region | Select **(US) East US**. The storage account must be in the same region as the virtual machine and its network security group. |
170
-
| Performance | Select **Standard**. |
170
+
| Performance | Select **Standard**. NSG flow logs only support Standard-tier storage accounts. |
| Flow Log Name | Leave the default of **myVM-nsg-myResourceGroup-flowlog**.
197
197
|**Instance details**||
198
-
| Subscription | Select your Azure subscription. The subscription of the storage account that you want to store the logs into. |
198
+
| Subscription | Select your Azure subscription. The subscription of the storage account. |
199
199
| Storage Accounts | Select the storage account you created in the previous steps. This tutorial uses **mynwstorageaccount**. |
200
200
| Retention (days) | Enter a retention time for the logs. This tutorial uses **1** day. |
201
201
@@ -211,7 +211,7 @@ In this section, you create an NSG flow log that's saved into the storage accoun
211
211
212
212
1. Go back to your browser tab of **myVM** virtual machine.
213
213
214
-
1. In **myVM**, open Microsoft Edge and to `www.bing.com`.
214
+
1. In **myVM**, open Microsoft Edge and go to `www.bing.com`.
215
215
216
216
## Download flow log
217
217
@@ -235,7 +235,7 @@ In this section, you go to the storage account you previously selected and downl
235
235
236
236
## View flow log
237
237
238
-
Open the downloaded `PT1H.json` file using a text editor of your choice. The following example is a section taken from the downloaded `PT1H.json` file:
238
+
Open the downloaded `PT1H.json` file using a text editor of your choice. The following example is a section taken from the downloaded `PT1H.json` file, which shows a flow processed by the rule **DefaultRule_AllowInternetOutBound**.
0 commit comments