Unable to delete azure monitoring agent from the VM

Ram Kumar Cheekoti 141 Reputation points
2023-08-30T13:57:19.25+00:00

Dear Team,

I am unable to delete the Azure Monitoring Agent from the VMM. I was trying to delete it from VM Extensions section; it looks like it got deleted, but after some time, it will get re-recreated automatically due to data collection rules. Please help provide the steps to remove it permanently. Thank you!

Azure Monitor
Azure Monitor
An Azure service that is used to collect, analyze, and act on telemetry data from Azure and on-premises environments.
2,787 questions
0 comments No comments
{count} votes

Accepted answer
  1. Tech-Hyd-1989 5,741 Reputation points
    2023-08-31T15:21:49.2433333+00:00

    Hi Ram Kumar Cheekoti

    To remove the Azure Monitoring Agent from a virtual machine permanently, you will need to follow these steps:

    In the Azure portal, go to the virtual machine that has the Azure Monitoring Agent installed.

    Click on "Extensions" in the left-hand menu.

    Select the "Azure Monitor Agent" extension and click on "Uninstall".

    In the confirmation dialog, click "Yes" to confirm that you want to uninstall the extension.

    Wait for the extension to be uninstalled. This may take a few minutes.

    Once the extension has been uninstalled, go to the "Data Collection Rules" section in the Azure portal.

    Find the data collection rule that is associated with the virtual machine and click on it.

    In the data collection rule settings, find the virtual machine that you want to remove and click on "Remove".

    In the confirmation dialog, click "Yes" to confirm that you want to remove the virtual machine from the data collection rule.

    Wait for the changes to be applied. This may take a few minutes.

    Once the virtual machine has been removed from the data collection rule, the Azure Monitoring Agent should no longer be reinstalled automatically.

    Note that removing the Azure Monitoring Agent from a virtual machine will also remove any monitoring data that has been collected for that virtual machine. If you want to keep the monitoring data, you should export it before removing the agent.

    If this response has answered your query, please 'Accept as Answer' and Upvote using "Thumbs-up" to Was this answer helpful?

    0 comments No comments

0 additional answers

Sort by: Most helpful