Virtual Network unable to remove/delete Connected devices

Mitch Abel 5 Reputation points
2025-04-12T03:17:20.36+00:00

I have added a waf_v2 application gateway which had some errors. Redeploying the App Gateway says the subnet is now in use by other resources.

Looking at connected devices there are the following which I believe are managed by Microsoft.

I am unable to delete these resources, any options to remove them?

How do we prevent this from happening again?

Screenshot 2025-04-12 151628

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,709 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Venkat V 1,390 Reputation points Microsoft External Staff
    2025-04-15T07:35:03.85+00:00

    Hi @Mitch Abel,

    Is there no way to detach these resources?

    As there is no way to detach or delete a resource stuck in the Provisioning state, only the support team can access and remove such resources.

    If the subnet remains locked even after deleting the application gateway and waiting, check the subnet status using the cmdlet below. It will display the current state. If the resource has failed in the 'Provisioning' state, only the support team can delete it.

    az network vnet subnet show -g MyResourceGroup -n MySubnet --vnet-name MyVNet  
    
    az resource show
    

    Reference: az resource show

    To prevent this from happening again, ensure that resources are properly managed and cleaned up after deployments. Always check for any dependencies or connected devices before deleting a resource to avoid such conflicts.

    I hope this helps to resolve your issue. Please feel free to ask any questions if the solution provided isn't helpful.


    If this answer helped you, please don’t forget to upvote and mark it as accepted to help others in the community.

    0 comments No comments

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.