vNet deletion

Briot, Sébastien 0 Reputation points
2024-06-20T15:06:24.0433333+00:00

Hello,

I would like to delete a vNet in a resource group. Everything as been deleted but vNet can't be deleted.

Do you any solution to share ?

Thanks

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,280 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. akinbade abiola 8,295 Reputation points
    2024-06-20T15:10:22.3866667+00:00

    Hello Briot, Sébastien,

    Please perform the steps here: Troubleshooting: Failed to delete a virtual network in Azure

    That should work!

    Regards,

    Abiola

    You can mark it 'Accept Answer' and upvote if this helped.


  2. GitaraniSharma-MSFT 49,356 Reputation points Microsoft Employee
    2024-06-26T09:13:08.5133333+00:00

    Hello @Briot, Sébastien ,

    Welcome to Microsoft Q&A Platform. Thank you for reaching out & hope you are doing well.

    I understand that you would like to delete an Azure Vnet in a resource group, but Vnet cannot be deleted, even when everything within the Vnet has been deleted.

    You already tried all the troubleshooting steps listed in the below document, but it didn't help:

    https://learn.microsoft.com/en-us/azure/virtual-network/virtual-network-troubleshoot-cannot-delete-vnet?source=recommendations

    You are getting the below error when you are using Diagnose and solve problems in the Vnet:

    "We've discovered that resources related to this issue are out-of-sync with Azure Resource Manager. We have now synced them to resolve the issue. No additional actions are required on your part."

    I have seen this error mostly in cases where the virtual network was integrated with a web app in the past, then the web app was deleted without disconnecting the VNet integration.

    Refer: https://learn.microsoft.com/en-us/azure/virtual-network/virtual-network-troubleshoot-cannot-delete-vnet?source=recommendations#check-whether-the-virtual-network-was-used-by-a-web-app-for-vnet-integration

    You could try the workaround listed in the below document, if not tried already:

    https://learn.microsoft.com/en-us/azure/azure-functions/functions-networking-options?tabs=azure-portal#deleting-the-app-service-plan-or-web-app-before-disconnecting-the-vnet-integration

    User's image

    In case you have already tried the above workaround and it failed or you encounter issues while following the above steps or you didn't have a webapp/any Vnet integrated resource or don't remember the resource name, we would need to raise a support request to remove the orphaned link or connection from the backend.

    So, if you have a support plan, I request you file a support ticket, else please do let us know, we will try and help you get a one-time free technical support.

    In case you need help with a one-time free technical support, please reply to the private message with the requested details.

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


    Please don’t forget to "Accept the answer" wherever the information provided helps you, this can be beneficial to other community members.

    0 comments No comments