microsoft-foundry
by microsoftEnd-to-end guidance to create, deploy, evaluate, observe, and troubleshoot Azure AI Foundry agents and projects, including RBAC, quota, standard/private-network setups, and agent metadata layout.
Overview
What is the microsoft-foundry skill?
The microsoft-foundry skill is a curated set of workflows and reference docs that guide you through the end-to-end lifecycle of Azure AI Foundry agents. It focuses on practical deployment and operations:
- Creating prompt and hosted agents
- Building Docker images and pushing to Azure Container Registry (ACR)
- Deploying agents to Azure AI Foundry
- Setting up projects, RBAC, quota, and connections
- Running evaluation datasets and managing
agent-metadata.yaml - Configuring standard and private-network agent setups
- Enabling observability, tracing, and troubleshooting
All content comes from the microsoft/azure-skills repository and is structured so you can operationalize agents on Azure AI Foundry without reverse‑engineering the repo layout.
Who is this skill for?
Use microsoft-foundry if you are:
- A backend or platform engineer responsible for deploying and operating Azure AI Foundry agents
- An AI/ML engineer moving prototypes into a production Foundry project
- A developer integrating Foundry agents with existing services, SDKs, or MCP tools
- A technical owner who must reason about RBAC, quota, private networking, and environment setup
If you only need basic Azure infrastructure deployment (App Service, Functions, generic web apps), this skill is not the right fit—use a more general Azure deployment skill instead.
What problems does microsoft-foundry solve?
The skill is designed to solve these recurring challenges:
-
"How do I structure my agent repo for Foundry?"
Use thereferences/agent-metadata-contract.mdguidance for.foundry/layout andagent-metadata.yamlfields. -
"How do I create and deploy agents consistently?"
Use thefoundry-agent/createandfoundry-agent/deployworkflows to create prompt/hosted agents, build containers, push to ACR, and start agent containers. -
"How do I configure projects, connections, RBAC, and quota?"
Followproject/create,rbac/rbac.md, andquota/quota.mdto set up projects, assign roles, and plan capacity. -
"How do I evaluate and observe my agents?"
Usefoundry-agent/eval-datasets,foundry-agent/observe, andfoundry-agent/traceto run batch evals, manage datasets and evaluators, and connect to observability resources. -
"How do I handle standard vs private-network setups?"
Usereferences/standard-agent-setup.mdandreferences/private-network-standard-agent-setup.mdto choose and configure the right networking model.
When is microsoft-foundry a good fit?
Use this skill when you need to:
- Deploy prompt or hosted agents to Azure AI Foundry
- Standardize agent project structure with
.foundry/agent-metadata.yaml - Integrate MCP tools and Azure SDKs into a repeatable workflow
- Manage RBAC, quota, and capacity planning for agent workloads
- Run evaluation datasets and track results across environments
- Set up observability using Application Insights and traces
- Deploy into standard or private-network (VNet) configurations
Do not use this skill when you only need:
- Generic Azure app deployment (web apps, Functions, App Service)
- High-level Azure account or subscription preparation
In those cases, pair this skill with more general Azure deployment/preparation skills or use a dedicated skill like azure-deploy / azure-prepare.
How to Use
Installation
To add microsoft-foundry from the microsoft/azure-skills repository, install it with:
npx skills add https://github.com/microsoft/azure-skills --skill microsoft-foundry
This makes the microsoft-foundry workflows and reference content available to your agent or tooling environment. After installation, the primary entrypoint is SKILL.md in the skills/microsoft-foundry folder.
Repository layout and key folders
After installing the skill or opening it in the repository, you will see the following structure:
SKILL.md– top-level skill index and sub-skill listfoundry-agent/– end-to-end workflows for individual agentscreate/– create prompt or hosted agentsdeploy/– build and deploy agents, including containers and ACReval-datasets/– manage eval datasets and evaluation runsinvoke/– invoke existing agentsobserve/– observability setup and monitoring workflowstrace/– trace collection and dataset creation from tracestroubleshoot/– troubleshooting guidance for failed runs
project/create/– create and configure Azure AI Foundry projectsconnections.md– guidance for project-level connections
rbac/rbac.md– RBAC roles, permissions, and common patterns
quota/quota.md– quota and capacity planning guidancereferences/– capacity planning, error resolution, optimization
references/agent-metadata-contract.md–.foundry/layout andagent-metadata.yamlauth-best-practices.md– Azure authentication patterns and RBACstandard-agent-setup.md– standard (non-isolated) agent setupprivate-network-standard-agent-setup.md– VNet/private-link setupsdk/– SDK-operations references for when MCP tools are not available
Start with SKILL.md to understand the sub-skills, then drill into the specific scenario folder.
Quick-start workflow: from project to deployed agent
This section outlines a practical path using the microsoft-foundry skill content.
1. Create or prepare your Foundry project
- Open
project/create/create-foundry-project.md. - Follow the steps to:
- Create an Azure AI Foundry project
- Confirm the project endpoint (for example,
https://<resource>.services.ai.azure.com/api/projects/<project>) - Link required connections (Cosmos DB, Storage, Azure AI Search, etc.) as required for standard setup
- Review
project/connections.mdto ensure your thread storage, file storage, and vector store connections are correctly configured, especially if you plan to use standard agent setup.
2. Configure RBAC and authentication
- Read
rbac/rbac.mdto verify:- Which roles are needed (Owner, Contributor, User Access Administrator, etc.) on the resource group and Foundry resources
- How to assign roles following Azure RBAC best practices
- Open
references/auth-best-practices.mdand apply its recommendations:- Use managed identities and Azure RBAC in production
- Restrict
DefaultAzureCredentialto local development - Choose the right credential type for production, CI/CD, and dev environments
This ensures your deployments and agent operations can authenticate reliably without hard‑coded secrets.
3. Decide on basic vs standard vs private-network setup
- Open
references/standard-agent-setup.mdto understand:- Differences between Basic and Standard setups
- Required connections for standard setup: Cosmos DB, Azure Storage, Azure AI Search, and optionally Azure AI Services
- Prerequisites such as RBAC roles on the resource group
- If you need full network isolation, read
references/private-network-standard-agent-setup.md:- VNet and subnet requirements (agent subnet and private endpoint subnet)
- Region alignment between Foundry resources and the VNet
- Use of the official Bicep template for private-network standard agent setup
Choose the setup that matches your compliance and networking requirements before moving on to agent creation.
4. Standardize your agent project layout
-
Open
references/agent-metadata-contract.mdand align your project with the documented layout:<agent-root>/ .foundry/ agent-metadata.yaml datasets/ evaluators/ results/ -
Ensure
agent-metadata.yamlcontains environment definitions with fields such as:defaultEnvironmentenvironments.<name>.projectEndpointenvironments.<name>.agentNameenvironments.<name>.azureContainerRegistry(for hosted agents)environments.<name>.observability.*(for Application Insights)environments.<name>.testCases[]for evaluation bundles
This file becomes the source of truth for environment-specific configuration, and the rest of the microsoft-foundry workflows assume it is present and accurate.
5. Create a prompt or hosted agent
-
For prompt agents, open
foundry-agent/create/create-prompt.md:- Understand the difference between prompt agents and workflows
- Follow the steps to resolve the project context (endpoint, credentials)
- Use MCP tools where available and fall back to the
azure-ai-projectsSDK as documented - Provide agent name, model deployment, and instructions, plus optional tools (file search, code interpreter, etc.)
-
For hosted agents, open
foundry-agent/create/create.md:- Choose whether you are creating a new agent (greenfield) or converting an existing project (brownfield)
- Select a framework and language based on the sample paths provided (Python or C# frameworks such as the Microsoft Agent Framework or LangGraph)
- Use the guidance to integrate with the foundry-samples repository where needed
At the end of this step, you should have a Foundry-compatible agent project ready for deployment.
6. Build and deploy the agent
- Open
foundry-agent/deploy/deploy.md. - Follow the workflow that covers:
- Project scan and environment variable collection
- Dockerfile generation and
docker/az acrusage for hosted agents - Using MCP tools such as
agent_update,agent_container_control, andagent_container_status_get - Creating or updating the deployment and starting/stopping agent containers
- Do not run
azd up,azd deploy,az acr build, ordocker buildin isolation without reviewing this guide—the skill coordinates these commands as part of a complete deployment pipeline.
Once this step is complete, your agent should be deployed and reachable via Azure AI Foundry.
7. Invoke and test the agent
- Open
foundry-agent/invoke/invoke.md. - Use the documented patterns to:
- Resolve the correct environment and endpoint from
agent-metadata.yaml - Invoke the agent with sample or custom payloads
- Verify that responses, tools, and state behave as expected
- Resolve the correct environment and endpoint from
This is a good stage to perform smoke tests before running full evaluation suites.
8. Evaluate and iterate
- Open
foundry-agent/eval-datasets/eval-datasets.md. - Use the guidance to:
- Manage datasets and evaluators under
.foundry/datasetsand.foundry/evaluators - Run evaluation workflows using the
testCasesdefinitions fromagent-metadata.yaml - Store outputs under
.foundry/resultsand compare results by environment or agent version
- Manage datasets and evaluators under
- Iterate on your prompts or instructions and re-run evaluations to track improvements over time.
Observability, tracing, and troubleshooting
Observability and monitoring
- Open
foundry-agent/observe/observe.md. - Configure observability based on the guidance:
- Attach Application Insights using the resource ID and connection string fields described in
agent-metadata-contract.md - Use the recommended dashboards or queries to monitor latency, errors, and throughput
- Attach Application Insights using the resource ID and connection string fields described in
This allows you to monitor production behavior and correlate it with deployment changes.
Tracing and dataset creation from traces
- Open
foundry-agent/trace/trace.md. - Use the documented workflows to:
- Collect traces from your agents
- Curate datasets from traces and store them under
.foundry/datasets - Feed these datasets into the evaluation workflows for more realistic testing
This is particularly helpful when you want to turn real user traffic into evaluation scenarios.
Troubleshooting deployments and runtime issues
- Open
foundry-agent/troubleshoot/troubleshoot.md. - Follow the troubleshooting guides for issues such as:
- Deployment failures and container startup errors
- Misconfigured endpoints, credentials, or connections
- Quota or capacity errors (cross-reference
quota/quota.mdandquota/references/*.md)
Use this in combination with logs and Application Insights telemetry to diagnose and resolve problems.
Quota, capacity, and optimization
- Open
quota/quota.mdfor an overview of:- How quota is applied to models and deployments in Azure AI Foundry
- How to reason about capacity across environments and regions
- Review the files in
quota/references/:capacity-planning.md– helps you estimate capacity for agents based on usageerror-resolution.md– maps common quota-related errors to recommended fixesoptimization.md– suggests ways to tune workloads to fit within quota limits
This content helps you avoid surprises at scale and keep agents responsive.
FAQ
Is microsoft-foundry required to use Azure AI Foundry?
No. You can use Azure AI Foundry directly via the Azure portal, CLI, or SDKs. The microsoft-foundry skill is a structured guide that packages best practices, workflows, and references in one place so you can set up projects, agents, and environments more consistently.
Can I use microsoft-foundry for non-Foundry Azure services?
Use this skill when your primary goal is deploying and operating Azure AI Foundry agents and projects. For general-purpose deployment of web apps, APIs, or other PaaS services (App Service, Functions, generic containers), use a dedicated Azure deployment skill or guidance instead.
Does microsoft-foundry support both prompt and hosted agents?
Yes. The skill has dedicated content for both:
foundry-agent/create/create-prompt.mdcovers prompt agents.foundry-agent/create/create.mdandfoundry-agent/deploy/deploy.mdcover hosted agents, including containerization, ACR, and container lifecycle management.
How does microsoft-foundry handle authentication and security?
Security and authentication are covered in references/auth-best-practices.md and rbac/rbac.md:
- Use managed identities and Azure RBAC in production
- Reserve
DefaultAzureCredentialfor local development - Choose appropriate credentials for CI/CD and on-prem environments
Follow those docs before wiring up SDKs or MCP tools to avoid insecure or brittle setups.
Do I have to use MCP tools, or can I rely on SDKs only?
The content is written to work with MCP tools when available, but also documents SDK-based fallbacks in the references/sdk folder. For example, create-prompt.md explains how to default to the azure-ai-projects SDK when MCP tools are not present.
How do I know if my agent project is structured correctly?
Check your project against references/agent-metadata-contract.md. Ensure you have:
- A
.foundry/directory at the agent root - A valid
agent-metadata.yamlincluding environments and test cases datasets/,evaluators/, andresults/folders as described
If you follow that contract, the rest of the microsoft-foundry workflows will align with your project layout.
Can I use microsoft-foundry with private network (VNet) setups?
Yes. references/private-network-standard-agent-setup.md provides detailed guidance on:
- Required VNet and subnet configuration
- Regional constraints between Foundry resources and the VNet
- Use of the official private-network standard agent setup Bicep template
Use that document alongside references/standard-agent-setup.md when you must keep traffic on a private network.
Where should I start in the repository after installation?
After installing the skill, start with:
SKILL.md– for a high-level overview of all sub-skillsproject/create/create-foundry-project.md– to set up your Foundry projectreferences/agent-metadata-contract.md– to standardize agent layoutfoundry-agent/create/andfoundry-agent/deploy/– to build and deploy your first agent
You can then move on to eval-datasets, observe, trace, rbac, and quota as your scenario requires.
