title: How to delete Azure Managed Disk snapshots older than 7 days using Powershell?
body: <p>How to delete Azure Managed Disk snapshots older than 7 days using Powershell?</p>
  
  <p>We take daily automated snapshots of the Managed Disks. The snapshots are named as: ['AppDisk_snapshot_AM' + "_" + (Get-Date -Format "yyyy-MM-dd")]</p>
  
  <p>Snaphoshots are stored on "/subscriptions/[subscription ID]/resourceGroups/[Resource Group Name]/providers/Microsoft.Compute/snapshots"</p>
  
  <p>I would like to know how can I delete these snapshots that are older than 7 days and keep the newest. Thank you.</p>