View and stream log files from your azlin VMs without SSH-ing in manually.
azlin logs my-vmShows the last 100 lines of /var/log/syslog (the default log type).
azlin logs my-vm --followStreams syslog continuously until you press Ctrl+C. Useful for watching deployments or debugging live issues.
azlin logs my-vm --type cloud-init # Provisioning output
azlin logs my-vm --type auth # SSH logins, sudo events
azlin logs my-vm --type azlin # Azlin agent activityazlin logs my-vm --lines 20 # Last 20 lines
azlin logs my-vm --type auth -n 500 # Last 500 auth log linesazlin logs my-vm --type allThis shows the last 100 lines from each of the four log files: syslog, cloud-init, auth, and azlin.
Tip: Avoid combining
--type allwith--follow. Streaming four files simultaneously produces interleaved output that is hard to read. Instead, target the specific log type you need when using--follow.
azlin logs my-new-vm --type cloud-init --lines 200Cloud-init logs contain the full output of VM provisioning, including tool installation and configuration. Check here first when a newly created VM isn't behaving as expected.
azlin logs my-vm --type syslog --rg production-rg- Logs Command Reference — Full flag and option details
- CLI Command Reference — All CLI flags and defaults
- Troubleshoot Connection Issues — When logs won't load