Delete VM with all associated resources
Deleting a VM is a lot of click work. I have to manually delete the associated Network interface, Network security group, Public IP address. And then, from the associated storage account, I have to drill down into the VHD container in the right Blob to delete the associated .vhd and .status files.
Also, I have to do it in the right order, because there are dependencies between the various objects. If not, it fails, and I get a big fat pink error.
Also, the overview list does not refresh after the 'success' notification is posted, so I sit there guessing which of the resources I already deleted and which I didn't.
It all feels boring, not fun and tedious!
This is on the roadmap. We want to carefully design this to make sure data is not deleted accidentally.
A critical capability to have indeed.
Amit Bhardwaj commented
How long will it take to implement this? This option should be available ASAP. Give your users the flexibility to choose what they want to do with their resources.
Hi! What is the status on this please?
Tons of extra work, suggest additional confirmations for deletions of each associated components in the specific order, if you want it deleted you have to check the box for each component
Can we at least hide the resources that we deleted? I just tried to delete all my environment, besides the network configs and they are all still there.
I was trying to clean this up. But now it's all screwed up with items that don't even exist?
Tim Smith commented
Still waiting on this! How ridiculous! Add an "Are You Sure?" prompt and move on. This issue has gone on long enough.
i prefer to script something and delete my resources after the fact: safety net i guess for me: but if the option is available: check boxes: i wouldn't mind at all :)
Hi there, is there an update on this feature? This is a highly requested item and it's making us re-think of virtual deployments in Azure and just sticking with PaaS.
Dave Friedel commented
How many votes must occur for this to be done? good grief.
Lars Panzerbjrn commented
How is this still not an option?
Even if you have to check a ticky box and tye in "Yes, I Am Bloody Sure" into a text box to prevent accidental deletion, this is ridiculous...
Call me suspicious but there's two possible reasons I can see: accidental deletions wouldn't preclude you from reattaching the VHD and NIC to a new VM, keeping the key pieces available. The other reason is because the more orphan files the more you're paying for things you don't need. VM-sprawl if you will is in their business interest.
That being said, if the first reason is true, you can at least leave it in a recycle bin for a while (perhaps you do) and then purge it for good (but of course not charge for this fail-safe storage.
It speaks for itself, that the Azure Support Team send me a link to this page!
Creating a VM is done in 2 Minutes. To delete all the created associated **** after removing a VM takes ages. Why not offer a list with checkboxes of all associated resources, when I delete a VM?
Joe Marchionna commented
Agree completely, way too much work deleting objects
I agree with other here . . .
"As Tom Callahan wrote over a year ago, "Please provide an option to delete all associated objects related to the Virtual Machine as the default, which can be disabled if need be. More often than not I would guess people want to delete all objects associated, instead of having to go item by item."
The current situation is ridiculous"
I've created a quick shell script with CLI that deletes a vm and dependencies except data disks (by design, but can be added). https://github.com/riedwaab/delvm/blob/master/delvm.sh
I want to deploy identical 100 Virtual Machines using Terraform. I can not create 100 resource groups. I want a way such that I can delete a Virtual Machine and it will take care of deleting all the associated resources for that particular virtual machine. Something like "delete on terminate" for all the associated resources (i.e. storage account, IP address, nsg etc) for the single VM I am deleting.
very troublesome if we delete VM need manually choose and delete related component.
stella gord commented
Azure portal team (Admin, Microsoft Azure) responded · Jul 20, 2015
What up with this :
Hi, Joost. Thanks for the feedback. We can definitely look into offering a way to delete multiple resources at the same time. For the time being, if you organize your related resources into resource groups, you can delete the entire resource group with a few clicks, which should help.
David Sanftenberg commented
Microsoft is very short on the polish side of things. You guys need to concentrate on the UX of the infra you're creating, take the entire lifecycle into account. It's kind of ridiculous that we need to write custom powershell scripts just to make sure VMs aren't leaving orphaned disks and nics lying around when we delete them.
Also i would say before deleting the VM, there was a confirmation to type the resource name for deleting. In the same screen they can list the associated resources and keep the check box to select and delete those as well. It helps.