A fully managed platform in Microsoft Foundry for hosting, scaling, and securing AI agents built with any supported framework or model
Hi Vlad,
Your direct-vs-MCP comparison is useful. Based on the current Microsoft documentation, the MCP configuration itself appears to be the supported integration pattern: the agent connects to the Azure AI Search knowledge base MCP endpoint using a RemoteTool project connection with ProjectManagedIdentity, and the supported MCP tool is knowledge_base_retrieve.
I would therefore focus first on the model configuration that the knowledge base uses during MCP retrieval rather than the Azure AI Search authentication itself.
A few things stand out:
- The MCP endpoint should be the Azure AI Search endpoint in the form
https://<search-service>.search.windows.net/knowledgebases/<kb>/mcp?api-version=2026-05-01-preview.
The project connection should use ProjectManagedIdentity with the https://search.azure.com/ audience, which matches the documented configuration.
Microsoft documents that the knowledge base can use an LLM from Azure OpenAI in Foundry Models for query planning and synthesis.
Microsoft also documents the same knowledge_base_retrieve MCP integration for Foundry Agent Service, so an AIServices-based Foundry project is not documented as inherently unsupported.
Because your direct REST request succeeds while the same KB fails only when invoked through the agent, I would collect the following before changing the project topology:
The complete knowledge base definition, especially its models configuration.
The exact agent model deployment name.
The project resource kind and project endpoint.
The MCP project connection configuration, including authType, audience, and target.
The exact RequestId from a fresh failed invocation.
I would also test the same MCP endpoint independently with an Entra bearer token for Azure AI Search. Microsoft recommends bearer-token authentication for the MCP endpoint, although an admin key is also supported.
One important point: the documentation currently describes the 2026-05-01-preview integration as preview functionality, so a server-side regression or validation change is possible, but I don't see public Microsoft documentation confirming that a July-to-August validation change occurred or that an AIServices parent resource is unsupported.
Given that your model configuration changes produce the same 400 while direct retrieval continues to work, this looks worth escalating to Microsoft with the RequestIds you collected rather than re-platforming the project immediately.
The RequestIds and the direct-vs-MCP reproduction steps you provided should give Microsoft Support enough information to trace where the endpoint validation is occurring.Hi Vlad,
Your direct-vs-MCP comparison is useful. Based on the current Microsoft documentation, the MCP configuration itself appears to be the supported integration pattern: the agent connects to the Azure AI Search knowledge base MCP endpoint using a RemoteTool project connection with ProjectManagedIdentity, and the supported MCP tool is knowledge_base_retrieve.
I would therefore focus first on the model configuration that the knowledge base uses during MCP retrieval rather than the Azure AI Search authentication itself.
A few things stand out:
The MCP endpoint should be the Azure AI Search endpoint in the form https://<search-service>.search.windows.net/knowledgebases/<kb>/mcp?api-version=2026-05-01-preview.
The project connection should use ProjectManagedIdentity with the https://search.azure.com/ audience, which matches the documented configuration.
Microsoft documents that the knowledge base can use an LLM from Azure OpenAI in Foundry Models for query planning and synthesis.
Microsoft also documents the same knowledge_base_retrieve MCP integration for Foundry Agent Service, so an AIServices-based Foundry project is not documented as inherently unsupported.
Because your direct REST request succeeds while the same KB fails only when invoked through the agent, I would collect the following before changing the project topology:
The complete knowledge base definition, especially its models configuration.
The exact agent model deployment name.
The project resource kind and project endpoint.
The MCP project connection configuration, including authType, audience, and target.
The exact RequestId from a fresh failed invocation.
I would also test the same MCP endpoint independently with an Entra bearer token for Azure AI Search. Microsoft recommends bearer-token authentication for the MCP endpoint, although an admin key is also supported.
One important point: the documentation currently describes the 2026-05-01-preview integration as preview functionality, so a server-side regression or validation change is possible, but I don't see public Microsoft documentation confirming that a July-to-August validation change occurred or that an AIServices parent resource is unsupported.
Given that your model configuration changes produce the same 400 while direct retrieval continues to work, this looks worth escalating to Microsoft with the RequestIds you collected rather than re-platforming the project immediately.
The RequestIds and the direct-vs-MCP reproduction steps you provided should give Microsoft Support enough information to trace where the endpoint validation is occurring.