Hi AzureisMyCareer-5423 , this should help answer your question.
Follow these steps to delete a snapshot.
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
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
Hi AzureisMyCareer-5423 , this should help answer your question.
Follow these steps to delete a snapshot.
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
Many Thanks . Really appreciated. keep going