Add per-agent Foundry endpoint alias routing in src/a2a_servers#21
Draft
Copilot wants to merge 4 commits into
Draft
Add per-agent Foundry endpoint alias routing in src/a2a_servers#21Copilot wants to merge 4 commits into
src/a2a_servers#21Copilot wants to merge 4 commits into
Conversation
Co-authored-by: judacas <67698498+judacas@users.noreply.github.com> Agent-Logs-Url: https://github.com/judacas/LLM-Automated-Inventory-Management/sessions/23831b2f-7f88-4cfd-bf69-af9249880a5f
Co-authored-by: judacas <67698498+judacas@users.noreply.github.com> Agent-Logs-Url: https://github.com/judacas/LLM-Automated-Inventory-Management/sessions/23831b2f-7f88-4cfd-bf69-af9249880a5f
Co-authored-by: judacas <67698498+judacas@users.noreply.github.com> Agent-Logs-Url: https://github.com/judacas/LLM-Automated-Inventory-Management/sessions/23831b2f-7f88-4cfd-bf69-af9249880a5f
Copilot
AI
changed the title
[WIP] Update a2a servers to support multiple endpoints for agents
Add per-agent Foundry endpoint alias routing in Mar 24, 2026
src/a2a_servers
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
a2a_serverscould only target oneAZURE_AI_PROJECT_ENDPOINTfor all mounted agents, which blocked multi-project Foundry deployments. This change moves endpoint selection to each agent definition via endpoint aliases resolved from environment secrets, while keeping full endpoint URLs out of TOML.Type of Change
Related Issues
N/A
Changes Made
Per-agent Foundry endpoint mapping
foundry.endpoint_aliasto agent config contract.AgentDefinitionnow resolves/storesfoundry_project_endpointper agent.AZURE_AI_PROJECT_ENDPOINT_<ALIAS_UPPER>AZURE_AI_PROJECT_ENDPOINT(backward-compatible fallback)Runtime wiring
app_factory.create_agent_app()now usesdefinition.foundry_project_endpointinstead of a single global endpoint.ServerSettings.Validation semantics
agent_nameonly to(endpoint_alias, agent_name)target.Operational safety and observability
endpoint_alias.Documentation + contract updates
.env.templateand a2a docs (foundry-integration,agent-definition-reference, setup/deploy/troubleshooting/runbook) for alias-based env configuration.Testing
Checklist
Screenshots (if applicable)
N/A (no UI changes)
Additional Context
This introduces a config contract change:
foundry.endpoint_aliasis now required in*_agent.toml. Existing agent files must add the alias and correspondingAZURE_AI_PROJECT_ENDPOINT_<ALIAS_UPPER>secret.Warning
Firewall rules blocked me from connecting to one or more addresses (expand for details)
I tried to connect to the following addresses, but was blocked by firewall rules:
learn.microsoft.com/home/REDACTED/work/_temp/ghcca-node/node/bin/node /home/REDACTED/work/_temp/ghcca-node/node/bin/node --enable-source-maps /home/REDACTED/work/_temp/copilot-developer-action-main/dist/index.js(dns block)If you need me to access, download, or install something from one of these locations, you can either:
💬 Send tasks to Copilot coding agent from Slack and Teams to turn conversations into code. Copilot posts an update in your thread when it's finished.