question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Clarify that diagnostic settings retention only applies for Storage

See original GitHub issue

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

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
kairu-mscommented, Mar 7, 2022

Thanks @jelledruyts, we will fix it.

0reactions
jelledruytscommented, Mar 7, 2022

Hi @kairu-ms, yes those commands include either --log or --metrics which contain diagnosticSettings but the schema isn’t mentioned, only examples. I’d say the following actions would be good:

  • Under the Optional parameters header, the --logs and --metrics parameters should link to the schema definitions, respectively here and here.
  • That API doc has the RetentionPolicy schema defined, but it should mention that retention only applies when the target is a storage account. Perhaps that doc is owned by a different team, but if that’s the case then I’m not sure how to approach them to ask for this clarification?
  • Ideally, the CLI doc we’re talking about here would also note the fact that retention only applies when the target is a storage account to avoid customer confusion.
  • The CLI doc should remove the --event-hub-rule {eventHubRuleID} parameter from the example as it doesn’t make sense.

Hope that helps!

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found