Open chriswatsonaus opened 9 months ago
@VeryEarly please double check the examples. Thanks
Hi @sameergMS @yairgil , Since when retention is not supported for diagnostic settings and are there any documents I can find the expected behavior? { "code": "BadRequest", "message": "Diagnostic settings does not support retention for new diagnostic settings." }
Hi Yabo,
This feature's deprecation was announced early last year. The first step in 2023 was to prevent any new diagnostic settings created to use the soon to be deprecated retention policy parameter. More details are in this article: https://learn.microsoft.com/en-us/azure/azure-monitor/essentials/migrate-to-azure-storage-lifecycle-policy?tabs=portal
Thanks,
Anirudh
Sent from Outlookhttp://aka.ms/weboutlook
From: Yabo Hu @.> Sent: Monday, December 25, 2023 6:51 PM To: Azure/azure-powershell @.> Cc: Azure Monitor Essential GitHub @.>; Mention @.> Subject: Re: [Azure/azure-powershell] Retention settings used in the examples are deprecated. Examples fail. (Issue #23775)
Hi @sameergMShttps://github.com/sameergMS @yairgilhttps://github.com/yairgil , Since when retention is not supported for diagnostic settings and are there any documents I can find the expected behavior? { "code": "BadRequest", "message": "Diagnostic settings does not support retention for new diagnostic settings." }
— Reply to this email directly, view it on GitHubhttps://github.com/Azure/azure-powershell/issues/23775#issuecomment-1869212808, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AOT65WXQA4R7YTNZRTHHKFLYLI3SPAVCNFSM6AAAAABA2IISDKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNRZGIYTEOBQHA. You are receiving this because you were mentioned.Message ID: @.***>
Type of issue
Outdated article
Feedback
Retention settings used in the examples are deprecated. Examples fail.
Page URL
https://learn.microsoft.com/en-au/powershell/module/az.monitor/new-azdiagnosticsetting?view=azps-11.1.0
Content source URL
https://github.com/Azure/azure-powershell/blob/main/src/Monitor/Monitor/help/New-AzDiagnosticSetting.md
Author
@mikefrobbins
Document Id
88739869-81cb-7178-e0cd-7a1acc9721d4