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-agentcreatereferencesguardrailsguardrail-manage.md

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

Guardrails (RAI Content-Filter Policies)

Guardrails are Responsible AI (RAI) content-filter policies that control what content is allowed through model deployments and agents in Microsoft Foundry.

When to Use

  • Create or manage a guardrail (content-filter policy) for a Foundry project
  • Attach a guardrail to a hosted agent, model deployment, or toolbox → guardrail-attach.md
  • Create a guardrail via REST API → guardrail-api-create.md

Default Path: Portal

By default, guide the user to the Foundry portal to create guardrails interactively.

Construct and show this URL to the user:

https://ai.azure.com/nextgen/r/{encodedSubId},{resourceGroup},,{accountName},{projectName}/build/guardrails

Where:

  • {encodedSubId} — subscription GUID as URL-safe base64 (no = padding):
    python -c "import base64,uuid;print(base64.urlsafe_b64encode(uuid.UUID('<SUBSCRIPTION_ID>').bytes).rstrip(b'=').decode())"
  • {resourceGroup} — resource group name
  • {accountName} — AI Services account name
  • {projectName} — Foundry project name

If resource details are unknown, use the generic URL and instruct the user to navigate manually:

https://ai.azure.com

Then navigate: select your project → Build → Guardrails → Create Guardrail.

Use the API path (guardrail-api-create.md) only when the user explicitly asks for programmatic/CLI/CI/CD creation.

Intervention Points

Intervention Point Models Agents (Preview) Toolbox
User input Yes Yes No
Tool call No Yes Yes
Tool response No Yes Yes
Output Yes Yes No

Tool call and tool response are agent-only (and toolbox). An agent's guardrail fully overrides its model deployment's guardrail at all intervention points.

Default Guardrails

Policy Name Description Editable
Microsoft.Default Base default policy (4 categories) No
Microsoft.DefaultV2 Updated default with jailbreak + protected material No
Custom policies User-created policies Yes

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 yesterday.

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

README badge

README badge for microsoft/skills/microsoft-foundry