Prerequisites
- An Azure account with an active subscription. If you don’t have one, create a free Azure account.
- A coding agent host, such as GitHub Copilot in Visual Studio Code, Copilot CLI, or Claude Code.
-
Node.js 18 or later on your
PATH. The plugin usesnpxto start MCP servers in compatible hosts. - Git, so the host can download plugin and skill content.
-
Azure CLI installed and authenticated:
-
Azure Developer CLI
installed and authenticated if you plan to use
azddeployment workflows: - A Microsoft Foundry project if you want the agent to inspect or modify project-scoped resources. For setup steps, see Create a project.
What the Foundry Skill provides
Themicrosoft-foundry skill is a meta skill for Foundry work. It helps a
coding agent choose the right Foundry workflow, load the matching sub-skill,
inspect available Foundry MCP tools, and keep deployment and evaluation context
consistent across turns.
Use it when you want the agent to help with these capability areas:
The installed skill includes specialized sub-skills for those areas. You don’t
usually need to name the sub-skill directly. Ask for the outcome you want, and
the coding agent uses the skill instructions to route the task.
Installation
- VS Code
- Coding agents such as Copilot CLI and Claude Code
- Copilot CLI
- Claude Code
The Foundry Toolkit extension for VS Code comes with the Foundry Skill. To install the extension, see Work with the Microsoft Foundry for Visual Studio Code extension.After installation, reload Visual Studio Code if prompted. Open Copilot Chat,
switch to agent mode, and confirm that Foundry skills are available. When
prompted, sign in with the Azure account that has access to your Foundry
project.For more information about MCP setup in Visual Studio Code, see
Get started with the Azure MCP Server
and Get started with Foundry MCP Server.
Install just the Foundry Skill
If your host already has MCP server configuration and you only need the skill content, install themicrosoft-foundry skill directly:
Verify the setup
After installation, try these checks from your coding agent:- Ask
What AI models are available in Microsoft Foundry?The response should use Foundry tools instead of a generic summary. - Ask
List my Azure resource groups.The response should use Azure MCP tools after you authenticate. - In a Foundry agent project, ask
Use the Microsoft Foundry Skill to review this agent for deployment readiness.The response should identify workflow checks such as configuration, project access, model deployment, evaluation data, and deployment validation.
az login uses the subscription that contains your Foundry
resources.
Use the skill in a project
Open the folder that contains your Foundry agent code. Ask for the outcome you want, and include the target project, environment, agent folder, or deployment name if you already know it. Use these prompt patterns to invoke the skill’s capabilities:
Before you approve changes or commands, review the plan, generated files, and
Azure resources the agent proposes to create or modify. For deployment,
fine-tuning, and provisioning tasks, confirm role assignments and cost-bearing
resources before the agent runs commands.
Use Foundry Toolkit skills in VS Code
Foundry Toolkit for Visual Studio Code also makes Foundry-specific skills available in VS Code. These skills, such asvscode-microsoft-foundry and foundrytk-quick-start, focus on the VS Code
development experience: onboarding to Foundry Toolkit, exploring models,
building agents, selecting a model, deploying an agent, evaluating performance,
and managing toolboxes. They’re different from the core microsoft-foundry
skill, which provides the broader knowledge base and concrete workflow details
for Foundry resource management, RBAC, quotas, model deployment, hosted agent
deployment, evaluation, tracing, and troubleshooting. Install Foundry Toolkit
for VS Code to make these extension-provided skills available in your VS Code
agent experience.
How the skill works
When a coding agent uses the Microsoft Foundry Skill, it follows a few common patterns:- It starts with Foundry MCP discovery so it knows which Foundry tools and parameters are available in your environment.
- It loads the sub-skill that matches your workflow, such as creation, deployment, invocation, evaluation, tracing, troubleshooting, RBAC, quota, or model deployment.
- It resolves project and agent context from your workspace before it proposes changes or commands.
- It prefers structured Foundry and Azure MCP tools when they’re available.
- It asks for missing values only when they can’t be resolved from your prompt, workspace files, or authenticated Azure context.
For hosted agent workflows, the skill can also work with agents that use the
responses, invocations, or invocations_ws protocols. Use
invocations_ws for real-time or duplex WebSocket scenarios, such as voice
agents or streaming interactions.
Workspace files the skill uses
The skill looks for Foundry project and agent context in common workspace files. Keep these files current so your coding agent can make specific, repeatable recommendations.
For deployment and evaluation workflows, prefer
.foundry/agent-metadata.yaml
for nonsecret overlay state. Don’t store secrets in .foundry files. If azd
already provides a deployment value, such as a project endpoint or registry, let
the coding agent use the azd value instead of duplicating it in metadata.