Clean AMA Linux November 26, 2025 by admin
Still to be verified
1) Uninisntall agent
2) Remove from data colector Rule
3)On system:
sudo systemctl stop azuremonitoragent
sudo yum remove azuremonitor-agent -y
sudo yum remove azuremonitor -y
sudo rm -rf /var/opt/microsoft/azuremonitoragent
sudo rm -rf /etc/opt/microsoft/azuremonitoragent
sudo rm -rf /var/log/azuremonitor
sudo rm -rf /opt/microsoft/azuremonitoragent
sudo rm -rf /var/lib/waagent/AzureMonitorLinuxAgent
sudo rm -rf /var/lib/waagent/AzureMonitorAgent
4) check if still proxy is present
tail -f /var/opt/microsoft/azuremonitoragent/log/mdsd.info
Remove proxy from
cat /etc/default/azuremonitoragent ==> there is a proxy here?!?!?!?! WHY?!!
!!! It could reappear if it is actually imported from somewhere
Some other data:
AZMON_AGENT_HOME=/opt/microsoft/azuremonitoragent
AZMON_AGENT_LOG=/var/opt/microsoft/azuremonitoragent/log
AZMON_AGENT_CONFIG=/etc/opt/microsoft/azuremonitoragent/config