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-agentroutinereferencesazure-yaml.md

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

Declarative Routines

The routines extension registers a service target so routines can live in source control and be upserted by azd up / azd deploy. Declare each routine as a service with host: azure.ai.routine: the service key is the routine name, and the keys under it bind directly to the routine model.

# azure.yaml
services:
  my-agent:
    host: azure.ai.agent
    # ... agent service block ...

  daily-digest:                 # service key = routine name
    host: azure.ai.routine
    uses:
      - my-agent                # order the agent ahead of the routine that invokes it
    description: Daily 8am digest
    enabled: true
    triggers:
      default:
        type: schedule          # recurring cron; see type table below
        cron_expression: "0 8 * * *"
        time_zone: America/New_York
    action:
      type: invoke_agent_responses_api   # see type table below
      agent_name: my-agent      # target agent (distinct from the routine name)
      input: "Summarize activity for ${AZURE_ENV_NAME}"

Then:

azd deploy daily-digest --no-prompt
azd up

Trigger and action type values

azure.yaml (like a --file manifest) uses the raw wire type: value, not the CLI alias:

  • Trigger type: schedule (recurring cron), timer (one-shot), github_issue, or custom.
  • Action type: invoke_agent_responses_api (resume with conversation) or invoke_agent_invocations_api (resume with session_id).

The azd ai routine CLI accepts friendlier aliases (recurring, github-issue, agent-response, agent-invoke) for the same values. See the full alias-to-wire mapping and per-trigger key fields in CLI CRUD and Operations.

action.input

Put the prompt or payload sent to the agent in action.input:

  • invoke_agent_responses_api (agent-response): a string prompt.
  • invoke_agent_invocations_api (agent-invoke): an object/array/scalar matching the target agent's expected input.

Behavior notes

  • azd deploy PUTs the routine idempotently; package and publish are no-ops (a routine has no build artifact).
  • The routine name always comes from the service key; any name: inside the block is ignored.
  • Put the target agent service in uses: so azd orders the agent before the routine that invokes it.
  • String values resolve ${VAR} against the active azd env at deploy time; Foundry server-side ${{...}} expressions are left untouched.
  • Removing the service block stops azd managing the routine but does not delete it from Foundry. Delete explicitly with azd ai routine delete <name>.

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