Need help creating an automation task to delete VM disk snapshots older than 60 days in Azure

Jason Myrick 0 Reputation points
2024-05-03T14:28:01.7133333+00:00

Our organization has an issue with people creating snapshots for VMs on an ad-hoc basis. Sometimes, they do not remove the snapshot after it is no longer needed. I need to create some sort of automation that scans the entire subscription and deletes snapshots that are 60 days old or older. These snapshots are manually done and don't follow any sort of naming convention and are also over multiple resource groups.

Azure Automation
Azure Automation
An Azure service that is used to automate, configure, and install updates across hybrid environments.
1,188 questions
0 comments No comments
{count} votes