question

pavolorem avatar image
0 Votes"
pavolorem asked Monalla-MSFT commented

I can't delete resource group

Hi Folks,

1 - i tried Powershell

2 - i tried 3 browsers, shutdown and restart system, delete cache, cookies and used Disk Cleanup

3 - i tried manual delete resource in https://resources.azure.com/

Problem is in VM, that doesn't exist

The VirtualMachine resource was not found
Summary
Session ID
8d5830d3b3d54c529e3ae297c5005e10
Resource ID
/subscriptions/XXXXXXXXXXXXXXXXXXXXX1-996b-SSSSSSSSSSSSSSSSSSSSSSSS/resourceGroups/proddmscogs1dewc/providers/Microsoft.Compute/virtualMachines/VM-k57j64nyu4yv647xh8uvnncu.218f280a
Extension
HubsExtension
Content
ResourceMenuBlade
Error code
404
Details
The VirtualMachine resource was not found, it may have been deleted. If this was launched from a pinned tile on the dashboard, it should be removed.Resource ID: /subscriptions/57dc6d3e-3f28-4781-996b-c34de910d781/resourceGroups/proddmscogs1dewc/providers/Microsoft.Compute/virtualMachines/VM-k57j64nyu4yv647xh8uvnncu.218f280a,Status Code: 404,Status Message: Resource group 'proddmscogs1dewc' could not be found.

Failed to delete network interface 'NIC-k57j64nyu4yv647xh8uvnncu'. Error: Network Interface NIC-k57j64nyu4yv647xh8uvnncu is used by existing resource /subscriptions/XXXXXXXXXXXXXXXXXXXXX1-996b-SSSSSSSSSSSSSSSSSSSSSSSS/resourceGroups/proddmscogs1dewc/providers/Microsoft.Compute/virtualMachines/VM-k57j64nyu4yv647xh8uvnncu.218f280a. In order to delete the network interface, it must be dissociated from the resource. To learn more, see aka.ms/deletenic.

I tried everything, that i find, but nothing solve my problem.

Could you help me, please?

Thank you so much

Best regards
Paul

azure-virtual-machines
· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

@pavelorem-1531 - Did the below answer help resolve your issue ? If so, Please "Accept As Answer" so it can be beneficial to the community.

0 Votes 0 ·
stan avatar image
0 Votes"
stan answered

Hi,
Try to delete any sub-resources for the main resource first. There are some resources like vaults, etc where you will need sub-resources like backup items and etc. before you can delete the main resource and thus the resource group.

Please "Accept the answer" if the information helped you. This will help us and others in the community as well.


5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

ManuPhilip avatar image
0 Votes"
ManuPhilip answered

Try to remove the NIC using the following command
Get-AzNetworkInterface | where-object { $.VirtualMachine -eq $null } | ft name
Get-AzNetworkInterface | where-object { $
.VirtualMachine -eq $null } | Remove-AzNetworkInterface -Force

First command should give the network interface name. Second command should delete the interface
If you are able to succeed, you can delete the resource group

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

pavolorem avatar image
0 Votes"
pavolorem answered Monalla-MSFT commented

Hi Guys,

problem was with subnet, that was assign to NIC-k57j64nyu4yv647xh8uvnncu.

I have manually delete subnets, range of adress and then i was able to delete resource groups.

Have a nice day.

Paul

· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Thats great. Thanks for sharing the solution that helped resolve the issue for you. You can accept the answer that you posted so it can be beneficial to the community

0 Votes 0 ·