Websoft9Archive / role_os

useful tools for OS image, e.g GNOME
Other
0 stars 1 forks source link

uninstall waagent of Azure's VHD #21

Closed chendelin1982 closed 3 years ago

chendelin1982 commented 3 years ago

The current solution can't disable waagent, refer to official docs Disable or remove the Linux Agent from VMs and images

chendelin1982 commented 3 years ago

Solution


# redhat family
yum -y remove WALinuxAgent
rm -f /etc/waagent.conf.rpmsave
rm -rf /var/lib/waagent
rm -f /var/log/waagent.log

# debian family
apt -y purge walinuxagent
rm -rf /var/lib/waagent
rm -f /var/log/waagent.log
``
qiaofeng1227 commented 3 years ago

close