About This Page
This page is part of the Azure documentation. It contains code examples and configuration instructions for working with Azure services.
Bias Analysis
Bias Types:
⚠️
powershell_heavy
⚠️
windows_tools
⚠️
windows_first
Summary:
The documentation, while focused on Linux VMs, demonstrates a moderate Windows bias by prioritizing PowerShell (a Windows-centric tool) in both prerequisites and procedural steps, and by referencing Azure PowerShell cmdlets and tooling before or alongside Azure CLI. There is also a minor error in the Azure CLI install example, referencing 'Network Watcher Agent for Windows' in a Linux context. The documentation does not provide any native Linux shell (bash) or scripting examples, and assumes the use of Windows-oriented management tools even for Linux VM management.
Recommendations:
- Prioritize Azure CLI examples before PowerShell, as Azure CLI is cross-platform and more familiar to Linux users.
- Add native Linux shell (bash) examples for relevant operations, especially for users managing Linux VMs from Linux environments.
- Clarify that PowerShell is available cross-platform, but highlight Azure CLI and bash as the primary tools for Linux VM management.
- Correct the Azure CLI example comment to reference 'Network Watcher Agent for Linux' instead of Windows.
- Where possible, provide guidance for managing extensions directly from within the Linux VM (e.g., using the Azure CLI installed on the VM), not just from external management endpoints.
- Consider including a section on using REST API or SDKs from Linux environments for advanced users.
Create pull request
Flagged Code Snippets
---
## Uninstall Network Watcher Agent VM extension
# [**Portal**](#tab/portal)
From the virtual machine page in the Azure portal, you can uninstall the Network Watcher Agent VM extension by following these steps:
1. Under **Settings**, select **Extensions + applications**.
1. Select **AzureNetworkWatcherExtension** from the list of extensions, and then select **Uninstall**.
:::image type="content" source="./media/network-watcher-agent-linux/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-agent-linux/uninstall-extension-linux.png":::
> [!NOTE]
> You might see Network Watcher Agent VM extension named differently than **AzureNetworkWatcherExtension**.
# [**PowerShell**](#tab/powershell)
Use [Remove-AzVMExtension](/powershell/module/az.compute/remove-azvmextension) cmdlet to remove Network Watcher Agent VM extension from the virtual machine:
# [**Resource Manager**](#tab/arm)
N/A
---
## Install Network Watcher Agent VM extension
# [**Portal**](#tab/portal)
From the virtual machine page in the Azure portal, you can install the Network Watcher Agent VM extension by following these steps:
1. Under **Settings**, select **Extensions + applications**.
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.
:::image type="content" source="./media/network-watcher-agent-linux/vm-extensions.png" alt-text="Screenshot that shows the VM's extensions page in the Azure portal." lightbox="./media/network-watcher-agent-linux/vm-extensions.png":::
1. In the search box of **Install an Extension**, enter *Network Watcher Agent for Linux*. Select the extension from the list and select **Next**.
:::image type="content" source="./media/network-watcher-agent-linux/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-agent-linux/install-extension-linux.png":::
1. Select **Review + create** and then select **Create**.
# [**PowerShell**](#tab/powershell)
Use [Set-AzVMExtension](/powershell/module/az.compute/set-azvmextension) cmdlet to install Network Watcher Agent VM extension on the virtual machine:
The output of the cmdlet lists the installed extensions: