Web App (Windows): Unable to delete orphaned App Service plan — Deletion fails with HTTP 409

AnthonyNguyen-3653 0 Reputation points
2026-10-02T16:00:29.41+00:00

Problem description

I am trying to delete an App Service plan named 'SouthCentralUSPlan' in the resource group 'fulfillment'. However, the deletion attempt results in an HTTP 409 error, indicating a conflict. The plan still shows a Function App named 'gap-fulfillment' attached, even though direct lookups for that app return a 'ResourceNotFound' error. I have exhausted all possible methods to delete the resource, and I believe Microsoft support needs to delete it in the backend as it no longer exists.

Environment

Azure Web App (Windows) in the region not specified in the case information.

What I've already tried

I reviewed the available case details and diagnostic information. I have attempted to delete the App Service plan through the Azure portal and Azure CLI, but the deletion fails with an HTTP 409 conflict. I also confirmed that the associated Function App 'gap-fulfillment' no longer exists when directly looked up, indicating a possible stale state or backend inconsistency.

Current status

I am seeking assistance to have Microsoft support delete the orphaned App Service plan from the backend, as all standard deletion methods have been unsuccessful and the resource appears to be in a conflicted state.

Azure App Service
Azure App Service

Azure App Service is a service used to create and deploy scalable, mission-critical web apps.


1 answer

Sort by: Most helpful
  1. SHOUMIK CHAKRAVARTY 1,230 Reputation points
    2026-10-14T17:27:20.0933333+00:00

    There are a couple of simple checks you can run to see whether the backend is truly inconsistent or if the portal is just showing stale data.

    1. Ask the plan what it thinks is attached. From App Service Plans - List Web Apps: https://learn.microsoft.com/en-us/rest/api/appservice/app-service-plans/list-web-apps

    GET https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/fulfillment/providers/Microsoft.Web/serverfarms/SouthCentralUSPlan/sites?api-version=2026-07-15
    

    If this returns the App gap-fulfillment but a direct GET on the site returns ResourceNotFound, then the resources really are out of sync. If it comes back empty, the 409 is coming from something else and the Apps blade is simply stale.

    2. Check for soft-deleted apps. az webapp deleted list (preview): https://learn.microsoft.com/en-us/cli/azure/webapp/deleted

    A direct lookup doesn’t surface soft-deleted apps, so ResourceNotFound only tells you the app isn’t live, not that nothing is still attached to the plan.

    If the first call does return it, that contradiction is what’s worth putting in the case rather than “deletion fails”. Include the ARM request with its api-version, the response body listing gap-fulfillment, and the 409 from the plan delete with its x-ms-correlation-request-id.

    If you post what those two calls return, it’ll be clear which of the two situations you’re in. I’m a community volunteer rather than Microsoft support, so I can’t see anything service-side or clear the backend myself.

    Help make this community better for everyone: if this answer resolved your issue, please accept it or leave an upvote. If not, share more details so we can continue the discussion.

    Was this answer 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.