i have an azure disk that i can't delete because it says it is managed by a vm that nolonger exists.
The VirtualMachine resource was not found
i have an azure disk that i can't delete because it says it is managed by a vm that nolonger exists.
The VirtualMachine resource was not found
@AaronVenson-1322 Can you share the screenshot of the error message? When exactly are you getting this error message? How are you trying to delete?
Please try the following steps and let me know the results. Follow this document to find and delete unattached Azure managed and unmanaged disks
https://docs.microsoft.com/en-us/azure/virtual-machines/windows/find-unattached-disks
When you delete a virtual machine (VM) in Azure, by default, any disks that are attached to the VM aren't deleted. This feature helps to prevent data loss due to the unintentional deletion of VMs. After a VM is deleted, you will continue to pay for unattached disks. This article above shows you how to find and delete any unattached disks and reduce unnecessary costs.
You may also refer to the suggestions mentioned in the blog
Hope this helps!
Kindly let us know if the above helps or you need further assistance on this issue.
Please don’t forget to "Accept the answer” and “up-vote” wherever the information provided helps you, this can be beneficial to other community members.
I tried this KB a few weeks ago and it didn't help. I will try it again and send any output.
I get the following errors when I try to delete the RG or the managed disk.
PS C:\Users\Aaron-Kelly Venson> Remove-AzResourceGroup -Name sevtech-core
Confirm
Are you sure you want to remove resource group 'sevtech-core'
[Y] Yes [N] No [S] Suspend [?] Help (default is "Y"): Y
Remove-AzResourceGroup : Long running operation failed with status 'Conflict'.
StatusCode: 409
ReasonPhrase: Conflict
OperationID :
At line:1 char:1
+ Remove-AzResourceGroup -Name sevtech-core
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : CloseError: (:) [Remove-AzResourceGroup], ResourceManagerCloudException
+ FullyQualifiedErrorId : Microsoft.Azure.Commands.Resources.RemoveAzureResourceGroupCmdlet
PS C:\Users\Aaron-Kelly Venson> **Remove-AzDisk -ResourceGroupName "sevtech-core" -DiskName ad-connect_disk1_5120bc2c876a46668018ef01f275ac9**5
Remove-AzDisk operation
This cmdlet will remove the specified resource. Do you want to continue?
[Y] Yes [N] No [S] Suspend [?] Help (default is "Y"): Y
Remove-AzDisk : Disk ad-connect_disk1_5120bc2c876a46668018ef01f275ac95 is attached to VM /subscriptions/b954ad57-d840-4
b20-a147-fad9e5a9d4e9/resourceGroups/sevtech-core/providers/Microsoft.Compute/virtualMachines/ad-connect.
ErrorCode: OperationNotAllowed
ErrorMessage: Disk ad-connect_disk1_5120bc2c876a46668018ef01f275ac95 is attached to VM /subscriptions/b954ad57-d840-4b2
0-a147-fad9e5a9d4e9/resourceGroups/sevtech-core/providers/Microsoft.Compute/virtualMachines/ad-connect.
ErrorTarget:
StatusCode: 409
ReasonPhrase: Conflict
OperationID : f39bbf61-a3c3-4377-9f56-641fca21f112
At line:1 char:1
+ Remove-AzDisk -ResourceGroupName "sevtech-core" -DiskName ad-connect_ ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : CloseError: (:) [Remove-AzDisk], ComputeCloudException
+ FullyQualifiedErrorId : Microsoft.Azure.Commands.Compute.Automation.RemoveAzureRmDisk
@AaronVenson-1322 Apologies for the delay in responding here! Are there some resources in the group? If so, what are they? Please check it in the portal, choose the Show hidden types option, then share the screenshot here.
You may try deleting the Resource Group from the https://resources.azure.com/, and see if helps. Refer Azure Resource Explorer for more details.
The error “Conflict’, typically occurs when you are requesting an operation that is not permitted in the resource's current state.
If the issue still persists, I would like to work closer on this issue, Could you please reach to me via AZCommunity[AT]microsoft.com with a link to this Issue as well as your subscription ID and the resource group name, please mention "ATTN subm" in the subject field.
Hope this helps!
Kindly let us know if the above helps or you need further assistance on this issue.
Please don’t forget t*o "Accept the answer”* and “up-vote” wherever the information provided helps you, this can be beneficial to other community members.

from powershell...
{
"error": {
"code": "NicInUse",
"message": "Network Interface /subscriptions/832bfdcb-d1eb-4b35-b72e-6a278b551e65/resourceGroups/risorse_pt/providers/Microsoft.Network/networkInterfaces/proiettipt1817 is used by existing resource /subscriptions/832bfdcb-d1eb-4b35-b72e-6a278b551e65/resourceGroups/risorse_pt/providers/Microsoft.Compute/virtualMachines/proiettipt1. In order to delete the network interface, it must be dissociated from the resource. To learn more, see aka.ms/deletenic.",
"details": []
}
}
this from resources.azure.com
the nic has the same problem of the disk...
the vm proiettipt1 no longer exists, it has been deleted...
4 people are following this question.