Exporting diagnostic settings in ARM templates

As part of a recent project, I needed to export an ARM template out of some resources already in the Azure Portal.

While testing it became apparent that there were no diagnostic settings in my template, even though they’re present in Azure Portal.

I spent some time testing various things in the template and reading the posts of strangers with the same problem. Looks like the consensus is that this simply doesn’t work at this stage.

No matter what you do, the “Export template” option in Azure Portal will not include any diagnostic settings. Instead we’re left to refer to the ARM template documentation to write it ourselves.

As an aside, this is far from the first problem I’ve had with exporting ARM templates, and I sometimes wonder if writing them from scratch might be faster than troubleshooting exported templates that don’t fully work.

Published
Categorised as Azure

Leave a comment

Your email address will not be published. Required fields are marked *