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
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.
4
4
ms.topic: conceptual
5
5
ms.custom: linux-related-content
6
6
author: guywi-ms
@@ -13,88 +13,129 @@ ms.date: 09/28/2023
13
13
> [!CAUTION]
14
14
> 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).
15
15
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.
17
17
18
18
>[!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.
20
20
21
21
## Dependency Agent requirements
22
22
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).
27
27
28
28
## Install or upgrade Dependency Agent
29
29
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:
|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. |
| 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.
37
42
38
43
### Manually install or upgrade Dependency Agent on Windows
39
44
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
41
48
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).
43
51
44
52
#### Using the Setup Wizard
45
53
46
54
1. Sign on to the computer with an account that has administrative rights.
47
55
48
-
2. Execute **InstallDependencyAgent-Windows.exe** to start the Setup Wizard.
56
+
1. Execute **InstallDependencyAgent-Windows.exe** to start the Setup Wizard.
49
57
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.
52
59
53
60
#### From the command line
54
61
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.
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.
64
71
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*.
66
73
67
-
### Manually install or upgrade Dependency Agent on Linux
74
+
### Manually install or upgrade Dependency Agent on Linux
68
75
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.
70
77
71
-
You can download the latest version of the Linux agent from [here](https://aka.ms/dependencyagentlinux).
78
+
#### Prerequisites
72
79
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:
> 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.
74
97
75
-
2. Run the following command as root.
98
+
1. Run the following command:
76
99
77
100
```bash
78
-
./InstallDependencyAgent-Linux64.bin -s
101
+
sudo <path>/InstallDependencyAgent-Linux64.bin
79
102
```
80
103
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*.
82
105
83
-
## Uninstall Dependency Agent
106
+
## Uninstall Dependency Agent
84
107
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).
86
110
87
111
1. From the **Virtual Machines** menu in the Azure portal, selectyour virtual machine.
112
+
88
113
1. Select **Extensions + applications**>**DependencyAgentWindows** or **DependencyAgentLinux**>**Uninstall**.
89
114
90
115
:::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":::
91
116
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
+
92
133
## Dependency Agent Linux support
93
134
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.
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 fora while or remove VM Insights entirely, see [Disable monitoring of your VMsin VM Insights](../vm/vminsights-optout.md).
0 commit comments