|
| 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). |
0 commit comments