Forum Discussion

ArjanMensch's avatar
ArjanMensch
Copper Contributor
Oct 03, 2023

Cannot delete invisible Log Analytics Workspace

I have an Azure Subscription that is disabled and I want to remove the subscription entirely.

When I try to delete it from the Azure Portal it tells me I can't, because there's a resource still present.

This resource is not visible by default:

(default view, Show hidden types enabled)

 

I can see the resource using Get-AzResource in the context of the disabled subscription, and I can see it if I switch to Simple view in the portal:


However, I cannot delete it since the resource group that is shown does not exist at all:

 

Any suggestions?

 

Thanks,

 

Arjan

 

  • It does happen whenever resource deletion was not performed correctly. for example, where resources were still being provisioned if we issued delete operations or order of deletion was not performed correctly. see by waiting for a day if it cleans up by itself if not create support ticket to Microsoft.

     

    It happens with me as well, NIC is attached to VM which was already deleted whenever I try to delete NIC , it gives error it already been used. only solution for this kind of issue to raise issue with Microsoft .

     

     

  • govindagoud's avatar
    govindagoud
    Brass Contributor

    It does happen whenever resource deletion was not performed correctly. for example, where resources were still being provisioned if we issued delete operations or order of deletion was not performed correctly. see by waiting for a day if it cleans up by itself if not create support ticket to Microsoft.

     

    It happens with me as well, NIC is attached to VM which was already deleted whenever I try to delete NIC , it gives error it already been used. only solution for this kind of issue to raise issue with Microsoft .

     

     

    • ArjanMensch's avatar
      ArjanMensch
      Copper Contributor

      Yeah figured that was probably going to be my only option.

      The resource (or resource group) deletion happened months ago.
      I had this before in a different sub, which was still enabled. I was able to re-create the missing resource group there and then was able to remove the resource with Remove-AzResource (still not possible using the portal).

      Thanks for taking the time to reply!

    • ArjanMensch's avatar
      ArjanMensch
      Copper Contributor
      Hi Kidd_Ip, thanks for the reply, but like I said in the reply to govindagoud, this was deleted months ago.

Resources