We just concluded Host your agents on Foundry, a three-part livestream series where we explored how to deploy and host Python AI agents on Microsoft Foundry:
- Deploying Python agents to Foundry Hosted agents using the Azure Developer CLI
- Building hosted agents with Microsoft Agent Framework, including Foundry IQ integration and multi-agent workflows
- Building hosted agents with LangChain + LangGraph, including built-in tools like Bing Web Search
- Running quality and safety evaluations: bulk, scheduled, and continuous evals, guardrails, and red-teaming
All of the materials from our series are available for you to keep learning from, and linked below:
- Video recordings of each stream
- PowerPoint slides that you can use for reviewing or even teaching the material to your own community
- Open-source code samples you can run yourself in your own Microsoft Foundry project
Spanish speaker? Check out the Spanish version of the series.
🙋🏽♂️ Have follow up questions? Join the weekly Python+AI office hours on Foundry Discord.
Host your agents on Foundry: Microsoft Agent Framework
In our first session, we deploy agents built with Microsoft Agent Framework (the successor of Autogen and Semantic Kernel). Starting with a simple agent, we add Foundry tools like Code Interpreter, ground the agent in enterprise data with Foundry IQ, and finally deploy multi-agent workflows. Along the way, we use the Foundry UI to interact with the hosted agent, testing it out in the playground and observing the traces from the reasoning and tool calls.
- 🖼️ Slides for this session
- 💻 Code repository with examples: foundry-hosted-agentframework-demos
- 📝 Write-up for this session
Host your agents on Foundry: LangChain + LangGraph
In our second session, we deploy agents built with the popular open-source libraries LangChain and LangGraph. Starting with a simple agent, we add Foundry tools like Bing Web Search, ground the agent in Foundry IQ, then deploy more complex agents using the LangGraph orchestration framework. Along the way, we use the Foundry UI to interact with the hosted agent, testing it out in the playground and observing the traces from the reasoning and tool calls.
- 🖼️ Slides for this session
- 💻 Code repository with examples: foundry-hosted-langchain-demos
- 📝 Write-up for this session
Host your agents on Foundry: Quality & safety evaluations
In our third session, we ensure that our AI agents are producing high-quality outputs and operating safely and responsibly. First we explore what it means for agent outputs to be high quality, using built-in evaluators to check overall task adherence and then building custom evaluators for domain-specific checks. With Foundry hosted agents, we run bulk evaluations on demand, set up scheduled evaluations, and even enable continuous evaluation on a subset of live agent traces. Next we discuss safety systems that can be layered on top of agents and audit agents for potential safety risks. To improve compliance with an organization's goals, we configure custom policies and guardrails that can be shared across agents. Finally, we ensure that adversarial inputs can't produce unsafe outputs by running automated red-teaming scans on agents, and even schedule those to run regularly as well.


