Azure Linux VM Agent (waagent)
Intro
My notes on this provisioning agent used in Linux machines
Â
Documentation
Â
Â
Tips and Tidbits
The information flow from the platform to the agent occurs via two channels:
A boot-time attached DVD for IaaS deployments. This DVD includes an OVF-compliant configuration file that includes all provisioning information other than the actual SSH keypairs.
A TCP endpoint exposing a REST API used to obtain deployment and topology configuration.
Â
Commands
Â
Deprovision the virtual machine using the Azure Linux Agent commandÂ
sudo waagent -deprovision+user
.
Â
azureuser@app-server:~$ sudo waagent -deprovision+user
WARNING! The waagent service will be stopped.
WARNING! Cached DHCP leases will be deleted.
WARNING! root password will be disabled. You will not be able to login as root.
WARNING! /etc/resolvconf/resolv.conf.d/tail and /etc/resolvconf/resolv.conf.d/original will be deleted.
WARNING! azureuser account and entire home directory will be deleted.
Do you want to proceed (y/n)y
Â
Â
Â