Hello @Kalaimani Thirupathi - Thanks for reaching out.
In order to delete the selected snapshot of more than 30days, below is the script :
> Get-AzSnapshot |
> Where-Object TimeCreated -lt (Get-Date).AddDays(-30).ToUniversalTime() |
> Remove-AzSnapshot
Try running the command without Remove-AzSnapshot first to confirm what will be deleted is accurate.
Hope this helps.
If the above response helped, Please "Accept as Answer" and Upvote the same so it can beneficial to the community.