Migrate from diagnostic settings storage retention to Azure Storage lifecycle management

SHARMA, SHUBHAM 0 Reputation points
2025-08-06T07:29:04.4133333+00:00

What will be the risk and impact if we Migrate from diagnostic settings storage retention to Azure Storage lifecycle management

And from where we can see our logs if we migrate to Azure Storage lifecycle management

Azure Storage
Azure Storage
Globally unique resources that provide access to data management services and serve as the parent namespace for the services.
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Alex Burlachenko 13,330 Reputation points Volunteer Moderator
    2025-08-06T09:58:36.31+00:00

    SHARMA, SHUBHAM hi, great question, and yes, migrating from diagnostic settings retention to azure storage lifecycle management can be a smart move ))

    first, the risk is minimal if u set it up right. the main thing? u might accidentally delete logs too early if u mess up the lifecycle rules. but hey, that's why u test them first )) check the official docs https://docs.microsoft.com/en-us/azure/storage/blobs/lifecycle-management-overview

    impact? oh, it's mostly positive )) u save money because azure automatically handles old logs instead of u paying for storage u don't need. plus, u get more control over how long u keep stuff.

    now, where do u see the logs after migrating? same place as before! they stay in the storage account u chose. the only difference is how long they stick around. azure lifecycle management just cleans up based on your rules. u can still query them with tools like log analytics or azure monitor if u set that up how to check logs in storage https://docs.microsoft.com/en-us/azure/azure-monitor/logs/private-storage

    if u use archive tier for older logs, u might save even more cash. just remember, retrieving archived logs takes longer. worth looking into if u don't need instant access to everything.

    this might help in other tools too... lifecycle management isn't just for logs. u can use it for any blob storage, like backups or old files u rarely touch.

    one last thing ) test the rules in a non prod environment first. trust me, u don't wanna accidentally nuke important logs in production.

    hope this helps )

    Alex

    and "yes" if you would follow me at Q&A - personaly thx.
    P.S. If my answer help to you, please Accept my answer
    

    https://ctrlaltdel.blog/

    0 comments No comments

  2. Pranitha Maddi 5 Reputation points Microsoft External Staff Moderator
    2025-08-06T11:11:50.2333333+00:00

    Hi SHARMA, SHUBHAM,

    Thanks for posting question in Q&A portal.

    Additional to Alex Burlachenko response i just want to add few points

    Where to Check Logs After Migration:

    • Logs will continue to be stored in the same Azure Storage account you were using before.

    • To view or manage them:

    • Go to your Storage Account in the Azure portal.
    • Navigate to Containers (typically named like insights-logs-<category>).
    • Use Azure Storage Explorer or the portal to browse and access logs.

    To manage retention-

    • Go to Data Management > Lifecycle Management in the Storage Account.
    • Here you can view, edit, or create lifecycle rules that define how long logs are retained and when they are deleted or moved to archive.

    For more details on how to configure and use Azure Storage Lifecycle Management, refer to

    https://learn.microsoft.com/en-us/azure/azure-monitor/platform/migrate-to-azure-storage-lifecycle-policy?tabs=portal

    And following up to check whether the response provided by Alex Burlachenko is helpful if yes, please accept the answer and upvote it will help others in the community.

    Please feel to post your questions here. I am happy to assist you!

    Thanks,

    Pranitha


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.