Share via

Agent Framework Foundry Agent error in deploying to Azure durable function - agent not found

Jaydev 16 Reputation points
2026-04-09T06:19:54.0866667+00:00

As part of MS Agent Framework, on registering a FoundryAgent with a name and version number in a local Python durable function app in VS Code using Azure Function Tools, I get the error on invoking the orchestration trigger with get_agent passing the registered agent name that "Could not find agent with name and version number". Firstly is FoundryAgent supported in Azure Durable function app and if so, why am i getting this error. Thanks

Azure Functions
Azure Functions

An Azure service that provides an event-driven serverless compute platform.


1 answer

Sort by: Most helpful
  1. Anshika Varshney 9,740 Reputation points Microsoft External Staff Moderator
    2026-04-09T06:56:48.69+00:00

    Hi Jaydev,

    If you are seeing an error while deploying an agent in Azure AI Foundry using the Agent Framework, this usually happens due to configuration or resource setup issues rather than a platform problem.

    Here are a few common things you can check.

    First, confirm that your Foundry project and agent service are in a supported region. Agent deployment depends on both the project region and the model region. If the selected model or agent capability is not supported in that region, the deployment may fail.

    Second, check the model deployment used by the agent. Agents need an active and healthy model deployment to function. If the selected model is not deployed, failed earlier, or still provisioning, the agent deployment will not complete successfully.

    Third, verify identity and permissions. Agent Framework uses managed identity to access resources like model deployments or tools. If the required permissions are not assigned to the project identity, the agent may fail during deployment.

    Fourth, confirm tool or resource configuration. If your agent uses tools such as Azure AI Search or storage connections, make sure those resources are properly linked and accessible from the Foundry project. Incorrect or missing connections can block deployment.

    Fifth, check quota and deployment limits. Some agent related models or capabilities require available quota. If quota is zero or already fully used, the agent deployment may fail even if access is approved.

    To narrow down the issue, you can also try deploying a basic agent without tools first. If that works, then the issue may be related to tool configuration rather than the agent setup itself.

    Official references that may help.

    Model deployment in Azure AI Foundry https://learn.microsoft.com/azure/ai-studio/how-to/deploy-models

    Authentication for Azure AI services https://learn.microsoft.com/azure/ai-services/authentication

    In most cases, once the project region, model deployment, identity permissions, and tool connections are aligned, the agent deployment works as expected.

    Hope this helps, and feel free to share what you observe after checking these points.

    Thankyou!

    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.