Cannot delete Azure resources from the portal

Francisco Leong 26 Reputation points
2021-11-22T06:49:12.447+00:00

Hello, I was testing with Azure DevLabs. I created one VM and after testing, I decided to delete the virtual machine and cancel the subscription. I deleted the Storage and a bunch of resources, with two resources remaining that cannot be deleted. The first one is the virtual machine itself and another one is the DevLabs that contains this virtual machine. I cannot cancel the subscription without deleting these two resources.

Whenever I try to delete the virtual machine, it spins for some time and finally returned this error:
151317-image.png

I tried numerous time, without success. Can anyone give me hints on how to delete it? It seems to be orphaned. There are no resources associated with this virtual machine.

Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
9,013 questions
Azure Lab Services
Azure Lab Services
An Azure service that is used to set up labs for classrooms, trials, development and testing, and other scenarios.
308 questions
{count} votes

Accepted answer
  1. Ronen Ariely 15,206 Reputation points
    2021-11-22T07:22:29.4+00:00

    Good day Francisco < @Francisco Leong >

    (1) You should have more information in the notification. You can try again and when you get the error then click on it to get the full information. Usually it will say that there is dependency in another object (unfortunately is does not always say which)

    I decided to delete the virtual machine and cancel the subscription.

    (2) If you cancel the subscription then you probably do not need to clean anything. You can always open a free billing support ticket in this case and ask the support to remove since you cancel the subscription - this is related to billing issue if you cancel the sub

    (3) If you want to remove everything anyway, then instead of removing service after service which might result which this issue if your do not remove the services in the right order (since there are dependencies in other services), then simply remove the entire resource groups

    Removing the resource group with all the content should work (assuming all the related services created in the same RG)


0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.