# Why does a Microsoft Foundry agent connection in Copilot Studio return 400 or 404?

Exam: AB-400 — Power Platform Developer Associate
Knowledge domain: Extend Microsoft Power Platform (35–40%)
Updated: 2026-11-25T06:47:23.376531+00:00
HTML: https://learningpathx.com/faq/AB-400/ab400-copilot-studio-connect-foundry-activity-endpoint.html

## Also asked as

- How do I connect a Foundry specialist to Copilot Studio with the required Activity endpoint?
- What do HTTP 400 and Version not found mean for a Foundry specialist connected to Copilot Studio?

For Copilot Studio's connected Foundry agent preview, use a standard-harness Copilot Studio agent and a specialist created in the new Microsoft Foundry portal with the **Activity** protocol enabled. Microsoft documents a runtime 400 when Activity is missing and a `404 - Version not found` for agents created in the previous portal. Use a nonproduction environment to evaluate the preview.

1. Confirm the Foundry project and agent identity. Newly created Foundry agents expose Responses and A2A by default. Enable Activity with the documented REST API or Python SDK procedure. The Foundry portal can continue to show only Responses and A2A after the change.
2. On the main agent's **Agents** page, select **Add an agent**, choose **Microsoft Foundry**, and select or create the connection using the Foundry project endpoint. Supply the specialist agent ID and a name and description that tell Copilot Studio when to delegate.
3. Test an in-scope request and verify the actual specialist invocation and response. Apply the 400 and 404 checks to the documented error details. Compare project endpoint and agent ID when the error differs.

Keep fallback behavior for unavailable delegation. Check the specialist connection and the final business operation's authorization as separate boundaries.

**Microsoft references**

* [Connect to a Microsoft Foundry agent (preview) - Microsoft Copilot Studio](https://learn.microsoft.com/en-us/microsoft-copilot-studio/add-agent-foundry-agent)
* [Configure and share your Microsoft Foundry agent - Microsoft Foundry](https://learn.microsoft.com/en-us/azure/foundry/agents/how-to/configure-agent)

Source: [AB-400: Integrating Foundry and Copilot Studio Agents](https://learningpathx.com/news/ab-400-integrating-foundry-and-copilot-studio-agents.html)
