# Microsoft foundry

> Microsoft foundry is an open-source agent skill. Build, deploy, evaluate, optimize, fine-tune, and manage Microsoft Foundry agents, models, and resources end to end. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf, Goose
- **Website:** https://github.com/microsoft/skills/tree/main/.github/plugins/azure-skills/skills/microsoft-foundry
- **Repository:** https://github.com/microsoft/skills
- **GitHub stars:** 3,214
- **License:** MIT
- **Skill name:** microsoft-foundry
- **Collection:** https://github.com/microsoft/skills
- **Listing updated:** 2026-11-17

## About

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, managed harness agent, Copilot harness, voice agent, create/update/invoke/evaluate agent, add tool to agent, agent insights, batch/continuous eval, continuous monitoring, agent CI/CD, optimize/improve prompt, optimize agent instructions, Agent Optimizer, 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).

## When your agent uses it

> 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, managed harness agent, Copilot harness, voice agent, create/update/invoke/evaluate agent, add tool to agent, agent insights, batch/continuous eval, continuous monitoring, agent CI/CD, optimize/improve prompt, optimize agent instructions, Agent Optimizer, 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).

## What it can access

From a static check of the files on GitHub; nothing was run.

- [Runs shell, PowerShell and Python scripts](https://github.com/microsoft/skills/tree/HEAD/.github/plugins/azure-skills/skills/microsoft-foundry)
- [Network calls found in its scripts](https://github.com/microsoft/skills/tree/HEAD/.github/plugins/azure-skills/skills/microsoft-foundry)
- [License: MIT](https://github.com/microsoft/skills/tree/HEAD/.github/plugins/azure-skills/skills/microsoft-foundry)

## Install

### Claude Code

Copy the skill folder to `~/.claude/skills/microsoft-foundry` to use it in all your projects:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/microsoft/skills.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/microsoft-foundry &&
cp -R "$tmp/.github/plugins/azure-skills/skills/microsoft-foundry" ~/.claude/skills/microsoft-foundry &&
rm -rf "$tmp"
```

For one project only, put the folder in `.claude/skills/microsoft-foundry` inside it instead.

### Codex

Copy the skill folder to `~/.agents/skills/microsoft-foundry` to use it in every repository:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/microsoft/skills.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/microsoft-foundry &&
cp -R "$tmp/.github/plugins/azure-skills/skills/microsoft-foundry" ~/.agents/skills/microsoft-foundry &&
rm -rf "$tmp"
```

For one repository only, put the folder in `.agents/skills/microsoft-foundry` inside it instead.

### Cursor

Copy the skill folder to `~/.cursor/skills/microsoft-foundry` to use it in every project:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/microsoft/skills.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/microsoft-foundry &&
cp -R "$tmp/.github/plugins/azure-skills/skills/microsoft-foundry" ~/.cursor/skills/microsoft-foundry &&
rm -rf "$tmp"
```

For one project only, put the folder in `.cursor/skills/microsoft-foundry` inside it instead.

### Gemini CLI

Run in a terminal (add `--scope workspace` to install it for the current workspace only):

```sh
gemini skills install https://github.com/microsoft/skills.git --path .github/plugins/azure-skills/skills/microsoft-foundry
```

Or copy the folder to `~/.gemini/skills/microsoft-foundry` yourself.

### VS Code

For GitHub Copilot in VS Code, copy the skill folder to `~/.copilot/skills/microsoft-foundry`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/microsoft/skills.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/microsoft-foundry &&
cp -R "$tmp/.github/plugins/azure-skills/skills/microsoft-foundry" ~/.copilot/skills/microsoft-foundry &&
rm -rf "$tmp"
```

For one project only, put the folder in `.github/skills/microsoft-foundry` inside it instead.

### Other agents

Get the folder:

```sh
git clone --depth 1 https://github.com/microsoft/skills.git
```

Then copy `skills/.github/plugins/azure-skills/skills/microsoft-foundry` into your agent's skills folder as `microsoft-foundry`. Agents that support SKILL.md read one folder per skill.

## FAQ

### How do I install Microsoft foundry in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/microsoft-foundry to use it in all your projects, or to .claude/skills/microsoft-foundry in one project.

### Does Microsoft foundry run scripts?

Yes. It runs shell, PowerShell and Python scripts. Its scripts contain network calls. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.

### Which AI agents can use Microsoft foundry?

Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose. Each reads skills in the SKILL.md format from its own folder; the install steps on this page list them.

---
Source: https://ai-powered.com/skills/microsoft-foundry
