A fully managed platform in Microsoft Foundry for hosting, scaling, and securing AI agents built with any supported framework or model
Hello @Manivannan M
Based on Microsoft's current Foundry documentation, hosted agents can expose A2A endpoints. Hosted agents support A2A v1.0 (GA) and v0.3 (preview), provided the A2A protocol is declared in the hosted agent version configuration. (Microsoft Learn)
The outbound A2A pattern for Foundry Agent Service is for an agent to connect to a remote A2A endpoint using the A2A tool. Therefore, first verify that each target Hosted agent was deployed with the A2A protocol explicitly enabled, rather than only Responses/Invocations, and that you are targeting its A2A endpoint:
{project_endpoint}/agents/{name}/endpoint/protocols/a2a
Hosted-agent endpoints are active depending on the protocols declared in the agent version definition.
One important distinction: Microsoft's separate documentation for enabling incoming A2A on a Foundry agent currently lists a deployed prompt agent as the prerequisite for that specific configuration path.
So there appears to be an important distinction between the Prompt-agent A2A configuration flow and the newer Hosted-agent protocol endpoint.
I cannot find verified Microsoft documentation explaining error -32099 HOSTED_AGENT_NOT_SUPPORTED or stating that Hosted → Hosted A2A is intentionally unsupported. Given that the current Hosted-agent documentation explicitly exposes an A2A endpoint, do not treat that error alone as confirmation of an architectural limitation.
If the target Hosted agents already have A2A enabled and direct invocation of their /protocols/a2a endpoints succeeds, but RemoteA2A/A2AToolboxTool still returns HOSTED_AGENT_NOT_SUPPORTED, I recommend escalating this to Microsoft with the source/target agent versions, protocol configuration, request/correlation ID, and the exact -32099 response.
For an alternative architecture, you can use Hosted agent workflows, where multiple agents collaborate in a code-based workflow while retaining separate models, tools, and instructions. However, that is a different composition model and doesn't, by itself, establish that independently deployed Hosted → Hosted A2A should be replaced.
References:
Hosted agents in Foundry Agent Service
Connect to an A2A agent endpoint
Enable incoming A2A on a Foundry agent
Help make this community better for everyone: If this answer helped or resolved your issue, please accept it or upvote it. If not, share more details in a comment so we can continue the discussion and find the right solution. Thank you.