Share via

cannot delete subnet

muffin 21 Reputation points
2022-01-18T15:05:13.87+00:00

When i am trying to delete the subnet from my RG i am getting this error
Failed to delete subnet 'app_subnet'. Error: Subnet app_subnet is in use.

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

Answer accepted by question author

Taz 9,366 Reputation points MVP Volunteer Moderator
2022-01-18T15:08:04.307+00:00

Hello!

You can try the below mentioned 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

Additionally you can also create a ticket to Azure Support via "Help & Support" to get it deleted.

Regards,
Tasadduq Burney

__

|- Please don't forget to "Upvote" and "Accept as answer" if the reply is helpful -|

Was this answer helpful?

1 person found this answer helpful.
0 comments No comments

0 additional answers

Sort by: Most helpful

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.