Azure boot diagnostics
Boot diagnostics is a debugging feature for Azure virtual machines (VM) that allows diagnosis of VM boot failures. Boot diagnostics enables a user to observe the state of their VM as it is booting up by collecting serial log information and screenshots.
Boot Diagnostics Storage Account
When creating a VM in Azure portal, Boot Diagnostics is enabled by default. The recommended Boot Diagnostics experience is to use a managed storage account, as it yields significant performance improvements in the time to create an Azure VM. This is because an Azure managed storage account will be used, removing the time it takes to create a new user storage account to store the boot diagnostics data.
An alternative Boot Diagnostics experience is to use a user managed storage account. A user can either create a new storage account or use an existing one.
Azure customers will not be charged for the storage costs associated with boot diagnostics using a managed storage account through October 2020.
The boot diagnostics data blobs (which comprise of logs and snapshot images) are stored in a managed storage account. Customers will be charged only on used GiBs by the blobs, not on the disk's provisioned size. The snapshot meters will be used for billing of the managed storage account. Because the managed accounts are created on either Standard LRS or Standard ZRS, customers will be charged at $0.05/GB per month for the size of their diagnostic data blobs only. For more information on this pricing, see Managed disks pricing. Customers will see this charge tied to their VM resource URI.
Boot diagnostics view
Located in the virtual machine blade, the boot diagnostics option is under the Support and Troubleshooting section in the Azure portal. Selecting boot diagnostics will display a screenshot and serial log information. The serial log contains kernel messaging and the screenshot is a snapshot of your VMs current state. Based on if the VM is running Windows or Linux determines what the expected screenshot would look like. For Windows, users will see a desktop background and for Linux, users will see a login prompt.
- Boot diagnostics is only available for Azure Resource Manager VMs.
- Boot diagnostics does not support premium storage accounts, if a premium storage account is used for boot diagnostics users will receive an
StorageAccountTypeNotSupportederror when starting the VM.
- Managed storage accounts are supported in Resource Manager API version "2020-06-01" and later.
- Azure Serial Console is currently incompatible with a managed storage account for Boot Diagnostics. Learn more about Azure Serial Console.
- Boot diagnostics using a manage storage account can currently only be applied through the Azure portal.