Sign in to the Azure portal, and then select the virtual machine. In the Help section, select Boot diagnostics, then select the Settings tab. In Boot diagnostics settings, select the boot diagnostics with managed storage account or custom storage account. Save the change.