Skip to content

Commit 54c3ae8

Browse files
authored
Merge pull request #228827 from halkazwini/nw-tweak1
tweak
2 parents 279c28e + c929c35 commit 54c3ae8

File tree

6 files changed

+58
-53
lines changed

6 files changed

+58
-53
lines changed

articles/network-watcher/diagnose-communication-problem-between-networks.md

Lines changed: 9 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ author: halkazwini
77
ms.service: network-watcher
88
ms.topic: tutorial
99
ms.workload: infrastructure-services
10-
ms.date: 02/23/2023
10+
ms.date: 02/28/2023
1111
ms.author: halkazwini
1212
ms.custom: template-tutorial, engagement-fy23
1313
# Customer intent: I need to determine why resources in a virtual network can't communicate with resources in a different virtual network over a VPN connection.
@@ -17,9 +17,9 @@ ms.custom: template-tutorial, engagement-fy23
1717

1818
Azure VPN gateway is a type of virtual network gateway that you can use to send encrypted traffic between an Azure virtual network and your on-premises locations over the public internet. You can also use VPN gateway to send encrypted traffic between Azure virtual networks over the Microsoft network. A VPN gateway allows you to create multiple connections to on-premises VPN devices and Azure VPN gateways. For more information about the number of connections that you can create with each VPN gateway SKU, see [Gateway SKUs](../../articles/vpn-gateway/vpn-gateway-about-vpngateways.md#gwsku). Whenever you need to troubleshoot an issue with a VPN gateway or one of its connections, you can use Azure Network Watcher VPN troubleshoot to help you checking the VPN gateway or its connections to find and resolve the problem in easy and simple steps.
1919

20-
This tutorial helps you connect two virtual networks via VPN gateways using VNet-to-VNet connections and use Network Watcher VPN troubleshoot capability to diagnose and troubleshoot a connectivity issue that's preventing the two virtual networks from communicating with each other. Once you find the issue and resolve it, you check the connectivity between the two virtual networks to verify the problem was resolved.
20+
This tutorial helps you use Azure Network Watcher [VPN troubleshoot](network-watcher-troubleshoot-overview.md) capability to diagnose and troubleshoot a connectivity issue that's preventing two virtual networks from communicating with each other. These two virtual networks are connected via VPN gateways using VNet-to-VNet connections.
2121

22-
In this tutorial, you learn how to:
22+
You learn how to:
2323

2424
> [!div class="checklist"]
2525
> * Create virtual networks
@@ -31,7 +31,7 @@ In this tutorial, you learn how to:
3131
3232
## Prerequisites
3333

34-
- An Azure account with an active subscription. create a [free account](https://azure.microsoft.com/free/?WT.mc_id=A261C142F).
34+
- 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.
3535

3636
## Sign in to Azure
3737

@@ -43,7 +43,7 @@ In this section, you create two virtual networks that you connect later using vi
4343

4444
### Create first virtual network
4545

46-
1. In the search box at the top of the portal, enter *virtual network*. Select **Virtual networks** in the search results.
46+
1. In the search box at the top of the portal, enter *virtual networks*. Select **Virtual networks** in the search results.
4747

4848
:::image type="content" source="./media/diagnose-communication-problem-between-networks/virtual-network-azure-portal.png" alt-text="Screenshot shows searching for virtual networks in the Azure portal.":::
4949

@@ -89,7 +89,7 @@ In this section, you create a storage account, then you create a container in it
8989

9090
If you have a storage account that you want to use, you can skip the following steps and go to [Create VPN gateways](#create-vpn-gateways).
9191

92-
1. In the search box at the top of the portal, enter *storage account*. Select **Storage accounts** in the search results.
92+
1. In the search box at the top of the portal, enter *storage accounts*. Select **Storage accounts** in the search results.
9393

9494
1. Select **+ Create**. In **Create a storage account**, enter or select the following values in the **Basics** tab:
9595

@@ -104,15 +104,11 @@ If you have a storage account that you want to use, you can skip the following s
104104
| Performance | Select **Standard**. |
105105
| Redundancy | Select **Locally-redundant storage (LRS)**. |
106106

107-
1. Select the **Networking** tab, or select **Next: Advanced** and then **Next: Networking** button at the bottom of the page.
108-
109-
1. Under **Network connectivity**, select **Enable public access from all networks**.
110-
111107
1. Select the **Review** tab or select the **Review** button.
112108

113109
1. Review the settings, and then select **Create**.
114110

115-
1. Select **Go to resource** to go to the **Overview** page of **mynwstorageaccount**.
111+
1. Once the deployment is complete, select **Go to resource** to go to the **Overview** page of **mynwstorageaccount**.
116112

117113
1. Under **Data storage**, select **Containers**.
118114

@@ -131,7 +127,7 @@ In this section, you create two VPN gateways that will be used to connect the tw
131127

132128
### Create first VPN gateway
133129

134-
1. In the search box at the top of the portal, enter *virtual network gateway*. Select **Virtual network gateways** in the search results.
130+
1. In the search box at the top of the portal, enter *virtual network gateways*. Select **Virtual network gateways** in the search results.
135131

136132
1. Select **+ Create**. In **Create virtual network gateway**, enter or select the following values in the **Basics** tab:
137133

@@ -280,7 +276,7 @@ Fix the problem by correcting the key on **to-VNet1** connection to match the ke
280276

281277
## Clean up resources
282278

283-
If you're no longer need the gateways and other resources created in this tutorial, delete the resource group and all of the resources it contains:
279+
When no longer needed, delete the resource group and all of the resources it contains:
284280

285281
1. Enter *myResourceGroup* in the **Search** box at the top of the portal. When you see **myResourceGroup** in the search results, select it.
286282
2. Select **Delete resource group**.

articles/network-watcher/diagnose-vm-network-routing-problem.md

Lines changed: 26 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -7,46 +7,44 @@ author: halkazwini
77
ms.author: halkazwini
88
ms.service: network-watcher
99
ms.topic: tutorial
10-
ms.date: 02/10/2023
10+
ms.date: 02/28/2023
1111
ms.custom: template-tutorial, mvc, engagement-fy23
1212
# Customer intent: I want to diagnose virtual machine (VM) network routing problem that prevents communication to different destinations.
1313
---
1414

1515
# Tutorial: Diagnose a virtual machine network routing problem using the Azure portal
1616

17-
When you deploy a virtual machine (VM), Azure creates several [system default routes](/articles/virtual-network/virtual-networks-udr-overview.md#system-routes?toc=%2Fazure%2Fnetwork-watcher%2Ftoc.json&tabs=json) for it. You can create [custom routes](/articles/virtual-network/virtual-networks-udr-overview.md#custom-routes?toc=%2Fazure%2Fnetwork-watcher%2Ftoc.json&tabs=json) to override some of Azure's system routes. Sometimes, a custom route can result in a VM not being able to communicate with the intended destination. You can use Azure Network Watcher to troubleshoot and diagnose the VM routing problem that's preventing it from correctly communicating with other resources.
17+
When you deploy a virtual machine (VM), Azure creates several [system default routes](/articles/virtual-network/virtual-networks-udr-overview.md#system-routes?toc=%2Fazure%2Fnetwork-watcher%2Ftoc.json&tabs=json) for it. You can create [custom routes](/articles/virtual-network/virtual-networks-udr-overview.md#custom-routes?toc=%2Fazure%2Fnetwork-watcher%2Ftoc.json&tabs=json) to override some of Azure's system routes. Sometimes, a custom route can result in a VM not being able to communicate with the intended destination. You can use Azure Network Watcher [next hop](network-watcher-next-hop-overview.md) capability to troubleshoot and diagnose the VM routing problem that's preventing it from correctly communicating with other resources.
1818

1919
In this tutorial, you learn how to:
2020

2121
> [!div class="checklist"]
22-
> * Create a virtual network and deploy two virtual machines in it
22+
> * Create a virtual network and a Bastion host
23+
> * Create two virtual machines
2324
> * Test communication to different IPs using the next hop capability of Azure Network Watcher
2425
> * View the effective routes
2526
> * Create a custom route
2627
> * Diagnose a routing problem
2728
2829
If you prefer, you can diagnose a virtual machine network routing problem using the [Azure CLI](diagnose-vm-network-routing-problem-cli.md) or [Azure PowerShell](diagnose-vm-network-routing-problem-powershell.md) tutorials.
2930

30-
If you don't have an Azure subscription, create a [free account](https://azure.microsoft.com/free/?WT.mc_id=A261C142F) before you begin.
31-
32-
3331
## Prerequisites
3432

35-
- An Azure subscription
36-
33+
- 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.
3734

3835
## Sign in to Azure
3936

4037
Sign in to the [Azure portal](https://portal.azure.com).
4138

42-
4339
## Create a virtual network
4440

4541
In this section, you create a virtual network.
4642

47-
1. In the search box at the top of the portal, enter *virtual network*. Select **Virtual networks** in the search results.
43+
1. In the search box at the top of the portal, enter *virtual networks*. Select **Virtual networks** in the search results.
4844

49-
1. Select **+ Create**. In **Create virtual network**, enter or select the following in the **Basics** tab:
45+
:::image type="content" source="./media/diagnose-vm-network-routing-problem/virtual-network-azure-portal.png" alt-text="Screenshot shows searching for virtual networks in the Azure portal.":::
46+
47+
1. Select **+ Create**. In **Create virtual network**, enter or select the following values in the **Basics** tab:
5048

5149
| Setting | Value |
5250
| --- | --- |
@@ -59,7 +57,7 @@ In this section, you create a virtual network.
5957

6058
1. Select the **IP Addresses** tab, or select **Next: IP Addresses** button at the bottom of the page.
6159

62-
1. Enter the following in the **IP Addresses** tab:
60+
1. Enter the following values in the **IP Addresses** tab:
6361

6462
| Setting | Value |
6563
| --- | --- |
@@ -69,7 +67,7 @@ In this section, you create a virtual network.
6967

7068
1. Select the **Security** tab, or select the **Next: Security** button at the bottom of the page.
7169

72-
1. Under **BastionHost**, select **Enable** and enter the following:
70+
1. Under **BastionHost**, select **Enable** and enter the following values:
7371

7472
| Setting | Value |
7573
| --- | --- |
@@ -81,19 +79,17 @@ In this section, you create a virtual network.
8179

8280
1. Review the settings, and then select **Create**.
8381

84-
8582
## Create virtual machines
8683

8784
In this section, you create two virtual machines: **myVM** and **myNVA**. You use **myVM** virtual machine to test the communication from. **myNVA** virtual machine is used as a network virtual appliance in the scenario.
8885

89-
9086
### Create first virtual machine
9187

92-
1. In the search box at the top of the portal, enter *virtual machine*. Select **Virtual machines** in the search results.
88+
1. In the search box at the top of the portal, enter *virtual machines*. Select **Virtual machines** in the search results.
9389

9490
2. Select **+ Create** and then select **Azure virtual machine**.
9591

96-
3. In **Create a virtual machine**, enter or select the following in the **Basics** tab:
92+
3. In **Create a virtual machine**, enter or select the following values in the **Basics** tab:
9793

9894
| Setting | Value |
9995
| --- | --- |
@@ -114,22 +110,22 @@ In this section, you create two virtual machines: **myVM** and **myNVA**. You us
114110

115111
4. Select the **Networking** tab, or select **Next: Disks**, then **Next: Networking**.
116112

117-
5. In the Networking tab, enter or select the following information:
113+
5. In the Networking tab, enter or select the following values:
118114

119115
| Setting | Value |
120116
| --- | --- |
121117
| **Network interface** | |
122118
| Virtual network | Select **myVNet**. |
123119
| Subnet | Select **mySubnet**. |
124-
| Public IP | Leave the default. |
120+
| Public IP | Select **None**. |
125121
| NIC network security group | Select **Basic**. |
126122
| Public inbound ports | Select **None**. |
127123

128124
6. Select **Review + create**.
129125

130126
7. Review the settings, and then select **Create**.
131127

132-
8. Select **Go to resource** to go to the **Overview** page of **myVM**.
128+
8. Once the deployment is complete, select **Go to resource** to go to the **Overview** page of **myVM**.
133129

134130
9. Select **Connect**, then select **Bastion**.
135131

@@ -141,19 +137,17 @@ In this section, you create two virtual machines: **myVM** and **myNVA**. You us
141137

142138
:::image type="content" source="./media/diagnose-vm-network-routing-problem/bing-allowed.png" alt-text="Screenshot showing Bing page in a web browser.":::
143139

144-
145140
### Create second virtual machine
146141

147142
Follow the previous steps that you used to create **myVM** virtual machine and enter *myNVA* for the virtual machine name.
148143

149-
150144
## Test network communication using Network Watcher next hop
151145

152146
Use the next hop capability of Network Watcher to determine which route Azure is using to route traffic from **myVM**, which has one network interface with one IP configuration
153147

154148
1. In the search box at the top of the portal, enter *network watcher*. Select **Network Watcher** in the search results.
155149

156-
1. Under **Network diagnostic tools**, select **Next hop**. Enter or select the following information:
150+
1. Under **Network diagnostic tools**, select **Next hop**. Enter or select the following values:
157151

158152
| Setting | Value |
159153
| ------- | ------ |
@@ -176,12 +170,11 @@ Use the next hop capability of Network Watcher to determine which route Azure is
176170

177171
:::image type="content" source="./media/diagnose-vm-network-routing-problem/next-hop-none-system-route.png" alt-text="Screenshot showing Network Watcher next hop result when testing with a private IP outside the address space of the virtual network.":::
178172

179-
180173
## View details of a route
181174

182175
To further analyze routing, review the effective routes for **myVM** network interface.
183176

184-
1. In the search box at the top of the portal, enter *virtual machine*. Select **Virtual machines** in the search results.
177+
1. In the search box at the top of the portal, enter *virtual machines*. Select **Virtual machines** in the search results.
185178

186179
1. Under **Settings**, select **Networking**, then select the network interface.
187180

@@ -197,19 +190,17 @@ To further analyze routing, review the effective routes for **myVM** network int
197190

198191
However, when you ran the test using **10.1.0.5**, the result was **None** for the next hop type because this IP address is in the 10.0.0.0/8 address space. Azure default route for 10.0.0.0/8 address prefix has next hope type as **None**. If you add an address prefix that contains 10.1.0.5 to the virtual network address space, then the next hop type for 10.1.0.5 will change from **None** to **VirtualNetwork**.
199192

200-
201193
## Test a routing problem due to custom routes
202194

203-
Next, you'll create a static custom route to override Azure default system routes and cause a routing problem to **myVM** virtual machine that prevents it from directly communicating with `www.bing.com`. Then, you'll use Network Watcher next hop to troubleshoot and diagnose the problem.
204-
195+
Next, you create a static custom route to override Azure default system routes and cause a routing problem to **myVM** virtual machine that prevents it from directly communicating with `www.bing.com`. Then, you'll use Network Watcher next hop to troubleshoot and diagnose the problem.
205196

206197
### Create a custom route
207198

208199
In this section, you create a static custom route (user-defined route) in a route table that forces all traffic destined outside the virtual network to a specific IP address. Forcing traffic to a virtual network appliance is a common scenario.
209200

210-
1. In the search box at the top of the portal, enter *route table*. Select **Route tables** in the search results.
201+
1. In the search box at the top of the portal, enter *route tables*. Select **Route tables** in the search results.
211202

212-
1. Select **+ Create** to create a new route table. In the **Create Route table** page, enter or select the following:
203+
1. Select **+ Create** to create a new route table. In the **Create Route table** page, enter or select the following values:
213204

214205
| Setting | Value |
215206
| ------- | ------ |
@@ -225,11 +216,11 @@ In this section, you create a static custom route (user-defined route) in a rout
225216

226217
1. Review the settings, and then select **Create**.
227218

228-
1. Select **Go to resource**.
219+
1. Once the deployment is complete, select **Go to resource** to go to the **Overview** page of **myRouteTable**.
229220

230221
1. Under **Settings**, select **Routes**, and then select **+ Add** to add a custom route.
231222

232-
1. In the **Add route** page, enter or select the following:
223+
1. In the **Add route** page, enter or select the following values:
233224

234225
| Setting | Value |
235226
| ------- | ------ |
@@ -241,14 +232,13 @@ In this section, you create a static custom route (user-defined route) in a rout
241232

242233
1. Select **Add**.
243234

244-
245235
### Associate the route table with the subnet
246236

247237
In this section, you associate the route table that you created in the previous section with **mySubnet** subnet.
248238

249239
1. Under **Settings**, select **Subnets**, and then select **+ Associate** to associate **myRouteTable** with **mySubnet** subnet.
250240

251-
1. In the **Associate subnet** page, select the following:
241+
1. In the **Associate subnet** page, select the following values:
252242

253243
| Setting | Value |
254244
| ------- | ------ |
@@ -257,14 +247,12 @@ In this section, you associate the route table that you created in the previous
257247

258248
1. Select **OK**.
259249

260-
261250
### Go to `www.bing.com`
262251

263252
In **myVM**, open the web browser and go to `www.bing.com` to verify if it's still reachable. The custom route that you created and associated with subnet of **myVM** forces the traffic to go to **myNVA**. The traffic is dropped as **myNVA** isn't set up to forward the traffic for the purposes of this tutorial to demonstrate a routing problem.
264253

265254
:::image type="content" source="./media/diagnose-vm-network-routing-problem/bing-blocked.png" alt-text="Screenshot showing Bing page isn't reachable in a web browser.":::
266255

267-
268256
### Test network communication using next hop
269257

270258
Repeat the steps you used in [Test network communication using Network Watcher next hop](#test-network-communication-using-network-watcher-next-hop) section using **13.107.21.200** to test the communication to `www.bing.com`.
@@ -282,20 +270,19 @@ The custom route with prefix 0.0.0.0/0 overrode Azure default route and caused a
282270
> [!NOTE]
283271
> In this tutorial, traffic to `www.bing.com` was dropped because **myNVA** was not set up to forward traffic. To learn how to set up a virtual machine to forward traffic, see [Turn on IP forwarding](/articles/virtual-network/tutorial-create-route-table-portal.md#turn-on-ip-forwarding).
284272
285-
286273
## Clean up resources
287274

288275
When no longer needed, delete the resource group and all of the resources it contains:
289276

290-
1. Enter *Resource groups* in the **Search** box at the top of the portal, and then select **myResourceGroup**.
277+
1. Enter *myResourceGroup* in the **Search** box at the top of the portal. When you see **myResourceGroup** in the search results, select it.
291278
2. Select **Delete resource group**.
292279
3. Enter *myResourceGroup* for **TYPE THE RESOURCE GROUP NAME:** and select **Delete**.
293280

294281
## Next steps
295282

296283
In this tutorial, you created a virtual machine and used Network Watcher next hop to diagnose routing to different destinations. To learn more about routing in Azure, see [Virtual network traffic routing](../virtual-network/virtual-networks-udr-overview.md?toc=%2fazure%2fnetwork-watcher%2ftoc.json).
297284

298-
For outbound VM connections, you can also determine the latency, allowed and denied network traffic between the VM and an endpoint, and the route used to an endpoint, using Network Watcher [connection troubleshoot](network-watcher-connectivity-portal.md) capability.
285+
For outbound VM connections, you can use Network Watcher [connection troubleshoot](network-watcher-connectivity-portal.md) capability to determine the latency, allowed and denied network traffic between the VM and an endpoint, and the route to an endpoint.
299286

300287
To learn how to monitor communication between two virtual machines, advance to the next tutorial.
301288
> [!div class="nextstepaction"]
72.7 KB
Loading
117 KB
Loading
32.6 KB
Loading

0 commit comments

Comments
 (0)