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.

Categorised as Azure