All skills
microsoft avatar

/microsoft-foundry

@04110d9
by microsoftmicrosoft/skills3.1k stars
351

Build, deploy, evaluate, optimize, fine-tune, and manage Microsoft Foundry agents, models, and resources end to end. USE FOR: foundry, azd ai agent, azd provision/deploy, hosted agent scaffold/develop/run/deploy/troubleshoot, prompt agent create, create agent, update agent, add tool to agent, invoke agent, agent.yaml, agent insights, pull agent insights, evaluate agent, batch eval, continuous eval, continuous monitoring, agent CI/CD, optimize prompt, improve prompt, prompt optimizer, optimize agent instructions, Agent Optimizer scaffold, dataset curation from traces, deploy model, model fine-tuning (SFT/DPO/RFT), Foundry project, RBAC, role assignment, permissions, quota, capacity, region, deployment failure, AI Services, create Foundry resource, knowledge index, customize deployment, onboard, availability, training-data, grader, distillation, large file upload. DO NOT USE FOR: Azure Functions, App Service, general Azure deploy (use azure-deploy), general Azure prep (use azure-prepare).

Use this Skill: https://skilld.dev/gh/microsoft/skills/microsoft-foundry

This session only. Nothing lands on disk.

foundry-agenttoolboxreferencestool-a2a.md

≈566 tokens on demand. Your agent reads this file only when SKILL.md points to it.

Tool — Agent-to-Agent (A2A) connection

Create the remote-a2a connection that lets your agent call another A2A-compatible agent as a tool. The peer can be another Foundry agent or any external service that implements the A2A protocol.

Create the connection

azd ai connection create <conn-name> \
  --kind remote-a2a \
  --target <A2A_BASE_URL> \
  --auth-type <auth-type> \
  [--audience <token-audience>] \
  [--key <api-key>] \
  [--metadata KEY=VALUE ...]

Foundry peer

$TARGET_AGENT_A2A_ENDPOINT is https://<account>.services.ai.azure.com/api/projects/<project>/agents/<peer>/endpoint/protocols/a2a.

Pick an auth type
--auth-type Identity passed to the peer RBAC
user-entra-token End user's Entra token, passed through Grant the end user's identity the Foundry Agent Consumer role (least privilege) on the peer project
agentic-identity Calling agent's own identity Grant the calling agent's identity the Foundry Agent Consumer role on the peer project
Create the connection
azd ai connection create $CONNECTION_NAME \
  --project-endpoint $PROJECT_ENDPOINT \
  --kind remote-a2a \
  --target $TARGET_AGENT_A2A_ENDPOINT \
  --auth-type <user-entra-token | agentic-identity> \
  --audience "https://ai.azure.com" \
  --metadata "ApiType=Azure" \
  --metadata "type=custom_A2A" \
  --metadata "AgentCardPath=/agentCard/v1.0"

Attach to a toolbox

Once the remote-a2a connection exists (peer must already expose an A2A endpoint):

azd ai toolbox connection add agent-tools peer-agent-conn
azd ai toolbox publish agent-tools <new-version>

For Foundry peers, first enable incoming A2A on the target agent (see enable-incoming-a2a.md) if it doesn't already return 200 on /endpoint/protocols/a2a/agentCard/v1.0. External A2A services: assume the peer owner has done this.

--from-file entry

connections:
  - name: peer-agent-conn      # RemoteA2A — just the name

References

Source: SKILL.md on GitHub

2 warnings3d4 checks · Risk SAFE
  • Gen Agent Trust Hub3d

    This skill provides a comprehensive environment for managing the end-to-end lifecycle of AI agents, models, and infrastructure on Microsoft Foundry. It includes sub-skills for deployment, evaluation, fine-tuning, and troubleshooting. The skill utilizes dynamic code execution and shell command wrappers, which are used within the context of local development and cloud orchestration. All external resources and dependencies originate from trusted organizations and well-known services.

  • Socket3d

    2 alerts: gptSecurity, gptAnomaly

  • Snyk3d

    Risk: LOW · No issues

  • Runlayer7mo

    36/36 files flagged

Signed by skilld at 04110d9. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub 20 hours ago.

Activeupdated last week
metadata
{
  "author": "Microsoft",
  "version": "1.2.26"
}

README badge

README badge for microsoft/skills/microsoft-foundry