Skip to content

Commit 2f610a7

Browse files
Merge pull request #284119 from kainawroth/kainawroth-dependency
Adding info to manual installation of Dependency Agent
2 parents 04e2d66 + 1b91789 commit 2f610a7

File tree

1 file changed

+73
-32
lines changed

1 file changed

+73
-32
lines changed
Lines changed: 73 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
title: VM Insights Dependency Agent
3-
description: This article describes how to upgrade the VM insights Dependency agent using command-line, setup wizard, and other methods.
3+
description: This article describes how to upgrade the VM Insights Dependency Agent using command-line, setup wizard, and other methods.
44
ms.topic: conceptual
55
ms.custom: linux-related-content
66
author: guywi-ms
@@ -13,88 +13,129 @@ ms.date: 09/28/2023
1313
> [!CAUTION]
1414
> This article references CentOS, a Linux distribution that is End Of Life (EOL) status. Please consider your use and planning accordingly. For more information, see the [CentOS End Of Life guidance](/azure/virtual-machines/workloads/centos/centos-end-of-life).
1515
16-
The Dependency Agent collects data about processes running on the virtual machine and external process dependencies. Dependency Agent updates include bug fixes or support of new features or functionality. This article describes Dependency Agent requirements and how to upgrade Dependency Agent manually or through automation.
16+
Dependency Agent collects data about processes running on the virtual machine and external process dependencies. Updates include bug fixes or support of new features or functionality. This article describes Dependency Agent requirements and how to upgrade it manually or through automation.
1717

1818
>[!NOTE]
19-
> The Dependency Agent sends heartbeat data to the [InsightsMetrics](/azure/azure-monitor/reference/tables/insightsmetrics) table, for which you incur data ingestion charges. This behavior is different from Azure Monitor Agent, which sends agent health data to the [Heartbeat](/azure/azure-monitor/reference/tables/heartbeat) table, which is free from data collection charges.
19+
> Dependency Agent sends heartbeat data to the [InsightsMetrics](/azure/azure-monitor/reference/tables/insightsmetrics) table, for which you incur data ingestion charges. This behavior is different from Azure Monitor Agent, which sends agent health data to the [Heartbeat](/azure/azure-monitor/reference/tables/heartbeat) table, which is free from data collection charges.
2020
2121
## Dependency Agent requirements
2222

23-
* The Dependency Agent requires the Azure Monitor Agent to be installed on the same machine.
24-
* On both the Windows and Linux versions, the Dependency Agent collects data using a user-space service and a kernel driver.
25-
* Dependency Agent supports the same [Windows versions that Azure Monitor Agent supports](../agents/agents-overview.md#supported-operating-systems), except Windows Server 2008 SP2 and Azure Stack HCI.
26-
* For Linux, see [Dependency Agent Linux support](#dependency-agent-linux-support).
23+
> [!div class="checklist"]
24+
> * Requires the Azure Monitor Agent to be installed on the same machine.
25+
> * Collects data using a user-space service and a kernel driver on both Windows and Linux.
26+
> * Supports the same [Windows versions that Azure Monitor Agent supports](../agents/agents-overview.md#supported-operating-systems), except Windows Server 2008 SP2 and Azure Stack HCI. For Linux, see [Dependency Agent Linux support](#dependency-agent-linux-support).
2727
2828
## Install or upgrade Dependency Agent
2929

30-
You can upgrade the Dependency agent for Windows and Linux manually or automatically, depending on the deployment scenario and environment the machine is running in, using these methods:
30+
You can upgrade Dependency Agent for Windows and Linux manually or automatically, depending on the deployment scenario and environment the machine is running in, using these methods:
3131

32-
|Environment |Installation method |Upgrade method |
33-
|------------|--------------------|---------------|
34-
|Azure VM | Dependency agent VM extension for [Windows](/azure/virtual-machines/extensions/agent-dependency-windows) and [Linux](/azure/virtual-machines/extensions/agent-dependency-linux) | Agent is automatically upgraded by default unless you configured your Azure Resource Manager template to opt out by setting the property *autoUpgradeMinorVersion* to **false**. The upgrade for minor version where auto upgrade is disabled, and a major version upgrade follow the same method - uninstall and reinstall the extension. |
35-
| Custom Azure VM images | Manual install of Dependency agent for Windows/Linux | Updating VMs to the newest version of the agent needs to be performed from the command line running the Windows installer package or Linux self-extracting and installable shell script bundle.|
36-
| Non-Azure VMs | Manual install of Dependency agent for Windows/Linux | Updating VMs to the newest version of the agent needs to be performed from the command line running the Windows installer package or Linux self-extracting and installable shell script bundle. |
32+
| Environment | Installation method | Upgrade method |
33+
|-------------|---------------------|----------------|
34+
| Azure VM | Dependency Agent VM extension for [Windows](/azure/virtual-machines/extensions/agent-dependency-windows) and [Linux](/azure/virtual-machines/extensions/agent-dependency-linux) | Agent is automatically upgraded by default unless you configured your Azure Resource Manager template to opt out by setting the property `autoUpgradeMinorVersion` to **false**. The upgrade for minor version where auto upgrade is disabled, and a major version upgrade follow the same method - uninstall and reinstall the extension. |
35+
| Custom Azure VM images | Manual install of Dependency Agent for Windows/Linux | Updating VMs to the newest version of the agent needs to be performed from the command line running the Windows installer package or Linux self-extracting and installable shell script bundle. |
36+
| Non-Azure VMs | Manual install of Dependency Agent for Windows/Linux | Updating VMs to the newest version of the agent needs to be performed from the command line running the Windows installer package or Linux self-extracting and installable shell script bundle. |
37+
38+
> [!NOTE]
39+
> Dependency Agent is installed automatically when VM Insights is enabled for process and connection data via the [Azure portal](vminsights-enable-portal.md), [PowerShell](vminsights-enable-powershell.md), [ARM template deployment](vminsights-enable-resource-manager.md), or [Azure policy](vminsights-enable-policy.md).
40+
>
41+
> If VM Insights is enabled exclusively for performance data, Dependency Agent won't be installed.
3742
3843
### Manually install or upgrade Dependency Agent on Windows
3944

40-
Update the agent on a Windows VM from the command prompt, with a script or other automation solution, or by using the InstallDependencyAgent-Windows.exe Setup Wizard.
45+
Update the agent on a Windows VM from the command prompt, with a script or other automation solution, or by using the InstallDependencyAgent-Windows.exe Setup Wizard.
46+
47+
#### Prerequisites
4148

42-
[Download the latest version of the Windows agent](https://aka.ms/dependencyagentwindows).
49+
> [!div class="checklist"]
50+
> * Download the latest version of the Windows agent from [aka.ms/dependencyagentwindows](https://aka.ms/dependencyagentwindows).
4351
4452
#### Using the Setup Wizard
4553

4654
1. Sign on to the computer with an account that has administrative rights.
4755

48-
2. Execute **InstallDependencyAgent-Windows.exe** to start the Setup Wizard.
56+
1. Execute **InstallDependencyAgent-Windows.exe** to start the Setup Wizard.
4957

50-
3. Follow the **Dependency Agent Setup** wizard to uninstall the previous version of the dependency agent and then install the latest version.
51-
58+
1. Follow the **Dependency Agent Setup** wizard to uninstall the previous version of Dependency Agent and then install the latest version.
5259

5360
#### From the command line
5461

55-
1. Sign on to the computer with an account that has administrative rights.
62+
1. Sign in on the computer using an account with administrative rights.
5663

57-
2. Run the following command.
64+
1. Run the following command:
5865

5966
```cmd
6067
InstallDependencyAgent-Windows.exe /S /RebootMode=manual
6168
```
6269
6370
The `/RebootMode=manual` parameter prevents the upgrade from automatically rebooting the machine if some processes are using files from the previous version and have a lock on them.
6471
65-
3. To confirm the upgrade was successful, check the `install.log` for detailed setup information. The log directory is *%Programfiles%\Microsoft Dependency Agent\logs*.
72+
1. To confirm the upgrade was successful, check the `install.log` for detailed setup information. The log directory is *%Programfiles%\Microsoft Dependency Agent\logs*.
6673
67-
### Manually install or upgrade Dependency Agent on Linux
74+
### Manually install or upgrade Dependency Agent on Linux
6875
69-
Upgrade from prior versions of the Dependency Agent on Linux is supported and performed following the same command as a new installation.
76+
Upgrading from prior versions of Dependency Agent on Linux is supported and performed following the same command as a new installation.
7077
71-
You can download the latest version of the Linux agent from [here](https://aka.ms/dependencyagentlinux).
78+
#### Prerequisites
7279
73-
1. Sign on to the computer with an account that has administrative rights.
80+
> [!div class="checklist"]
81+
> * Download the latest version of the Linux agent from [aka.ms/dependencyagentlinux](https://aka.ms/dependencyagentlinux) or via curl:
82+
83+
```bash
84+
curl -L -o DependencyAgent-Linux64.bin https://aka.ms/dependencyagentlinux
85+
```
86+
87+
> [!NOTE]
88+
> Curl doesn't automatically set execution permissions. You need to manually set them using chmod:
89+
>
90+
> ```bash
91+
> chmod +x DependencyAgent-Linux64.bin
92+
> ```
93+
94+
#### From the command line
95+
96+
1. Sign in on the computer with a user account that has sudo privileges to execute commands as root.
7497
75-
2. Run the following command as root.
98+
1. Run the following command:
7699
77100
```bash
78-
./InstallDependencyAgent-Linux64.bin -s
101+
sudo <path>/InstallDependencyAgent-Linux64.bin
79102
```
80103
81-
If the Dependency agent fails to start, check the logs for detailed error information. On Linux agents, the log directory is */var/opt/microsoft/dependency-agent/log*.
104+
If Dependency Agent fails to start, check the logs for detailed error information. On Linux agents, the log directory is */var/opt/microsoft/dependency-agent/log*.
82105
83-
## Uninstall Dependency Agent
106+
## Uninstall Dependency Agent
84107
85-
To uninstall Dependency Agent:
108+
> [!NOTE]
109+
> If Dependency Agent was installed manually, it won’t show in the Azure portal and has to be uninstalled manually. It will only show if it was installed via the [Azure portal](vminsights-enable-portal.md), [PowerShell](vminsights-enable-powershell.md), [ARM template deployment](vminsights-enable-resource-manager.md), or [Azure policy](vminsights-enable-policy.md).
86110
87111
1. From the **Virtual Machines** menu in the Azure portal, select your virtual machine.
112+
88113
1. Select **Extensions + applications** > **DependencyAgentWindows** or **DependencyAgentLinux** > **Uninstall**.
89114
90115
:::image type="content" source="media/vminsights-dependency-agent-maintenance/azure-monitor-uninstall-dependency-agent.png" alt-text="Screenshot showing the Extensions and applications screen for a virtual machine." lightbox="media/vminsights-dependency-agent-maintenance/azure-monitor-uninstall-dependency-agent.png":::
91116
117+
### Manually uninstall Dependency Agent on Windows
118+
119+
**Method 1:** In Windows, go to **Add and remove programs**, find Microsoft Dependency Agent, click on the ellipsis to open the context menu, and select **Uninstall**.
120+
121+
**Method 2:** Use the uninstaller located in the Microsoft Dependency Agent folder, for example, `C:\Program Files\Microsoft Dependency Agent"\Uninstall_v.w.x.y.exe` (where v.w.x.y is the version number).
122+
123+
### Manually uninstall Dependency Agent on Linux
124+
125+
1. Sign in on the computer with a user account that has sudo privileges to execute commands as root.
126+
127+
1. Run the following command:
128+
129+
```bash
130+
sudo /opt/microsoft/dependency-agent/uninstall -s
131+
```
132+
92133
## Dependency Agent Linux support
93134
94-
Since the Dependency agent works at the kernel level, support is also dependent on the kernel version. As of Dependency agent version 9.10.* the agent supports * kernels. The following table lists the major and minor Linux OS release and supported kernel versions for the Dependency agent.
135+
Since Dependency Agent works at the kernel level, support is also dependent on the kernel version. As of Dependency Agent version 9.10.* the agent supports * kernels. The following table lists the major and minor Linux OS release and supported kernel versions for Dependency Agent.
95136
96137
[!INCLUDE [dependency-agent-linux-versions](~/reusable-content/ce-skilling/azure/includes/azure-monitor/vm-insights-dependency-agent-linux-versions.md)]
97138
98139
## Next steps
99140
100-
If you want to stop monitoring your VMs for a while or remove VM insights entirely, see [Disable monitoring of your VMs in VM insights](../vm/vminsights-optout.md).
141+
If you want to stop monitoring your VMs for a while or remove VM Insights entirely, see [Disable monitoring of your VMs in VM Insights](../vm/vminsights-optout.md).

0 commit comments

Comments
 (0)