Azure Virtual Machine Boot Diagnostics

This little feature has assisted me many times!

Azure Virtual Machine boot diagnostics gives you a log view and screenshot of your Virtual Machine (VM) from the hypervisor level.

VM not accessible? This feature may just help you!

Checking this feature can confirm if your VM is having issues stopping you from connecting successfully.

Enabling the boot diagnostics setting

Select the VM you want to have it enabled for and select Boot Diagnostics

Select settings and change status to ON -> select Storage Account or create a new one as below

Save, can take 10 minutes for screenshots and log output to appear in your Storage Account

Windows output

Serial Log

<?xml version="1.0"?>
<os-product>Windows Server 2016 Datacenter</os-product>
                                                                                                                                                                Computer is booting, SAC started and initialized.                                                                                                               Use the "ch -?" command for information about using channels.                   Use the "?" command for general help.    


Linux Output

Serial Log

[15109.556802] cloud-init[827]: Cloud-init v. 19.4-33-gbb4131a2-0ubuntu1~18.04.1 running 'init-local' at Fri, 06 Mar 2020 14:16:19 +0000. Up 22.90 seconds.
[  OK  ] Started Initial cloud-init job (pre-networking).
[  OK  ] Reached target Network (Pre).
         Starting Network Service...
[  OK  ] Started Network Service.
         Starting Network Name Resolution...
         Starting Wait for Network to be Configured...
[  OK  ] Started Network Name Resolution.
[  OK  ] Reached target Network.
[  OK  ] Reached target Host and Network Name Lookups.
[  OK  ] Started Wait for Network to be Configured.
         Starting Initial cloud-init job (metadata service crawler)...
[15111.632460] cloud-init[1026]: Cloud-init v. 19.4-33-gbb4131a2-0ubuntu1~18.04.1 running 'init' at Fri, 06 Mar 2020 18:27:48 +0000. Up 15111.31 seconds.
[15111.648217] cloud-init[1026]: ci-info: ++++++++++++++++++++++++++++++++++++++Net device info+++++++++++++++++++++++++++++++++++++++
[15111.656728] cloud-init[1026]: ci-info: +--------+------+-----------------------------+---------------+--------+-------------------+


A cool simple feature I recommend you enabling on your VM estate, very handy to begin troubleshooting for those non-responsive VMs!

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

%d bloggers like this: