Cannot delete resorces in resource group and resource group

Mikolaj Pawelec 0 Reputation points
2023-01-27T16:22:29.6533333+00:00

Hi,

About 3 days ago i wanted to test something with virtual machines. So i went up and started configuring a VM trough azure portal. After couple of minutes virtual machine, public IP, NSG, VNET and network interface was created. I tried to connect to the VM but the following error has appeared

error2

So i went back to the resource group in wich the virtual machine was created but i realised that there is no virtual disk

error1

However when i went back to a virtual machine and opened disk tab. I could see that there was a disk

error3

However when i tried to locate that disk using powershell cmdlets it turned out that such disk doesn't exist. Oddly enough network interface got assigned to the virtual machine.

MicrosoftTeams-image

So i thought, ok something must went wrong . I will force delete the virtual machine trough azure portal and the following error appeared

MicrosoftTeams-image

I tought well ok i will try to do the same using Remove-AZVm and it also returned the error

error5

Then I tried to force delete resource group trough portal. Not only that it took more than an hour to finish but it also didn't work.

Usuwanie_RG

So i went up and tried to delete the resource group using Remove-AzResourceGroup. No luck it also didn't work and took ages to trow an error

error4

I also created new resource group and a new virtual machine because i thought that maybe the problem was in the resource group and same thing happened. I was getting same errors when trying to delete resources and resource group exept this time only the virtual machine remained (see below).

MicrosoftTeams-image2

The most interesting thing is that right after I created new resource group with a storage account in it and I could delete the storage account and resource group without any problems.

Has anyone encounter the same issue? What else could i try to do?

Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
8,333 questions
Azure Virtual Network
Azure Virtual Network
An Azure networking service that is used to provision private networks and optionally to connect to on-premises datacenters.
2,625 questions
{count} votes

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.