Closed vienleidl closed 1 month ago
I'm not sure I understand the ask. Are you saying this is not possible via bicep today? If so, I'd recommend opening a support case (and we will move this issue to the azure/bicep-types-az
repo).
I'm not sure I understand the ask. Are you saying this is not possible via bicep today? If so, I'd recommend opening a support case (and we will move this issue to the
azure/bicep-types-az
repo).
Yes. It's not possible to turn off the diagnostic settings (classic) of a Storage Account via Bicep as of now.
Only hourly metrics are enabled by default and classic storage metrics is going to be retired soon:
On August 31, 2023 Storage Analytics metrics, also referred to as classic metrics will be retired.
It's not possible to turn off the diagnostic settings (classic) of a Storage Account via Bicep as of now.
True. AFAIK Classic storage diagnostics are on storage account data layer only: https://learn.microsoft.com/en-us/rest/api/storageservices/enabling-and-configuring-storage-analytics.
I've open another one https://github.com/Azure/bicep-types-az/issues/2321
Is your feature request related to a problem? Please describe. Diagnostics are enabled by default on new storage accounts created from the Azure portal, PowerShell and Azure Bicep. In the diagnostic settings (classic) blade, hour metrics are always enabled for blob, file, table & queue services.
Describe the solution you'd like It would be better if we can turn diagnostics on or off by using Azure Bicep.