Microsoft - AI-102 Study Guide

    3: Implement an agentic solution

    This chapter builds production-grade agentic systems on Microsoft Foundry, working through agent resource topology, the Foundry Agent Service tool catalog, the Microsoft Agent Framework orchestration layer, multi-agent and multi-user workflow design, and the tracing, evaluation, and deployment steps required to ship an agent. The focus is the decision points that separate an agent from a chat completion call and the safety, observability, and cost controls required for a managed agent runtime on Azure.

    Learning Objectives

    By the end of this chapter, you will be able to:

    • Decide when an agent is the right architecture versus a plain prompt flow, chat completion, or RAG pipeline.
    • Provision the Foundry account, project, model deployment, storage, search, and identity resources required by the Foundry Agent Service.
    • Build agents with the Foundry Agent Service using the agents, threads, runs, and messages object model, wiring up file search, code interpreter, function calling, OpenAPI, Azure Function, Bing grounding, Azure AI Search, Microsoft Fabric, and SharePoint tools.
    • Compose complex agents with the Microsoft Agent Framework, including plugins, middleware, state management, and integration with the Foundry Agent Service backend.
    • Orchestrate multi-agent workflows with sequential, concurrent, group chat, handoff, and Magentic patterns, including multi-user thread isolation and autonomous halting conditions.
    • Test agents with the AI red teaming agent and Foundry agent evaluators, instrument them with OpenTelemetry tracing, and deploy them through a managed CI/CD pipeline with versioning and rollout controls.

    Executive Summary

    • The Foundry Agent Service is the managed agent runtime on Microsoft Foundry, exposing agents, threads, runs, run steps, and messages over the Foundry project endpoint, with built-in tools and bring-your-own storage and search options.
    • The Microsoft Agent Framework is the open-source orchestration library that supersedes Semantic Kernel and AutoGen, hosting agents either standalone against Foundry Models or as a client over the Foundry Agent Service backend.
    • Multi-agent systems are built either as connected agents inside the Foundry Agent Service or as workflows in the Microsoft Agent Framework, picking from sequential, concurrent, group chat, handoff, or Magentic patterns based on workload structure.
    • Production deployment requires Microsoft Entra ID auth through DefaultAzureCredential, OpenTelemetry tracing into Application Insights, Foundry agent evaluators wired into the CI pipeline, and an AI red teaming pass before a public rollout.

    Assumptions

    • The chapter assumes a Foundry account with kind AIServices is already provisioned at the resource level and that a Foundry project is the deployment target, as covered in Chapter 1.
    • A chat-capable model deployment of GPT-4.1, GPT-4o, or a comparable Foundry Models entry is already available in the project, with throughput sized per Chapter 2 guidance.
    • All code samples use Microsoft Entra ID through DefaultAzureCredential. Account key authentication is the lower-security fallback and is not the recommended production path.
    • Service names follow the Foundry rebranding: Foundry Agent Service, Foundry Models catalog, Foundry projects. The legacy names Azure AI Agent Service and Azure AI Studio are flagged where they appear in older documentation.

    Sections in this chapter

    1. Free
    2. Free with account
    3. Free with account
    4. Free with account
    5. Free with account
    6. Free with account
    7. Free with account