WAAGENT(1)
π» WAAGENT(1) β Azure Linux VM Agent π»
okay so bestie, this is the man page for waagent(1) from the System Administration section, and honestly? she's iconic. she's the Azure Linux VM Agent and she's about to become your new hyperfixation π
β¨ SYNOPSIS β¨
waagent [-verbose] [-force] [-help] [SUBCOMMAND]...
πΈ DESCRIPTION πΈ
The Azure Linux Agent (waagent) manages virtual machine interaction with the Azure fabric controller. like, she's literally the main character of your VM's relationship with Azure, no cap π
Okay so real talk: most subcommands are not meant to be run directly by the user. But some of them are genuinely useful for debugging β think collect-logs, version, and show-configuration β plus deprovisioning. those are the ones you actually get to touch, bestie π«Ά
π¦ SUBCOMMANDS π¦
-collect-logsβ Runs the log collector utility that collects relevant agent logs for debugging and stores them in the agent folder on disk. The exact location will be shown when run. Want more? Use flag-fullfor a more exhaustive log collection π-configuration-path FILEβ Used together with-startor-daemonto specify the configuration file. Defaults to/etc/waagent.confβ¨-daemon-startβ Runwaagentas a daemon in the background. set it and forget it energy π-deprovisionβ Attempt to clean the system and make it suitable for re-provisioning. β οΈ WARNING: deprovision does not guarantee that the image is cleared of all sensitive information and suitable for redistribution. like please read that twice, bestie, this one is serious π-deprovision+userβ Same as-deprovision, but also removes the last provisioned user account. bye-bye user, slay π«‘-register-serviceβ Registerwaagentas a service and enable it.-run-exthandlersβ Run check for updates towaagentand extension handler. Heads up: outputs to/dev/consolewill be temporarily suspended π-setup-firewall=IPβ Set up firewall rules for endpoint IP.-show-configurationβ Print the current configuration, including values read fromwaagent.conf.-helpβ Display usage information.-versionβ Show the current version of the agent. iykyk, always good to know β¨
π CONFIGURATION π
The agent is configured via this file by default:
/etc/waagent.conf
This file contains key=value settings that control agent behavior, including provisioning, disk formatting, resource limits, and certificate handling π
Example entries:
Provisioning.Enabled=y ResourceDisk.Format=y
ResourceDisk.MountPoint=/mnt/resource RSA.KeyLength=2048
Logs.Verbose=y
π FILES AND DIRECTORIES π
/etc/waagent.confβ Main configuration file. the blueprint, the vibe blueprint π/var/lib/waagentβ State files and provisioning artifacts./var/log/waagent.logβ Agent log file. when things go sideways, this is where the receipts live π₯
π SERVICES π
On systemd systems, the agent runs as:
systemctl start <waagent.service|walinuxagent.service> systemctl
enable <waagent.service|walinuxagent.service>
like literally just start it and enable it, periodt π
π EXIT STATUS π
Zero on success, non-zero on error. simple as that, bestie β¨
β EXAMPLES β
Deprovision before capturing an image:
waagent -deprovision+user && rm -rf /var/lib/waagent && shutdown
-h now
she ate that. clean slate energy π
π§ SEE ALSO π§
π HOMEPAGE π
https://github.com/Azure/WALinuxAgent
https://learn.microsoft.com/en-us/azure/virtual-
machines/extensions/agent-linux
π COPYRIGHT π
Copyright 2018 Microsoft Corporation
πΈ AUTHORS πΈ
Microsoft Azure Linux Team
and that's the whole page, bestie π«Ά this one's from Azure Linux Agent, dated June 2025, straight out of the WAAGENT(1) era β go be amazing with her π
β¨π
π¦ where this page comes from
- centos-stream 10: WALinuxAgent 2.14.0.1-3.el10 Β· Apache-2.0
- centos-stream 9: WALinuxAgent 2.14.0.1-4.el9 Β· ASL 2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms