Build, Scale, and Govern AI Applications in the Enterprise
Quick Start β’ The Journey β’ Architecture β’ Prerequisites β’ Resources
Meet Promptling β your friendly guide through the world of Microsoft Foundry! This repository is your progressive learning path from simple inference to building a full fleet of intelligent, governed AI agents.
βββββββββββββββββββββββββββββββββββββββ
β LANDING ZONE (HUB) β
β (lab1a-foundry-lz-hub) β
βββββββββββββββββββββββββββββββββββββββ€
β β
β βββββββββββββββββββββββββββββββ β
β β API Management (APIM) β β
β β β’ StandardV2 tier β β
β β β’ Rate limiting policies β β
β β β’ Managed Identity auth β β
β β β’ Multi-backend routing β β
β βββββββββββββββ¬ββββββββββββββββββ β
β β β
βββββββββββββββββββββΌβββββββββββββββββΌββββββββββββββββββββββ
β β β ββ
βΌ βΌ βΌ βΌβ
βββββββββββββββββββ βββββββββββββββββββ βββββββββββββββββββ βββββββββββββββββββ
β AI Hub eastus2 β β AI Hub norwayeastβ β AI Hub westus3 β β Shared Services β
βββββββββββββββββββ€ βββββββββββββββββββ€ βββββββββββββββββββ€ βββββββββββββββββββ€
β β’ gpt-4.1-mini β β β’ o3-deep- β β β’ DeepSeek-V3.2 β β β’ Storage β
β β’ gpt-4.1 β β research β β β β β’ Key Vault β
β β’ gpt-4.1-nano β β β β β β β’ App Insights β
β β’ text-embed-3 β β β β β β β
β β’ model-router β β β β β β β
βββββββββββββββββββ βββββββββββββββββββ βββββββββββββββββββ βββββββββββββββββββ
β
βββββββββββββββββββββΌββββββββββββββββββββ
β β β
βΌ βΌ βΌ
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β SPOKE PROJECTS (TEAMS) β
βββββββββββββββββββββββ¬ββββββββββββββββββββββ¬ββββββββββββββββββββββββββββββββββ€
β Contoso Team β Fabrikam Team β Woodgrove Team β
β βββββββββββββββββ β βββββββββββββββββ β βββββββββββββββββ β
β β Inventory AI β β β Doc Studio β β β Risk Analyticsβ β
β βββββββββββββββββ β βββββββββββββββββ β βββββββββββββββββ β
β β β β
β APIM Connection β APIM Connection β APIM Connection β
β βββββββββββββββββ β βββββββββββββββββ β βββββββββββββββββ β
β βlanding-zone- β β βlanding-zone- β β βlanding-zone- β β
β βapim β β βapim β β βapim β β
β βββββββββββββββββ β βββββββββββββββββ β βββββββββββββββββ β
β β β β
β Allowed Models: β Allowed Models: β Allowed Models: β
β β’ gpt-4.1-mini β β’ gpt-4o β β’ o1 β
β β’ model-router β β’ gpt-4o-mini β β’ o3-deep-research β
βββββββββββββββββββββββ΄ββββββββββββββββββββββ΄ββββββββββββββββββββββββββββββββββ
β
βββββββββββββββββββββΌββββββββββββββββββββ
β β β
βΌ βΌ βΌ
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β FEATURE SPOKES (CAPABILITIES) β
βββββββββββββββββββββββ¬ββββββββββββββββββββββ¬ββββββββββββββββββββββββββββββββββ€
β Foundry IQ β Content Under- β Built-in Tools β
β Spoke (Lab 6) β standing (Lab 9) β Spoke (Lab 7A) β
β βββββββββββββββββ β βββββββββββββββββ β βββββββββββββββββ β
β β AI Search β β β Local Models β β β Local gpt-4.1 β β
β β Knowledge β β β β’ gpt-4.1 β β β File Search β β
β β Bases β β β β’ embeddings β β β Code Interp. β β
β βββββββββββββββββ β βββββββββββββββββ β βββββββββββββββββ β
β β β β
β Uses APIM for β Requires local β Requires local β
β chat + embeddings β deployments β deployments β
βββββββββββββββββββββββ΄ββββββββββββββββββββββ΄ββββββββββββββββββββββββββββββββββ
Each phase builds upon the last. Follow Promptling through each adventure!
|
Plant your flag and establish your foundation
|
||||||||||||||||||||||||
|
Deploy models and scale your team
|
||||||||||||||||||||||||
|
Protect your infrastructure with policies
Deploy Azure Policy to prevent unauthorized model deployments in spokes. Keep your architecture secure and compliant! |
||||||||||||||||||||||||
|
Deploy containerized agents with Azure Developer CLI
Use the official |
||||||||||||||||||||||||
|
Give your agents the gift of memory
|
||||||||||||||||||||||||
|
Knowledge retrieval and RAG pipelines
Connect your agent to a Foundry IQ knowledge base for intelligent Retrieval Augmented Generation (RAG). |
||||||||||||||||||||||||
|
Equip your agents with powerful tools
|
||||||||||||||||||||||||
|
Multi-step agentic research with citations
Build deep research pipelines with |
||||||||||||||||||||||||
|
Extract insights from any content type
|
||||||||||||||||||||||||
|
Connect to Microsoft 365 ecosystem
Extend your agents to work with Microsoft 365 services and Copilot.
|
||||||||||||||||||||||||
|
Centralized agent discovery and management
Build a private tool catalog to manage agent discovery and organization-wide tools. |
||||||||||||||||||||||||
|
Multi-agent collaboration with Microsoft Agent Framework
Build a Planet Slideshow Builder with orchestrated agents: π― Planner β π Researcher β π Reviewer β βοΈ Judge |
||||||||||||||||||||||||
|
See everything with OpenTelemetry tracing
Trace multi-agent hops, tool latencies, and system performance in the Foundry portal. |
||||||||||||||||||||||||
|
Step 14: Evaluation |
||||||||||||||||||||||||
|
Model Router automatically selects the best LLM for each request, optimizing for your priorities. See Lab 1C to configure it.
|
||||||||||||||||||||||||
|
Red Teaming Human-in-Loop |
||||||||||||||||||||||||
Before you begin, ensure you have:
| Requirement | Description |
|---|---|
| βοΈ Azure Subscription | Owner or User Access Administrator permissions |
| π Python 3.10+ | For running notebooks and scripts |
| π§ Azure CLI | Download here |
| π» VS Code | With Microsoft Foundry Extension |
# 1. Clone the repository
git clone https://github.com/Azure-Samples/AI-Engineer-Zero-to-Hero.git
cd AI-Engineer-Zero-to-Hero
# 2. Authenticate with Azure
az login
# 3. Create your .env file
cp .env.sample .env
# Edit .env with your Foundry connection string
# 4. Start with Step 01!
cd 01-project-setupThe following table shows how each lab's features integrate with the centralized Landing Zone architecture:
| Lab | Feature | Support Level | Notes |
|---|---|---|---|
| 00 - Image Gen | gpt-image-1.5 | APIM | Supports APIM (notebook not yet updated) |
| 01a - Landing Zone | Hub deployment | APIM | Deploys central APIM gateway + model deployments |
| 01b - Project Spoke | Spoke + APIM connection | Connection | Spoke consumes models via APIM connection |
| 01c - Model Router | model-router deployment | APIM | Intelligent routing across models |
| 02a - Team Spokes | Multi-team model access | Connection | Teams access models via <connection>/<model> |
| 02b - Direct APIM | REST API access | APIM | Direct APIM calls without Foundry SDK |
| 05 - Agent Memory | Memory API | Hybrid | Chat via APIM, but Memory API needs local embedding model |
| 06 - Foundry IQ | Knowledge bases | Connection | RAG via APIM for both chat and embeddings |
| 07a - Built-in Tools | File Search, Code Interpreter | Hybrid | File Search requires local model, Code Interpreter works via APIM |
| 07b - AI Gateway MCP | MCP tool governance | APIM | Extends APIM to govern MCP tool calls |
| 07c - Web Search | Bing grounding | Local | Web search tool requires local model |
| 08 - Deep Research | o3-deep-research | APIM | Full APIM support via Norway East hub |
| 09 - Content Understanding | Document/video analysis | Local | CU requires GPT-4.1 + embeddings in same resource |
| 12 - Agent Workflow | Multi-agent orchestration | APIM | Microsoft Agent Framework via APIM gateway |
| 13 - Human-in-Loop | Function approval | APIM | Works with APIM-based agents |
| 16 - Local Evaluation | Azure AI Evaluation SDK | APIM | Evaluators use APIM for judge model |
AI-Engineer-Zero-to-Hero/
βββ π README.md # You are here!
βββ π¨ 00-image-generation/ # Promptling mascot images
βββ ποΈ 01-project-setup/ # Phase 1: Foundations
β βββ lab-1a-landing-zone/
β βββ lab-1b-project-spoke/
β βββ lab-1c-model-router/
βββ π 02-inference/ # Unified inference
βββ π‘οΈ 03-governance-policy/ # Azure Policy
βββ π¦ 04-hosted-agents/ # Hosted agents
βββ π§ 05-agent-memory/ # Memory service
βββ π 06-foundry-iq/ # Knowledge & RAG
βββ π§ 07-tool-catalog/ # Tools & MCP
βββ π 08-deep-research/ # Research pipelines
βββ π 09-content-understanding/ # Document/video analysis
βββ π 10-agent-registry/ # Agent discovery
βββ π 11-agent-365/ # M365 integration (Step 10)
βββ π 12-agent-workflow/ # Multi-agent orchestration
βββ π€ 13-human-in-loop/ # Safety: Human approval
βββ 14-m365-integration/ # Additional M365
βββ 14b-m365-foundry-publish/ # Publish Agents via Activity Protocol
βββ 15-observability/ # Tracing & monitoring
βββ π 16-evaluation/ # AI quality evaluation
βββ π΄ 16-red-teaming/ # Safety: Red teaming
|
|
- Advanced Observability Lab β Deep dive into tracing with Foundry Agents and Application Insights integration
- Cloud Evaluations Lab β Run evaluations at scale using Foundry's cloud-based evaluation infrastructure
- Speech Capabilities Lab β Explore Foundry's voice features including the Voice Live API
- Basic vs Standard Agent Deployment β Configure secure access to resources used within Agents (VNet integration, private endpoints)
Have ideas for new labs? Open an issue or submit a PR!
This project welcomes contributions and suggestions. Most contributions require you to agree to a Contributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us the rights to use your contribution. For details, visit https://cla.opensource.microsoft.com.
When you submit a pull request, a CLA bot will automatically determine whether you need to provide a CLA and decorate the PR appropriately (e.g., status check, comment). Simply follow the instructions provided by the bot. You will only need to do this once across all repos using our CLA.
This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact opencode@microsoft.com with any additional questions or comments.
Microsoft takes the security of our software products and services seriously, which includes all source code repositories managed through our GitHub organizations, which include Microsoft, Azure, DotNet, AspNet and Xamarin.
If you believe you have found a security vulnerability in any Microsoft-owned repository that meets Microsoft's definition of a security vulnerability, please report it to us as described in SECURITY.md.
This project may contain trademarks or logos for projects, products, or services. Authorized use of Microsoft trademarks or logos is subject to and must follow Microsoft's Trademark & Brand Guidelines. Use of Microsoft trademarks or logos in modified versions of this project must not cause confusion or imply Microsoft sponsorship. Any use of third-party trademarks or logos are subject to those third-party's policies. Any use of third-party trademarks or logos are subject to those third-party's policies.
Happy Building! π
β Promptling & Team
Built with π for AI

















