Clarify that diagnostic settings retention only applies for Storage
See original GitHub issueThe az monitor diagnostic-settings
doc should clarify the retentionPolicy
schema as it’s now only shown in an example, and most importantly it should call out that retention policies can only be used when targeting a Storage account. That example which now shows retention policy furthermore has a --event-hub-rule {eventHubRuleID}
parameter which doesn’t make sense in this case as the diagnostics target is a Storage account, not Event Hub.
Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.
- ID: b9ae3afa-74ff-12e8-a32c-c01240bd37da
- Version Independent ID: 522b7e55-2510-8e51-021a-2fc134fabfbe
- Content: az monitor diagnostic-settings
- Content Source: latest/docs-ref-autogen/monitor/diagnostic-settings.yml
- Service: monitoring-and-diagnostics
- GitHub Login: @rloutlaw
- Microsoft Alias: routlaw
Issue Analytics
- State:
- Created 2 years ago
- Comments:5 (2 by maintainers)
Top Results From Across the Web
Migrate to Azure Storage lifecycle management from ...
The diagnostic settings storage retention feature of Azure Monitor will be retired and retention will no longer be applied to logs sent to ......
Read more >How to retain Azure platform log data in storage account ...
I am trying to create a diagnostic setting for archiving logs to the storage account. But I could see the retention period option...
Read more >Configuring Diagnostic logging and Data retention
Default retention · Firstly, in the Azure portal, from your workspace, select Usage and estimated costs from the left pane. · Secondly, on...
Read more >Cannot add Storage Account in Diagnostic Web App
I have just created a free Azure account and had a web app service created. Then I want to enable Diagnostic settings for...
Read more >Getting started with Microsoft Intune Diagnostics and Log ...
That also means native support for sending the same data to an Azure Event Hub or storing logs in a storage account if...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Thanks @jelledruyts, we will fix it.
Hi @kairu-ms, yes those commands include either
--log
or--metrics
which containdiagnosticSettings
but the schema isn’t mentioned, only examples. I’d say the following actions would be good:--logs
and--metrics
parameters should link to the schema definitions, respectively here and here.--event-hub-rule {eventHubRuleID}
parameter from the example as it doesn’t make sense.Hope that helps!