Reputation: 1280
Our Azure DevOps implementation deploys both an ARM template and runs several powershell scripts to fully deploy our solution. Currently it is modifying the Azure storage logging and metric properties using the Azure Powershell commands Set-AzureStorageServiceMetricsProperty and Set-AzureStorageServiceLoggingProperty.
While it is perfectly acceptable to continue using these commands, we're considering adding the equivalent JSON to our ARM template. Is this possible? If so, is this documented anywhere? I've looked through the Azure resource manager template reference, but that doesn't seem to have what I need. Any pointers or even example JSON is appreciated.
Upvotes: 0
Views: 122
Reputation: 72151
Yes, that is possible. Here's the article talking about that:
https://github.com/MicrosoftDocs/azure-docs/blob/master/articles/monitoring-and-diagnostics/monitoring-enable-diagnostic-logs-using-template.md#non-compute-resource-template
ARM Json couldnt change without notice (well, no one would warn YOU personally, but they have breaking changes EXTREMELY RARELY, my 3 year old arm templates still work). So there nohting to fear, really.
Upvotes: 1