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

 

 

Â