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
#CustomerIntent: As an Azure administrator, I want to learn about Network Watcher Agent VM extension so that I can use Network watcher features to diagnose and monitor my Linux virtual machines (VMs).
12
14
---
13
15
14
16
# Manage Network Watcher Agent virtual machine extension for Linux
15
17
16
18
> [!CAUTION]
17
19
> This article references CentOS, a Linux distribution that is nearing End Of Life (EOL) status. Please consider your use and planning accordingly. For more information, see the [CentOS End Of Life guidance](~/articles/virtual-machines/workloads/centos/centos-end-of-life.md).
18
20
19
-
[Azure Network Watcher](../../network-watcher/network-watcher-monitoring-overview.md) is a network performance monitoring, diagnostic, and analytics service that allows monitoring for Azure networks. The Network Watcher Agent virtual machine extension is a requirement for some of the Network Watcher features on Azure virtual machines (VMs), such as capturing network traffic on demand, and other advanced functionality.
21
+
The Network Watcher Agent virtual machine extension is a requirement for some of Azure Network Watcher features that capture network traffic to diagnose and monitor Azure virtual machines (VMs). For more information, see [What is Azure Network Watcher?](../../network-watcher/network-watcher-overview.md)
20
22
21
-
In this article, you learn about the supported platforms and deployment options for the Network Watcher Agent VM extension for Linux. Installation of the agent doesn't disrupt, or require a reboot of the virtual machine. You can install the extension on virtual machines that you deploy. If the virtual machine is deployed by an Azure service, check the documentation for the service to determine whether or not it permits installing extensions in the virtual machine.
23
+
In this article, you learn how to install and uninstall Network Watcher Agent for Linux. Installation of the agent doesn't disrupt, or require a reboot of the virtual machine. If the virtual machine is deployed by an Azure service, check the documentation of the service to determine whether or not it permits installing extensions in the virtual machine.
22
24
23
25
> [!NOTE]
24
26
> Network Watcher Agent extension is not supported on AKS clusters.
@@ -29,13 +31,17 @@ In this article, you learn about the supported platforms and deployment options
29
31
30
32
- An Azure Linux virtual machine (VM). For more information, see [Supported operating systems](#supported-operating-systems).
31
33
32
-
- Internet connectivity: some of the Network Watcher Agent functionality requires that the virtual machine is connected to the internet. For example, without the ability to establish outgoing connections, the Network Watcher Agent can't upload packet captures to your storage account. For more information, see [Packet capture overview](../../network-watcher/packet-capture-overview.md).
34
+
- Outbound TCP connectivity to `169.254.169.254` over `port 80` and `168.63.129.16` over `port 8037`. The agent uses these IP addresses to communicate with the Azure platform.
35
+
36
+
- Internet connectivity: Network Watcher Agent requires internet connectivity for some features to properly work. For example, it requires connectivity to your storage account to upload packet captures. For more information, see [Packet capture overview](../../network-watcher/packet-capture-overview.md).
33
37
34
38
# [**PowerShell**](#tab/powershell)
35
39
36
40
- An Azure Linux virtual machine (VM). For more information, see [Supported operating systems](#supported-operating-systems).
37
41
38
-
- Internet connectivity: some of the Network Watcher Agent functionality requires that the virtual machine is connected to the internet. For example, without the ability to establish outgoing connections, the Network Watcher Agent can't upload packet captures to your storage account. For more information, see [Packet capture overview](../../network-watcher/packet-capture-overview.md).
42
+
- Outbound TCP connectivity to `169.254.169.254` over `port 80` and `168.63.129.16` over `port 8037`. The agent uses these IP addresses to communicate with the Azure platform.
43
+
44
+
- Internet connectivity: Network Watcher Agent requires internet connectivity for some features to properly work. For example, it requires connectivity to your storage account to upload packet captures. For more information, see [Packet capture overview](../../network-watcher/packet-capture-overview.md).
39
45
40
46
- Azure Cloud Shell or Azure PowerShell.
41
47
@@ -47,7 +53,9 @@ In this article, you learn about the supported platforms and deployment options
47
53
48
54
- An Azure Linux virtual machine (VM). For more information, see [Supported operating systems](#supported-operating-systems).
49
55
50
-
- Internet connectivity: some of the Network Watcher Agent functionality requires that the virtual machine is connected to the internet. For example, without the ability to establish outgoing connections, the Network Watcher Agent can't upload packet captures to your storage account. For more information, see [Packet capture overview](../../network-watcher/packet-capture-overview.md).
56
+
- Outbound TCP connectivity to `169.254.169.254` over `port 80` and `168.63.129.16` over `port 8037`. The agent uses these IP addresses to communicate with the Azure platform.
57
+
58
+
- Internet connectivity: Network Watcher Agent requires internet connectivity for some features to properly work. For example, it requires connectivity to your storage account to upload packet captures. For more information, see [Packet capture overview](../../network-watcher/packet-capture-overview.md).
51
59
52
60
- Azure Cloud Shell or Azure CLI.
53
61
@@ -59,7 +67,9 @@ In this article, you learn about the supported platforms and deployment options
59
67
60
68
- An Azure Linux virtual machine (VM). For more information, see [Supported operating systems](#supported-operating-systems).
61
69
62
-
- Internet connectivity: some of the Network Watcher Agent functionality requires that the virtual machine is connected to the internet. For example, without the ability to establish outgoing connections, the Network Watcher Agent can't upload packet captures to your storage account. For more information, see [Packet capture overview](../../network-watcher/packet-capture-overview.md).
70
+
- Outbound TCP connectivity to `169.254.169.254` over `port 80` and `168.63.129.16` over `port 8037`. The agent uses these IP addresses to communicate with the Azure platform.
71
+
72
+
- Internet connectivity: Network Watcher Agent requires internet connectivity for some features to properly work. For example, it requires connectivity to your storage account to upload packet captures. For more information, see [Packet capture overview](../../network-watcher/packet-capture-overview.md).
63
73
64
74
- Azure PowerShell or Azure CLI installed locally to deploy the template.
65
75
@@ -83,7 +93,7 @@ Network Watcher Agent extension for Linux can be installed on the following Linu
83
93
| Oracle Linux | 6.10, 7 and 8+ |
84
94
| Red Hat Enterprise Linux (RHEL) | 6.10, 7, 8 and 9.2 |
85
95
| Rocky Linux | 9.1 |
86
-
| SUSE Linux Enterprise Server (SLES) | 12 and 15 (SP2, SP3 and SP4) |
96
+
| SUSE Linux Enterprise Server (SLES) | 12 and 15 (SP2, SP3, and SP4) |
87
97
| Ubuntu | 16+ |
88
98
89
99
> [!NOTE]
@@ -112,28 +122,202 @@ The following JSON shows the schema for the Network Watcher Agent extension. The
112
122
}
113
123
```
114
124
115
-
## Template deployment
125
+
## List installed extensions
126
+
127
+
# [**Portal**](#tab/portal)
128
+
129
+
From the virtual machine page in the Azure portal, you can view the installed extension by following these steps:
130
+
131
+
1. Under **Settings**, select **Extensions + applications**.
132
+
133
+
1. In the **Extensions** tab, you can see all installed extensions on the virtual machine. If the list is long, you can use the search box to filter the list.
134
+
135
+
:::image type="content" source="./media/network-watcher/list-vm-extensions.png" alt-text="Screenshot that shows how to view installed extensions on a VM in the Azure portal." lightbox="./media/network-watcher/list-vm-extensions.png":::
136
+
137
+
# [**PowerShell**](#tab/powershell)
138
+
139
+
Use [Get-AzVMExtension](/powershell/module/az.compute/get-azvmextension) cmdlet to list all installed extensions on the virtual machine:
140
+
141
+
```azurepowershell-interactive
142
+
# List the installed extensions on the virtual machine.
The following example deploys the Network Watcher Agent VM extensionto an existing VM deployed through Resource Manager:
156
+
Use [az vm extension list](/cli/azure/vm/extension#az-vm-extension-list) command to list all installed extensions on the virtual machine:
122
157
123
158
```azurecli
124
-
az vm extension set --resource-group myResourceGroup1 --vm-name myVM1 --name NetworkWatcherAgentLinux --publisher Microsoft.Azure.NetworkWatcher --version 1.4
159
+
# List the installed extensions on the virtual machine.
160
+
az vm extension list --resource-group 'myResourceGroup' --vm-name 'myVM' --out table
161
+
```
162
+
163
+
The output of the command lists the installed extensions:
164
+
165
+
```output
166
+
Name ProvisioningState Publisher Version AutoUpgradeMinorVersion
From the virtual machine page in the Azure portal, you can install the Network Watcher Agent VM extension by following these steps:
182
+
183
+
1. Under **Settings**, select **Extensions + applications**.
184
+
185
+
1. Select **+ Add** and search for **Network Watcher Agent** and install it. If the extension is already installed, you can see it in the list of extensions.
186
+
187
+
:::image type="content" source="./media/network-watcher/vm-extensions.png" alt-text="Screenshot that shows the VM's extensions page in the Azure portal." lightbox="./media/network-watcher/vm-extensions.png":::
128
188
129
-
You can retrieve data about the state of extension deployments using either the Azure portal or Azure CLI.
189
+
1. In the search box of **Install an Extension**, enter *Network Watcher Agent for Linux*. Select the extension from the list and select **Next**.
130
190
131
-
The following example shows the deployment state of the NetworkWatcherAgentLinux extension for a VM deployed through Resource Manager, using the Azure CLI:
191
+
:::image type="content" source="./media/network-watcher/install-extension-linux.png" alt-text="Screenshot that shows how to install Network Watcher Agent for Linux in the Azure portal." lightbox="./media/network-watcher/install-extension-linux.png":::
192
+
193
+
1. Select **Review + create** and then select **Create**.
194
+
195
+
# [**PowerShell**](#tab/powershell)
196
+
197
+
Use [Set-AzVMExtension](/powershell/module/az.compute/set-azvmextension) cmdlet to install Network Watcher Agent VM extension on the virtual machine:
198
+
199
+
```azurepowershell-interactive
200
+
# Install Network Watcher Agent for Linux on the virtual machine.
az vm extension show --name NetworkWatcherAgentLinux --resource-group myResourceGroup1 --vm-name myVM1
272
+
# Deploy the JSON template file using the Azure CLI.
273
+
az deployment group create --resource-group 'myResourceGroup' --template-file 'agent.json'
135
274
```
136
275
276
+
---
277
+
278
+
## Uninstall Network Watcher Agent VM extension
279
+
280
+
# [**Portal**](#tab/portal)
281
+
282
+
From the virtual machine page in the Azure portal, you can uninstall the Network Watcher Agent VM extension by following these steps:
283
+
284
+
1. Under **Settings**, select **Extensions + applications**.
285
+
286
+
1. Select **AzureNetworkWatcherExtension** from the list of extensions, and then select **Uninstall**.
287
+
288
+
:::image type="content" source="./media/network-watcher/uninstall-extension-linux.png" alt-text="Screenshot that shows how to uninstall Network Watcher Agent for Linux in the Azure portal." lightbox="./media/network-watcher/uninstall-extension-linux.png":::
289
+
290
+
> [!NOTE]
291
+
> In the list of extensions, you might see Network Watcher Agent VM extension named differently than **AzureNetworkWatcherExtension**.
292
+
293
+
# [**PowerShell**](#tab/powershell)
294
+
295
+
Use [Remove-AzVMExtension](/powershell/module/az.compute/remove-azvmextension) cmdlet to remove Network Watcher Agent VM extension from the virtual machine:
Use [az vm extension delete](/cli/azure/vm/extension#az-vm-extension-delete) command to remove Network Watcher Agent VM extension from the virtual machine:
305
+
306
+
```azurecli-interactive
307
+
# Uninstall Network Watcher Agent VM extension.
308
+
az vm extension delete --name 'AzureNetworkWatcherExtension' --resource-group 'myResourceGroup' --vm-name 'myVM'
309
+
```
310
+
311
+
# [**Resource Manager**](#tab/arm)
312
+
313
+
N/A
314
+
315
+
---
316
+
317
+
## Frequently asked questions (FAQ)
318
+
319
+
To get answers to most frequently asked questions about Network Watcher Agent, see [Network Watcher Agent FAQ](../../network-watcher/frequently-asked-questions#network-watcher-agent).
320
+
137
321
## Related content
138
322
139
323
-[Update Azure Network Watcher extension to the latest version](network-watcher-update.md).
0 commit comments