An Azure service that provides an integrated environment for bot development.
Since the knowledge base answers when tested directly, the index and content are healthy. The failure is likely in the agent-to-knowledge-base connection or authorization. Confirm the agent is connected to the correct knowledge base or toolbox, then save and republish it. For a hosted or published agent, assign its managed identity Search Index Data Reader on the Azure AI Search service; the published agent identity can differ from the project identity. Also verify the search service identity has Cognitive Services User on the Foundry account when the knowledge base uses an LLM.
Enable agent tracing and inspect the failed turn. If there is no knowledge_base_retrieve tool call, strengthen the agent instructions and knowledge-source description, or set the relevant source to alwaysQuery. If the tool call returns 401/403, fix RBAC. If it returns results but the agent still says “not found,” review retrieval instructions, filters, reasoning effort, and answer-generation instructions.