Share via

AI Foundry started erroring connecting to AI Search

Brandon Gilbert 0 Reputation points
2026-06-12T18:43:24.06+00:00

Starting on the 10th we started getting errors with our Agent trying to use AI Search. We have a knowledge base with the AI search configured. This was working prior to the 10th.
We get the following error: ErrorFailed to fetch access token. Status: BadRequest. Details: "ARA request failed with status BadRequest"

I am able to get it to work temporarily in the playground by removing the knowledge base, saving, adding the knowledge base back and saving. However, when I reload the agent, it gives the same error again.

This happening across multiple agents. Other agents not using the AI search are working.

We have also noticed since the 10th we are not able to create new agents.
An error occurred while processing your request. You can retry your request, or contact us if the error persists. Please include the request ID d6c5cf920cf9437f901cf9b1d1359ef2 in your message.

Azure OpenAI in Foundry Models
0 comments No comments

2 answers

Sort by: Most helpful
  1. Brandon Gilbert 0 Reputation points
    2026-06-12T18:51:46.66+00:00

    We did not change permissions on our connection. I will try making a new one

    Was this answer helpful?


  2. AI answer

    2026-06-12T18:43:42.6466667+00:00

    The symptoms indicate an authorization/connection issue between Foundry Agent Service and Azure AI Search that started recently and affects all agents using AI Search.

    Based on the documented troubleshooting patterns, the following checks and mitigations apply:

    1. Validate AI Search connection authentication
      • If using keyless (Microsoft Entra managed identity) authentication from Foundry to Azure AI Search, confirm that the Foundry project’s managed identity still has the required roles on the search service:
        • Search Index Data Contributor
        • Search Service Contributor
      • If using key-based authentication, confirm that the API key configured in the project connection is still valid and enabled on the Azure AI Search resource.
    2. Recreate the project connection to Azure AI Search
      • A broken or stale connection definition can cause repeated token/ARA failures.
      • Recreate the project connection to the Azure AI Search resource using the supported mechanism for Foundry projects (not the legacy ML workspace tooling):
        • Use az cognitiveservices account project connection create or the azure-mgmt-cognitiveservices SDK, ensuring the endpoint and index name are correct and point to the intended search service and index.
    3. Confirm endpoint, index, and network configuration
      • Verify the connection configuration:
        • Endpoint is the correct Azure AI Search service URL that actually hosts the index.
        • Index name exactly matches the index in Azure AI Search (case-sensitive).
      • If the Azure AI Search resource is on a private virtual network and the connection uses key-based authentication, switch the connection to Microsoft Entra project managed identity (keyless). Key-based auth is not supported with private networking for agents and can surface as connection/ARA failures.
    4. Check for authorization failures from the Foundry side
      • For 401/403 or related authorization issues when Foundry connects to a knowledge base backed by Azure AI Search:
        • Ensure the project’s managed identity has at least Search Index Data Reader on the search service (and Data Contributor if writing to indexes).
        • Ensure the user or service principal creating or updating the project connection has permissions on the Microsoft Foundry resource and project.
        • Confirm the environment is signed in to the correct tenant and subscription when using keyless auth.
    5. Validate that the agent is correctly configured to ground on the knowledge base
      • After fixing the connection, confirm the agent configuration still includes the knowledge base tool and that instructions require using it for grounding. If the agent temporarily works after removing/re-adding the knowledge base, but fails again after reload, this strongly suggests the persisted connection object is invalid or missing permissions; recreating the connection at the project level and reattaching it to the agent is required.
    6. For the inability to create new agents
      • The same underlying Foundry resource or project-level permission/connection issue can block both new agent creation and AI Search access.
      • Verify that the principal creating agents has the necessary permissions on the Microsoft Foundry resource and project, and that there are no outstanding authorization failures from Azure Resource Manager when creating or deleting project connections.

    If, after verifying roles, keys, endpoints, and recreating the AI Search project connection, the ARA BadRequest persists across multiple agents and environments, capture the failing request ID and open a support ticket so the platform team can inspect the ARA/Foundry backend logs.


    References:

    AI-generated content may be incorrect. Read our transparency notes for more information.

    Was this answer helpful?

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.