Share via

Azure AI Foundry UI is unable to fetch knowledgebases in Azure AI Foundry

Dhanaji More 1 Reputation point Microsoft Employee
2026-04-10T00:03:55.1666667+00:00

Getting this error message in the UI.

Error loading knowledge basesFailed to fetch knowledge bases for connection mycontososearchxnpcrk.

Note - I have granted Search Index Data Reader, Search index data contributor and Search Service contributor to foundry project managed identitiy as well as to managed identity of foundry resource itself.

Still no success. Any ideas what I am missing here ?

Azure AI Search
Azure AI Search

An Azure search service with built-in artificial intelligence capabilities that enrich information to help identify and explore relevant content at scale.


1 answer

Sort by: Most helpful
  1. Anshika Varshney 9,900 Reputation points Microsoft External Staff Moderator
    2026-04-10T09:19:51.2+00:00

    Hi @Dhanaji More,

    The Error loading knowledge bases Failed to fetch knowledge bases for connection usually means Azure AI Foundry is not able to connect properly with the Azure AI Search service which is used behind the knowledge base.

    Below are a few things you can check.

    First, please make sure that your Foundry Project Managed Identity has the required access on the Azure AI Search resource.

    As per Microsoft documentation, the managed identity should have:

    Search Service Contributor role to create and manage the knowledge base Search Index Data Reader role to run queries on the knowledge base [learn.microsoft.com]

    Next, please verify that the knowledge base actually exists inside your Azure AI Search service and has not been renamed or removed. If the semantic configuration or index name changes, Foundry may not be able to retrieve it correctly.

    Also check the network settings on your Azure AI Search resource.

    If the Search service is configured with private endpoint or selected networks only, then Foundry may not be able to reach it unless proper DNS and firewall rules are configured. This can silently cause retrieval failures even when role assignments look correct.

    In addition, please confirm that:

    The Azure AI Search service is in Basic tier or higher if you are using managed identity access.

    Finally, revalidate the connection from the Knowledge tab inside your Foundry project to ensure the correct Search service is linked. Sometimes RBAC or credential changes can cause the agent to skip the search tool due to connectivity or authentication issues.

    Hope this helps. Let us know if the issue still continues after checking the above.

    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.