Daniel's Tech Blog

Cloud Computing, Cloud Native & Kubernetes

Azure IaaS ARM Template – Enable Boot Diagnostics per Default

One great thing Microsoft had introduced last year to the Azure platform was the boot diagnostics capability. Looking at an ARM template you can add the following lines to the VM definition to activate the boot diagnostics for your VM per default.

"diagnosticsProfile": {
    "bootDiagnostics": {
        "enabled": "true",
        "storageUri": "[concat('http://',parameters('newStorageAccountName'),'.', parameters('blobStorageEndpoint'))]"

Have a look at the following screenshots which parameters I am using and where to place the diagnosticsProfile section in the VM definition.


After a successful deployment you should see the boot diagnostics information in the Azure Portal.




WordPress Cookie Notice by Real Cookie Banner