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
title: Network Watcher Agent VM extension - Windows
2
+
title: Manage Network Watcher Agent VM extension - Windows
3
3
description: Learn about the Network Watcher Agent virtual machine extension on Windows virtual machines and how to deploy it.
4
4
author: halkazwini
5
5
ms.author: halkazwini
6
6
ms.service: virtual-machines
7
7
ms.subservice: extensions
8
-
ms.topic: concept-article
9
-
ms.date: 03/25/2024
8
+
ms.topic: how-to
9
+
ms.date: 03/29/2024
10
10
ms.collection: windows
11
+
12
+
#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 virtual machines (VMs).
11
13
---
12
14
13
-
# Network Watcher Agent virtual machine extension for Windows
15
+
# Manage Network Watcher Agent virtual machine extension for Windows
14
16
15
-
[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.
17
+
[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). For more information, see [Network Watcher Agent FAQ](../../network-watcher/frequently-asked-questions.yml#network-watcher-agent).
16
18
17
-
This article details the supported platforms and deployment options for the Network Watcher Agent VM extension for Windows. 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.
19
+
In this article, you learn about the supported platforms and deployment options for the Network Watcher Agent VM extension for Windows. 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.
18
20
19
21
## Prerequisites
20
22
21
-
### Operating system
23
+
# [**Portal**](#tab/portal)
24
+
25
+
- An Azure Windows virtual machine (VM). For more information, see [Supported Windows versions](#supported-operating-systems).
26
+
27
+
- 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).
28
+
29
+
# [**PowerShell**](#tab/powershell)
30
+
31
+
- An Azure Windows virtual machine (VM). For more information, see [Supported Windows versions](#supported-operating-systems).
32
+
33
+
- 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
+
35
+
- Azure Cloud Shell or Azure PowerShell.
36
+
37
+
The steps in this article run the Azure PowerShell cmdlets 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 then paste it into Cloud Shell to run it. You can also run the Cloud Shell from within the Azure portal.
38
+
39
+
You can also [install Azure PowerShell locally](/powershell/azure/install-azure-powershell) to run the cmdlets. This article requires the Azure PowerShell `Az` module. To find the installed version, run `Get-Module -ListAvailable Az`. If you run PowerShell locally, sign in to Azure using the [Connect-AzAccount](/powershell/module/az.accounts/connect-azaccount) cmdlet.
40
+
41
+
# [**Azure CLI**](#tab/cli)
42
+
43
+
- An Azure Windows virtual machine (VM). For more information, see [Supported Windows versions](#supported-operating-systems).
22
44
23
-
The Network Watcher Agent extension for Windows can be configured for Windows Server 2012, 2012 R2, 2016, 2019 and 2022 releases. Currently, Nano Server isn't supported.
45
+
- 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).
46
+
47
+
- Azure Cloud Shell or Azure CLI.
48
+
49
+
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.
50
+
51
+
You can also [install Azure CLI locally](/cli/azure/install-azure-cli) to run the commands. If you run Azure CLI locally, sign in to Azure using the [az login](/cli/azure/reference-index#az-login) command.
52
+
53
+
# [**Resource Manager**](#tab/arm)
54
+
55
+
- An Azure Windows virtual machine (VM). For more information, see [Supported Windows versions](#supported-operating-systems).
56
+
57
+
- 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).
58
+
59
+
- Azure PowerShell or Azure CLI installed locally to deploy the template.
60
+
61
+
- You can [install Azure PowerShell locally](/powershell/azure/install-azure-powershell) to run the cmdlets. Use [Connect-AzAccount](/powershell/module/az.accounts/connect-azaccount) cmdlet to sign in to Azure.
62
+
63
+
- You can [install Azure CLI locally](/cli/azure/install-azure-cli) to run the commands. Use [az login](/cli/azure/reference-index#az-login) command to sign in to Azure.
64
+
65
+
---
24
66
25
-
### Internet connectivity
67
+
##Supported operating systems
26
68
27
-
Some of the Network Watcher Agent functionality requires that the virtual machine is connected to the Internet. Without the ability to establish outgoing connections, the Network Watcher Agent can't upload packet captures to your storage account. For more information, please see the [Network Watcher documentation](../../network-watcher/index.yml).
69
+
Network Watcher Agent extension for Windows can be installed on Windows Server 2012, 2012 R2, 2016, 2019 and 2022 releases. Currently, Nano Server isn't supported.
28
70
29
71
## Extension schema
30
72
31
73
The following JSON shows the schema for the Network Watcher Agent extension. The extension doesn't require, or support, any user-supplied settings, and relies on its default configuration.
@@ -47,53 +88,205 @@ The following JSON shows the schema for the Network Watcher Agent extension. The
47
88
"typeHandlerVersion": "1.4"
48
89
}
49
90
}
91
+
```
92
+
## List installed extensions
93
+
94
+
# [**Portal**](#tab/portal)
95
+
96
+
From the virtual machine page in the Azure portal, you can view the installed extension by following these steps:
97
+
98
+
1. Under **Settings**, select **Extensions + applications**.
99
+
100
+
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.
101
+
102
+
:::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":::
103
+
104
+
# [**PowerShell**](#tab/powershell)
105
+
106
+
Use [Get-AzVMExtension](/powershell/module/az.compute/get-azvmextension) cmdlet to list all installed extensions on the virtual machine:
50
107
108
+
```azurepowershell-interactive
109
+
# List the installed extensions on the virtual machine.
From the virtual machine page in the Azure portal, you can install the Network Watcher Agent VM extension by following these steps:
152
+
153
+
1. Under **Settings**, select **Extensions + applications**.
154
+
155
+
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.
156
+
157
+
:::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":::
83
158
84
-
You can retrieve data about the state of extension deployments from the Azure portal and PowerShell. To see the deployment state of extensions for a given VM, run the following command using the Azure PowerShell module:
159
+
1. In the search box of **Install an Extension**, enter *Network Watcher Agent for Windows*. Select the extension from the list and select **Next**.
:::image type="content" source="./media/network-watcher/install-extension-windows.png" alt-text="Screenshot that shows how to install Network Watcher Agent for Windows in the Azure portal." lightbox="./media/network-watcher/install-extension-windows.png":::
162
+
163
+
1. Select **Review + create** and then select **Create**.
164
+
165
+
# [**PowerShell**](#tab/powershell)
166
+
167
+
Use [Set-AzVMExtension](/powershell/module/az.compute/set-azvmextension) cmdlet to install Network Watcher Agent VM extension on the virtual machine:
168
+
169
+
```azurepowershell-interactive
170
+
# Install Network Watcher Agent for Windows on the virtual machine.
# Deploy the JSON template file using the Azure CLI.
243
+
az deployment group create --resource-group 'myResourceGroup' --template-file
244
+
```
245
+
246
+
---
247
+
248
+
## Uninstall Network Watcher Agent VM extension
249
+
250
+
# [**Portal**](#tab/portal)
251
+
252
+
From the virtual machine page in the Azure portal, you can uninstall the Network Watcher Agent VM extension by following these steps:
253
+
254
+
1. Under **Settings**, select **Extensions + applications**.
255
+
256
+
1. Select **AzureNetworkWatcherExtension** from the list of extensions, and then select **Uninstall**.
257
+
258
+
:::image type="content" source="./media/network-watcher/uninstall-extension-windows.png" alt-text="Screenshot that shows how to uninstall Network Watcher Agent for Windows in the Azure portal." lightbox="./media/network-watcher/uninstall-extension-windows.png":::
259
+
260
+
> [!NOTE]
261
+
> In the list of extensions, you might see Network Watcher Agent VM extension named differently than **AzureNetworkWatcherExtension**.
262
+
263
+
# [**PowerShell**](#tab/powershell)
264
+
265
+
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:
275
+
276
+
```azurecli-interactive
277
+
# Uninstall Network Watcher Agent VM extension.
278
+
az vm extension delete --name 'AzureNetworkWatcherExtension' --resource-group 'myResourceGroup' --vm-name 'myVM'
279
+
```
280
+
281
+
# [**Resource Manager**](#tab/arm)
282
+
283
+
N/A
284
+
285
+
---
286
+
287
+
96
288
## Related content
97
289
290
+
-[Update Azure Network Watcher extension to the latest version](network-watcher-update.md).
0 commit comments