Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Disable Azure Storage Analytics diagnostics with Bicep #10880

Closed
vienleidl opened this issue Jun 2, 2023 · 4 comments
Closed

Disable Azure Storage Analytics diagnostics with Bicep #10880

vienleidl opened this issue Jun 2, 2023 · 4 comments

Comments

@vienleidl
Copy link

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.

@vienleidl vienleidl added the enhancement New feature or request label Jun 2, 2023
@ghost ghost added the Needs: Triage 🔍 label Jun 2, 2023
@alex-frankel
Copy link
Collaborator

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).

@vienleidl
Copy link
Author

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.

@jikuja
Copy link

jikuja commented Jun 18, 2023

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.

@vienleidl
Copy link
Author

I've open another one Azure/bicep-types-az#2321

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Done
Development

No branches or pull requests

3 participants