Adding Azure Boot Diagnostics

Adding Azure Boot Diagnostics

Several weeks ago, I blogged about boot diagnostics and how they can help you troubleshoot issues when virtual machines won’t start. But what if you selected to disable the boot diagnostics when the virtual machine was created? Can you go back and retroactively add them back?

Yes, Virginia, yes you can. There is indeed a Santa Clause. It’s pretty simple to do.

Open the Azure portal, locate the virtual machine in question, and go to Boot Diagnostics.

  1. Make sure that the Status is set to “On
  2. Select a storage account to use or select “Create new”. If you have a specific storage account that you use for diagnostics for all of your resources, you can use that, however, I would just recommend creating a new storage account.
  3. You’ll need to give the storage account a globally unique name for the endpoint. Here you can see I’ve given mine the name of “vpndiagXXXXXX” since this particular machine is used for VPN services when I travel.
  4. Like many things in Azure, you can select an appropriate level of redundancy for your needs. If boot diagnostics are very critical to your environment, I would change the replication to geo-redundant storage (GRS). This would ensure that the logs are geo-replicated to another region for resiliency.

 

Adding Azure Boot Diagnostics

 

Once you are done configuring the storage account, just simply click “Save” at the top left.
 
Adding Azure Boot Diagnostics

Summary

Boot diagnostics are your friend and are useful in determining the status of your Azure Virtual Machine. If for some reason you didn’t enable this during creation, it’s simple to add back to the configuration.


Denny Cherry & Associates Consulting
Expert Consultants From HA to DR to up-time to SQL virtualization to scalability.