We've got a bunch of App Services that have AutoScale-settings attached to them. They've got Diagnostic-Settings enabled in order to forward autoScaleActions and Evaluation Events to Log Analytics and a Storage Account. What I'd like to do is create Policy to check these settings in order to detect configuration drift (for example that it has to be sent to a specific Storage Account).
I've done something similar for http logging for Web Apps by creating the following rule:
"existenceCondition": {
"allOf": [
{
"field": "Microsoft.Web/sites/config/logs.httpLogs.azureBlobStorage.sasUrl",
"exists": "True"
},
{
"field": "Microsoft.Web/sites/config/logs.httpLogs.azureBlobStorage.sasUrl",
"like": "[concat(parameters('StorageAccountURL'),'*')]"
}
]
}
However I'm having trouble finding the correct field for the diagnostic settings of the AutoScale. I know that AutoScale is part of Microsoft.Insights and not Microsoft.Web/ServerFarms but Resource Explorer doesn't show me anything related to Diagnostics Settings under Microsoft.Insights/AutoScaleSettings.
Any idea's or am I looking at it the wrong way?