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
Copy file name to clipboardExpand all lines: articles/network-watcher/diagnose-vm-network-routing-problem-cli.md
+16-4Lines changed: 16 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,15 +5,17 @@ description: In this article, you learn how to use Azure CLI to diagnose a virtu
5
5
author: halkazwini
6
6
ms.service: azure-network-watcher
7
7
ms.topic: how-to
8
-
ms.date: 03/18/2022
8
+
ms.date: 10/29/2024
9
9
ms.author: halkazwini
10
10
ms.custom: devx-track-azurecli
11
+
11
12
# Customer intent: I need to diagnose virtual machine (VM) network routing problem that prevents communication to different destinations.
12
13
---
13
14
14
-
# Diagnose a virtual machine network routing problem - Azure CLI
15
+
# Diagnose a virtual machine network routing problem using the Azure CLI
16
+
17
+
In this article, you learn how to use Azure Network Watcher [next hop](network-watcher-next-hop-overview.md) tool to troubleshoot and diagnose a VM routing problem that's preventing it from correctly communicating with other resources.
15
18
16
-
In this article, you deploy a virtual machine (VM), and then check communications to an IP address and URL. You determine the cause of a communication failure and how you can resolve it.
@@ -23,7 +25,17 @@ In this article, you deploy a virtual machine (VM), and then check communication
23
25
24
26
- The Azure CLI commands in this article are formatted to run in a Bash shell.
25
27
26
-
## Create a VM
28
+
## Prerequisites
29
+
30
+
- An Azure account with an active subscription. [Create an account for free](https://azure.microsoft.com/free/?WT.mc_id=A261C142F).
31
+
32
+
- Azure Cloud Shell or Azure CLI.
33
+
34
+
The steps in this article run the Azure CLI commands interactively in [Azure Cloud Shell](/azure/cloud-shell/overview). To run the commands in the Cloud Shell, select **Open Cloud Shell** at the upper-right corner of a code block. Select **Copy** to copy the code, and paste it into Cloud Shell to run it. You can also run the Cloud Shell from within the Azure portal.
35
+
36
+
You can also [install Azure CLI locally](/cli/azure/install-azure-cli) to run the commands. This article requires the Azure CLI version 2.0 or later. Run [az --version](/cli/azure/reference-index#az-version) command to find the installed version. If you run Azure CLI locally, sign in to Azure using the [az login](/cli/azure/reference-index#az-login) command.
37
+
38
+
## Create a virtual machine
27
39
28
40
Before you can create a VM, you must create a resource group to contain the VM. Create a resource group with [az group create](/cli/azure/group#az-group-create). The following example creates a resource group named *myResourceGroup* in the *eastus* location:
0 commit comments