Azure VM snapshot using powershell

santosh llc 41 Reputation points

I would like to automate the creating VM's snapshots and deleting snapshots for multiple VM's on one go. is it possible to achieve this using PowerShell or azure cli?

Azure Backup
Azure Backup
An Azure backup service that provides built-in management at scale.
1,163 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Leon Laude 85,701 Reputation points

    Hi @santosh llc ,

    Yes this is doable for example with Azure PowerShell or Azure CLI, please refer to the official documentations below for achieving this with Azure PowerShell:

    Back up Azure VMs

    Soft delete for Azure Backup - Permanently deleting soft deleted backup items

    Here's also a great blog post on automating Azure VM backups with Azure PowerShell:
    Automate Backup For Azure VMs using PowerShell for Azure Backup


    If the reply was helpful please don't forget to upvote and/or accept as answer, thank you!

    Best regards,

    0 comments No comments