delete resource error foundry

Greg G 0 Reputation points
2025-12-21T19:38:57.91+00:00

I cannot delete a resource I created in Foundry. I've been able to successfully delete every other resource I've created in Foundry with the exception of this one I'm trying to delete. The Copilot Troubleshooter says to delete any private endpoints within the resource I'm trying to delete. There are no private endpoints within the resource. There are no special permissions on the resource that would prevent my ID from being able to delete it. I'm simply trying to execute the Microsoft Learn modules and I'm stuck because I cannot delete this resource and I'm getting an error stating that I do not have enough quote to create another resource unless I delete another resource. This resource I'm attempting to delete is the only resource I have.

Please help.

Azure AI services
Azure AI services
A group of Azure services, SDKs, and APIs designed to make apps more intelligent, engaging, and discoverable.
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Gowtham CP 7,245 Reputation points Volunteer Moderator
    2025-12-23T06:43:58.9233333+00:00

    Hi Greg G ,

    This usually happens when the Foundry resource still has dependent components attached in the backend, even if no private endpoints are visible in the portal.

    In Azure AI Foundry, a resource cannot be deleted if any of the following still exist:

    An associated AI Project

    A Foundry agent, deployment, or model connection

    A linked Azure OpenAI / Azure AI Services resource

    A resource in a soft-deleted state that is still within the retention window

    These dependencies don’t always appear directly under the Foundry resource blade, but they will still block deletion.

    What you can do

    Go to Azure AI Foundry → Projects
    Delete all projects associated with the resource.

    In the Azure Portal, open the related Azure AI Services / Azure OpenAI resource
    Make sure there are no remaining agents, deployments, or connections.

    Check for soft-deleted resources
    Some AI resources cannot be recreated or fully deleted until the retention period expires.

    If deletion still fails, open an Azure Support ticket
    This is the only supported way to remove a stuck or orphaned Foundry resource and unblock your quota.

    This behavior is expected — Azure prevents deletion when dependent resources still exist, even if they are not shown in the Foundry UI.

    References
    Azure AI Foundry resource lifecycle
    https://learn.microsoft.com/azure/ai-foundry/overview

    Delete Azure AI resources and dependencies
    https://learn.microsoft.com/azure/ai-services/manage-resources

    Azure resource deletion troubleshooting
    https://learn.microsoft.com/azure/azure-resource-manager/troubleshooting/resource-manager-delete

    I hope this helps.
    If the answer is useful, please accept it to close the thread.

    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.