|
| 1 | +--- |
| 2 | +title: Can't Install or Uninstall the Agent on a Virtual Machine |
| 3 | +description: Resolve problems with installing or uninstalling the New Relic agent on a virtual machine. |
| 4 | +author: shijojoy |
| 5 | +ms.author: jarrettr |
| 6 | +ms.reviewer: v-ryanberg |
| 7 | +ms.service: partner-services |
| 8 | +ms.topic: troubleshooting-problem-resolution |
| 9 | +ms.custom: New Relic troubleshooting |
| 10 | +ms.date: 09/18/2025 |
| 11 | +ai-usage: ai-assisted |
| 12 | + |
| 13 | +#customer intent: As an Azure administrator or user, I want to resolve problems with installing or uninstalling the New Relic agent on virtual machines. |
| 14 | + |
| 15 | +--- |
| 16 | + |
| 17 | +# Can't install or uninstall the agent on a virtual machine |
| 18 | + |
| 19 | +This article explains how to resolve problems with installing or uninstalling the New Relic agent on a virtual machine (VM). Specifically, it describes what to do if you select VMs and the **Install Extension** or **Uninstall Extension** button is unavailable. |
| 20 | + |
| 21 | +## Prerequisites |
| 22 | + |
| 23 | +- An Azure account with permissions to manage VM extensions (Contributor or Owner on the subscription or resource group, or a role with explicit extension management permissions). |
| 24 | +- The target VMs must be visible in the Azure portal on the **Virtual machines** page. |
| 25 | + |
| 26 | +## Symptoms |
| 27 | + |
| 28 | +- On the **Virtual Machines** page of the New Relic resource, the **Install Extension** button is unavailable (dimmed) after you select one or more VMs. |
| 29 | +- On the **Virtual Machines** page of the New Relic resource, the **Uninstall Extension** button is unavailable (dimmed) after you select one or more VMs. |
| 30 | + |
| 31 | +## Cause |
| 32 | + |
| 33 | +The portal enables the **Install Extension** or **Uninstall Extension** button only when the entire selection of VMs matches the required state for that action: |
| 34 | + |
| 35 | +- **Install Extension** is enabled only when none of the selected VMs has the New Relic agent installed. |
| 36 | +- **Uninstall Extension** is enabled only when every selected VM already has the New Relic agent installed. |
| 37 | + |
| 38 | +The Azure portal displays the agent/extension state in the **Agent status** column: |
| 39 | + |
| 40 | +- VMs on which the New Relic agent is installed show **Running** or **Shutdown**. |
| 41 | +- VMs on which the New Relic agent isn't installed show **Not Installed**. |
| 42 | + |
| 43 | +If your selection includes VMs in different states (some that have the agent and some that don't), neither **Install Extension** nor **Uninstall Extension** will be enabled. |
| 44 | + |
| 45 | +## Solution |
| 46 | + |
| 47 | +1. In the Azure portal, go to the **Virtual Machines** page of the New Relic resource. |
| 48 | +1. To install the New Relic agent: |
| 49 | + 1. Select only VMs that show an **Agent status** of **Not Installed**. |
| 50 | + 1. Deselect any VMs that show a status of **Running** or **Shutdown**. (These VMs already have the agent.) |
| 51 | + 1. Confirm that the **Install Extension** button is active and then proceed. |
| 52 | +1. To uninstall the New Relic agent: |
| 53 | + 1. Select only VMs that show an **Agent status** of **Running** or **Shutdown**. (These VMs have the agent installed.) |
| 54 | + 1. Deselect any VMs that show a status of **Not Installed**. |
| 55 | + 1. Confirm that the **Uninstall Extension** button is active and then proceed. |
| 56 | + |
| 57 | +## Related content |
| 58 | + |
| 59 | +- [Manage extensions on Azure virtual machines](/azure/virtual-machines/extensions/overview) |
| 60 | +- [Troubleshoot VM Agent issues](../../virtual-machines/windows/windows-azure-guest-agent.md) |
| 61 | +- [Introduction to the Azure Native New Relic Service](https://docs.newrelic.com/docs/infrastructure/microsoft-azure-integrations/get-started/azure-native/) |
| 62 | + |
| 63 | +[!INCLUDE [azure-help-support](~/includes/azure-help-support.md)] |
| 64 | + |
| 65 | +[!INCLUDE [Third-party contact disclaimer](~/includes/third-party-contact-disclaimer.md)] |
0 commit comments