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 still coming. The work is being completed now and we will be able to expose it in a few months.
We need this feature. The cost of maintaining orphaned resources is significant. We understand that some resources may be shared with other VM's. A list showing these dependencies and the option to choose (or not) would be a valuable feature.
Also, provide a list of orphaned resources left behind from previous clean-ups.
A must have feature. please expedite.
how tf does this take 4 years to implement
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.