Unable to delete VNet

zaxosv 20 Reputation points
2023-08-07T13:29:24.2666667+00:00

hello ,

i can't delete my vnet . the problem is that the subnet is in us but i have delete the app service .

thanks

Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
0 comments No comments
{count} votes

Answer accepted by question author
  1. Michael Durkan 12,256 Reputation points MVP
    2023-08-07T14:17:07.44+00:00

    Hi

    this is a known issue on App Service plans, the issue is that a Service Association Link still exists on the subnet - similar question was asked in the thread below and workaround provided:

    https://learn.microsoft.com/en-us/answers/questions/140197/unable-to-delete-vnet-due-to-serviceassociationlin

    Workaround:

    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

    Hope this helps,

    Thanks

    Michael Durkan

    • If the reply was helpful please upvote and/or accept as answer as this helps others in the community with similar questions. Thanks!
    1 person found this answer helpful.

1 additional answer

Sort by: Most helpful
  1. JimmySalian-2011 44,721 Reputation points
    2023-08-07T14:10:06.6333333+00:00

    Hi,

    There might be a dependency that is blocking a deletion process check the troubleshooting guide here and it should help you - https://learn.microsoft.com/en-us/azure/virtual-network/virtual-network-troubleshoot-cannot-delete-vnet

    Hope this helps.

    JS

    ==

    Please accept as answer and do a Thumbs-up to upvote this response if you are satisfied with the community help. Your upvote will be beneficial for the community users facing similar issues.

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.