Replies: 1 comment 1 reply
-
|
Hi @buzahid Why you are seeing the 401 (PermissionDenied) Agents created and published in the Foundry portal (like MyAgent) are not exposed as public A2A servers. The “Activity Protocol endpoint” and “Responses API endpoint” shown in the Foundry UI are internal, authenticated endpoints intended for Microsoft 365 Copilot and Foundry‑managed runtimes. They do not expose a public A2A agent card endpoint. When your a2a-test agent tries to use the Agent2Agent (A2A) tool to fetch the agent card for a Foundry‑hosted agent, the request fails with 401 (PermissionDenied) because:
This behavior is expected with the current Foundry architecture. What is supported today
The A2A tool in Foundry is designed for this pattern:
Official docs:
If both agents live inside Foundry, the correct approach is:
These are native Foundry composition mechanisms. A2A is not used for Foundry‑to‑Foundry agent calls. What is NOT supported
Key Considerations
Hope this clarifies your question. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
In the Foundry portal, I created and published an agent

MyAgent:I created another agent
a2a-testto try and connect to this agent using the custom Agent2agent tool, however I'm seeing an error ErrorFailed to fetch agent card: Response status code does not indicate success: 401 (PermissionDenied).What is the correct way to use the A2A protocol with agents created in Foundry?
Beta Was this translation helpful? Give feedback.
All reactions