Skip to content

Commit c3b1fc7

Browse files
authored
Merge pull request #88654 from MGoedtel/Task1594645
new article for Dependency agent upgrade
2 parents 4607618 + 2671a27 commit c3b1fc7

File tree

3 files changed

+86
-2
lines changed

3 files changed

+86
-2
lines changed
Lines changed: 82 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,82 @@
1+
---
2+
title: How to upgrade the Azure Monitor for VMs Dependency agent| Microsoft Docs
3+
description: This article describes how to upgrade the Azure Monitor for VMs Dependency agent using command-line, setup wizard, and other methods.
4+
services: azure-monitor
5+
documentationcenter: ''
6+
author: mgoedtel
7+
manager: carmonm
8+
editor: tysonn
9+
ms.assetid:
10+
ms.service: azure-monitor
11+
ms.topic: article
12+
ms.tgt_pltfrm: na
13+
ms.workload: infrastructure-services
14+
ms.date: 09/30/2019
15+
ms.author: magoedte
16+
---
17+
18+
# How to upgrade the Azure Monitor for VMs Dependency agent
19+
20+
After initial deployment of the Azure Monitor for VMs Dependency agent, updates are released that include bug fixes or support of new features or functionality. This article helps you understand the methods available and how to perform the upgrade manually or through automation.
21+
22+
## Upgrade options
23+
24+
The Dependency agent for Windows and Linux can be upgraded to the latest release manually or automatically depending on the deployment scenario and environment the machine is running in. The following methods can be used to upgrade the agent.
25+
26+
|Environment |Installation method |Upgrade method |
27+
|------------|--------------------|---------------|
28+
|Azure VM | Dependency agent VM extension for [Windows](../../virtual-machines/extensions/agent-dependency-windows.md) and [Linux](../../virtual-machines/extensions/agent-dependency-linux.md) | 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. |
29+
| 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.|
30+
| 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. |
31+
32+
## Upgrade Windows agent
33+
34+
To update the agent on a Windows VM to the latest version not installed using the Dependency agent VM extension, you either run from the Command Prompt, script or other automation solution, or by using the InstallDependencyAgent-Windows.exe Setup Wizard.
35+
36+
You can download the latest version of the Windows agent from [here](https://aka.ms/dependencyagentwindows).
37+
38+
### Using the Setup Wizard
39+
40+
1. Sign on to the computer with an account that has administrative rights.
41+
42+
2. Execute **InstallDependencyAgent-Windows.exe** to start the Setup Wizard.
43+
44+
3. In the **Dependency Agent 9.9.1 Setup** dialog box, click **I agree** to accept the license agreement.
45+
46+
5. In the **Dependency Agent 9.9.0 Uninstall** dialog box, click **Next**. The status page displays the progress of the uninstall of the previous version.
47+
48+
6. In the **Dependency Agent 9.9.0 Uninstall** dialog box, click **Uninstall** to proceed with uninstalling the previous version from the path specified in the dialog box.
49+
50+
7. In the **Dependency Agent 9.9.0 Uninstall** dialog box, the uninstall progress is shown and when completed, the **Completing Dependency Agent Uninstall** page appears. Click **Finish**.
51+
52+
8. In the **Dependency Agent 9.9.1 Setup** dialog box, the install progress is shown. When the **Completing Dependency Agent Uninstall** page appears, click **Finish**.
53+
54+
### From the command line
55+
56+
1. Sign on to the computer with an account that has administrative rights.
57+
58+
2. Run the following command.
59+
60+
```dos
61+
InstallDependencyAgent-Windows.exe /S /RebootMode=manual
62+
```
63+
64+
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.
65+
66+
3. To confirm the upgrade was successful, check the `install.log` for detailed setup information. The log directory is *%Programfiles%\Microsoft Dependency Agent\logs*.
67+
68+
## Upgrade Linux agent
69+
70+
Upgrade from prior versions of the Dependency agent on Linux is supported and performed following the same command as a new installation.
71+
72+
You can download the latest version of the Windows agent from [here](https://aka.ms/dependencyagentlinux).
73+
74+
1. Sign on to the computer with an account that has administrative rights.
75+
76+
2. Run the following command as root`sh InstallDependencyAgent-Linux64.bin -s`.
77+
78+
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*.
79+
80+
## Next steps
81+
82+
If you want to stop monitoring your VMs for a period of time or remove Azure Monitor for VMs entirely, see [Disable monitoring of your VMs in Azure Monitor for VMs](vminsights-optout.md).

articles/azure-monitor/insights/vminsights-enable-overview.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -153,12 +153,12 @@ The following table lists the Windows and Linux operating systems that Azure Mon
153153

154154
The Map feature in Azure Monitor for VMs gets its data from the Microsoft Dependency agent. The Dependency agent relies on the Log Analytics agent for its connection to Log Analytics. So your system must have the Log Analytics agent installed and configured with the Dependency agent.
155155

156-
Whether you enable Azure Monitor for VMs for a single Azure VM or you use the at-scale deployment method, use the Azure VM Dependency agent extension to install the agent as part of the experience.
156+
Whether you enable Azure Monitor for VMs for a single Azure VM or you use the at-scale deployment method, use the Azure VM Dependency agent extension for [Windows](../../virtual-machines/extensions/agent-dependency-windows.md) or [Linux](../../virtual-machines/extensions/agent-dependency-linux.md) to install the agent as part of the experience.
157157

158158
>[!NOTE]
159159
>The following information described in this section is also applicable to the [Service Map solution](service-map.md).
160160
161-
In a hybrid environment, you can download and install the Dependency agent manually. If your VMs are hosted outside Azure, use an automated deployment method.
161+
In a hybrid environment, you can download and install the Dependency agent manually or using an automated method.
162162

163163
The following table describes the connected sources that the Map feature supports in a hybrid environment.
164164

articles/azure-monitor/toc.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -639,6 +639,8 @@
639639
href: insights/vminsights-workbooks.md
640640
- name: Analyze data with log queries
641641
href: insights/vminsights-log-search.md
642+
- name: Upgrade Dependency agent
643+
href: insights/vminsights-dependency-agent-maintenance.md
642644
- name: Disable monitoring
643645
href: insights/vminsights-optout.md
644646
- name: Capacity and performance solution

0 commit comments

Comments
 (0)