How do I find all diagnostic settings that archive logs to storage accounts?

William Hvidtfelt Padkær Nielsen 25 Reputation points Microsoft Employee
2024-08-27T08:24:17.78+00:00

Earlier today, I received an auto-generated email that "The diagnostic settings retention feature will be retired on 30 September 2025"

I would like to follow the migration guide (here: https://learn.microsoft.com/en-us/azure/azure-monitor/essentials/migrate-to-azure-storage-lifecycle-policy?tabs=portal), but that guide assumes that you already know which diagnostic setting needs migration. I have ~150 diagnostic settings in my subscription, and most of them send logs to a Log Analytics Workspace. How can I find the few ones that archive logs to a storage account without the very tedious process of manually going through all the diagnostic settings?

Azure Monitor
Azure Monitor
An Azure service that is used to collect, analyze, and act on telemetry data from Azure and on-premises environments.
3,254 questions
0 comments No comments
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.