Cleaning up all resources

prasad cg 1 Reputation point

I would like to cleanup my resources, especially a VNET which I'm unable to delete . It gives some weird error response. There is no resource inside it. Failed to delete virtual network 'vnet1'. Error: Subnet dbserver is in use by vnet1/dbserver/AppServiceLink and cannot be deleted. In order to delete the subnet, delete all the resources within the subnet. See That is the error Also, unable to delete a recovery service vault. 14 days of soft delete period is long over and there is no other component left in the vault. While trying to delete the vault it just goes on for more than 15 mins and no result. NO error too. Kindly help

Azure Key Vault
Azure Key Vault
An Azure service that is used to manage and protect cryptographic keys and other secrets used by cloud apps and services.
1,150 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,204 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Vaibhav Chaudhari 38,651 Reputation points

  2. GitaraniSharma-MSFT 48,016 Reputation points Microsoft Employee

    Hello @prasad cg ,

    Welcome to Microsoft Q&A Platform. Thanks for posting your query.

    For Vnet deletion due to subnet linked to App service error, please follow below steps:

    1. Create App Service Plan with the same name as the deleted one
    2. Create App Service with the same name as the deleted one
    3. Link App Service with the VNET subnet
    4. Disconnect VNet from App Service -> Networking -> VNet integration -> Disconnect
    5. Delete subnet

    Please refer :

    For Recovery service vault deletion issue, please refer the steps mentioned in the below doc:

    In case, you still face any issue, I would recommend you to file a support ticket, if you have a support plan, else please do let us know, we will try and help you get a one-time free technical support.

    Kindly let us know if the above helps or you need further assistance on this issue.


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

    0 comments No comments