Does Snapshots under backup items will also charge even though vm is deleted ?

GVS 146 Reputation points
2020-06-20T14:29:42.08+00:00

Does Snapshots under backup items will also charge even though vm is deleted ? if yes, how to delete when i highlight on snapshot under backup items delete backup doesn't highlighted . please let me know is that good pratice to delete vm without deleting back snapshot or first have to delete back snapshot and then delete vm which would't cost

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

2 additional answers

Sort by: Most helpful
  1. Manu Philip 16,991 Reputation points MVP
    2020-06-20T16:22:20.16+00:00

    Hello,
    Snapshots should be deleted separately. Snapshots and storage disks exists even though VM deletion is processed.

    I suggest you to adopt the script I have here in my blog
    http://cloudcompute.info/delete-azure-vm-and-all-associated-resources-using-powershell-script/

    This script is capable of deleting all VM resources too (I didn't cover snapshot in the script. But you can add it also). While starting the script, it prompts you for the VM name. Rest of the resources deletion is automatic

    If you need to automate snapshot removal too, add the following cmdlets just before the line $null = $vm | Remove-AzVM -Force

    $Snapshotname= Get-VMSnapshot -VMName $VMName
    Get-VM $VMName | Remove-VMSnapshot -Name $Snapshotname

    Please mark as "Accept the answer" if the above steps helps you. Others with similar issues can also follow the solution as per your suggestion

    Regards,

    Manu

    0 comments No comments

  2. GVS 146 Reputation points
    2020-06-22T05:50:39.517+00:00

    Many Thanks . Really appreciated. keep going

    0 comments No comments