409 error when deleting a AI Foundry deployment

Dafydd Jones 0 Reputation points
2026-06-29T08:13:37.3+00:00

Im getting this error when I try to delete a AI foundry deployment in the Foundry portal
ErrorRequest failed with status code 409
I've tried in the new look portal and the old, and have tried over several days.

Foundry Models
Foundry Models

A catalog of AI models in Microsoft Foundry that you can discover, compare, and deploy using Azure’s built‑in tools for evaluation, fine‑tuning, and inference


4 answers

Sort by: Most helpful
  1. Dafydd Jones 0 Reputation points
    2026-07-01T13:39:57.9+00:00

    Thanks for all the brilliant advice, the cli command helped me pinpoint the issue. We had a resource lock on the Resource Group to block anything within the resource group being deleted. I removed that, deleted the deployment and then added the resource lock back in.

    Was this answer helpful?

    0 comments No comments

  2. Dafydd Jones 0 Reputation points
    2026-07-01T13:39:25.4233333+00:00

    Thanks for all the brilliant advice, the cli command helped me pinpoint the issue. We had a resource lock on the Resource Group to block anything within the resource group being deleted. I removed that, deleted the deployment and then added the resource lock back in.

    Was this answer helpful?

    0 comments No comments

  3. Enterprise 365 Consultant 0 Reputation points
    2026-06-29T12:48:29.13+00:00

    Hi Dafydd,

    A 409 (Conflict) error when deleting an AI Foundry deployment typically indicates that the deployment is still referenced by another resource or has an active operation in progress, preventing its deletion.

    I recommend verifying that the deployment is not associated with any active endpoint, project, or application consuming the model. Also, check whether any provisioning, update, or deployment operation is still running, as these must complete before the resource can be removed.

    If the deployment appears idle but the 409 error persists across both the new and classic AI Foundry portals for several days, this may indicate a backend service state issue rather than a portal problem. In that case, try deleting the deployment using the Azure CLI or REST API. If the same conflict occurs, it's likely a service-side issue and a Microsoft support request will be required to clear the stale deployment state.

    Thanks,
    Enterprise 365 Consultant

    Was this answer helpful?

    0 comments No comments

  4. Alex Burlachenko 23,170 Reputation points MVP Volunteer Moderator
    2026-06-29T11:30:20.1866667+00:00

    hi Dafydd Jones & thx for sharing urs issue here at Q&A portal,

    409 usually means the deployment is still referenced or locked by another operation.

    In Foundry, check if the deployment is used by a project, agent, evaluation, prompt flow, endpoint, or app connection. If anything still points to it, delete/remove that reference first, then retry the deployment delete.

    I’d also try deleting it from Azure CLI/ARM to see the fuller error, bc the portal often hides the useful part

    az cognitiveservices account deployment delete \

    --resource-group <rg> \

    --name <account-name> \

    --deployment-name <deployment-name>

    https://learn.microsoft.com/en-us/azure/ai-foundry/how-to/create-model-deployments

    If CLI also returns 409, grab the correlation ID from Activity Log and open a Foundry support case. Since it has failed for several days, it may be a stuck backend deployment state, not a normal temporary conflict.

    rgds,

    Alex

    &

    If my answer was helpful pls mark it and additional thx if u follow me at Q&A portal

    and at my blog https://ctrlaltdel.blog/

    Was this answer helpful?

    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.