Automating Disk Cleanup in Azure Using PowerShell, Azure Resource Graph and LastOwnershipUpdateTime Managing resources in Azure efficiently is crucial for cost optimization and operational efficiency. Recently, a new property, LastOwnershipUpdateTime, was introduced for Azure disks, which helps track the last state change of a disk. In this blog, we'll explore how to automate the cleanup of unattached disks older than 60 days using PowerShell and Azure Resource Graph queries.
Is this you? As a journalist, you can create a free Muck Rack account to customize your profile, list your contact preferences, and upload a portfolio of your best work.
Claim your profile
Get in touch with Werner
Contact Werner, search articles and posts on X, monitor coverage, and track replies from one place.
Learn more about Muck Rack