Prepstellar
Get it on Google Play

AI-103 · Getting started

22 cards

Foundry Agent Service at a Glance

Swipe, scroll or use ← →
  1. What the service does for you

    A model on its own answers a prompt. An agent goes further: it follows instructions, picks tools, and acts. Running that reliably means hosting, scaling, identity, and monitoring, and that is the work Foundry Agent Service takes off your hands.

    Foundry Agent Service is a managed platform for building, deploying, and scaling AI agents. It works with any framework, any supported model from the Foundry model catalog, and a single entry point for model inference and tools.

    Its Agent Runtime hosts and scales prompt agents and hosted agents, and manages conversations, tool calls, and the agent lifecycle. Around the runtime sit the other components:

    Component Job
    Toolboxes Curate tools once and share them through one managed MCP endpoint
    Models Many catalog models, swappable without code changes
    Observability End-to-end tracing, metrics, evaluations, Application Insights
    Optimization Agent optimizer (preview) improves instructions, skills, tool descriptions, and model choice
    Identity and security Microsoft Entra identity, RBAC, content filters, network isolation
    Publishing Versions, stable endpoints, sharing to Teams and Microsoft Copilot
    1 / 22
  2. What the service does for you

    The table in words: Toolboxes curate tools once and share them through one managed MCP endpoint. Models come from the catalog and can be swapped without code changes. Observability gives end-to-end tracing, metrics, evaluations, and Application Insights integration. The Agent optimizer, in preview, evaluates agent behavior and improves instructions, skills, tool descriptions, and model selections. Identity and security bring Microsoft Entra identity, RBAC, content filters, and virtual network isolation. Publishing versions agents, creates stable endpoints, and shares them through Microsoft Teams, Microsoft Copilot, and the Entra Agent Registry.

    When a question names a job, map it to its component: hosting and scaling is the runtime, seeing every decision is observability, and sharing tools across agents is a toolbox.

    2 / 22
  3. Quick check

    Which Agent Service component hosts and scales agents and manages their conversations and tool calls?

    1. AObservability

      Observability traces and measures what an agent does. It watches the agent rather than hosting it.

    2. BThe Agent Runtime

      Right. The Agent Runtime hosts and scales prompt agents and hosted agents, and manages conversations, tool calls, and lifecycle.

    3. CA toolbox

      A toolbox curates tools and serves them through one endpoint. It does not run the agent.

    3 / 22

  4. Models, instructions, and tools

    Every agent combines the same three ingredients. A prompt agent is defined entirely through configuration, including instructions, model selection, and tools. The instructions say what the agent should do, the model does the reasoning, and the tools let it act.

    The model comes from the Foundry model catalog, such as GPT-4o, Llama, or DeepSeek, and you can swap models without changing your agent code. That makes the model a replaceable part: try a different one for cost or quality and keep the rest of the agent as it is.

    Agents act on the world through tools. Foundry offers built-in tools such as web search, file search, code interpreter, and memory, and you can add custom tools through functions, OpenAPI specs, and MCP servers.

    4 / 22
  5. Models, instructions, and tools

    Sorting tools is a frequent exam move. Built-in tools cover general jobs that any agent might need:

    Kind Examples Use when
    Built-in Web search, file search, code interpreter, memory The job is general: search the web or your files, run code, remember
    Custom Functions, OpenAPI specs, MCP servers The job is yours: your API, your service, your logic

    So an agent that must call an internal inventory API described by an OpenAPI spec needs a custom tool built from that spec. Web search, file search, and the code interpreter do useful work, but none of them calls your private API.

    5 / 22
  6. Quick check

    An agent must call the company's internal order API, which is described by an OpenAPI spec. What do you add?

    1. AThe built-in web search tool

      Web search reaches public web content and cannot call a private business API.

    2. BThe built-in code interpreter

      The code interpreter runs code for the agent; it is not how an agent calls a described API.

    3. CA custom tool from the OpenAPI spec

      Right. Functions, OpenAPI specs, and MCP servers are the ways to add custom tools for your own systems.

    6 / 22

  7. Toolboxes and tool authentication

    As agents multiply, wiring the same tools into each one becomes a maintenance job. A toolbox groups tools into a single, reusable unit behind one managed MCP-compatible endpoint that any agent or runtime can consume. Toolboxes centralize authentication, governance, and versioning, so you update tools in one place instead of rewiring every agent. You create a new version, test it, and promote it to default when you are ready.

    Tools often call protected systems, so each connection needs a way to authenticate. Tool connections can authenticate with key-based access, Microsoft Entra using the agent's or the project's managed identity, OAuth identity passthrough (On-Behalf-Of), or unauthenticated access where appropriate.

    7 / 22
  8. Toolboxes and tool authentication

    Choose the option by asking whose identity the remote system should see.

    Option The remote system sees
    Key-based access Whoever holds the key
    Microsoft Entra managed identity The agent or the project
    OAuth identity passthrough (On-Behalf-Of) The signed-in user
    Unauthenticated No identity at all

    When a remote MCP server must apply the signed-in user's own permissions, OAuth identity passthrough is the fit, because it carries the user's identity through to the server. A managed identity is right when the agent itself is trusted, and a key only proves possession of the key.

    8 / 22
  9. Quick check

    A remote MCP server must enforce each signed-in user's own permissions when the agent calls it. Which authentication option fits?

    1. AOAuth identity passthrough, On-Behalf-Of

      Right. On-Behalf-Of passes the user's identity through, so the server applies that user's permissions.

    2. BThe project's managed identity

      A managed identity represents the project or agent, so every user would look the same to the server.

    3. CKey-based access

      A key proves that the caller holds the key. It says nothing about which user is behind the request.

    9 / 22

  10. Keep your progress in the app

    That’s 3 of 8 quick checks. In the app they stay answered, and every lesson remembers where you left off.

    Get it on Google Play Keep reading here
  11. Three agent types

    Agent Service offers three agent types, and the choice sets how much you build versus how much Foundry manages.

    • Prompt agents are the fastest path: you define instructions, a model, and tools, and Foundry runs the agent with no code or infrastructure to manage.
    • Voice-based prompt agents are managed real-time voice agents: you configure the model, instructions, audio, and tools, then connect through Voice Live over a real-time WebSocket.
    • Hosted agents give the most control: you bring your own code and framework, and Foundry runs it as a container with a managed endpoint, scaling, and identity.

    Prompt agents can be authored portal-first, in the Foundry portal and its playground, or code-first, through the SDK or REST API in a deployment pipeline. Either way, Foundry runs the agent, and there is no application code or container for you to maintain.

    10 / 22
  12. Three agent types

    The quickest way to choose is a short sequence of questions.

    Code that already runs elsewhere calls the Responses API, your own code becomes a hosted agent, real-time voice uses a voice-based prompt agent, and everything else starts as a prompt agent.yesnoyesnoyesnoCode runselsewhere?Responses APIephemeral agentYour owncode?Hosted agentyour containerReal-timevoice?Voice agentvia Voice LivePrompt agent
    Ask the questions in this order. Each yes moves more of the work from Foundry to you, except the voice branch, which stays fully managed.
    11 / 22
  13. Three agent types

    Prompt agent Voice-based prompt agent Hosted agent
    Runtime code to maintain None None for voice orchestration Yes, your agent logic
    Compute to manage None, fully managed None, fully managed Container compute, Foundry-managed
    Endpoint Managed Real-time WebSocket Managed
    Cost Inference per call plus tool usage Voice Live and model usage Inference plus tool usage plus container compute

    In words: neither prompt agent type leaves runtime code or compute for you to manage, while a hosted agent runs your agent logic on Foundry-managed container compute. Prompt agents are best for a fast start and production agents without custom orchestration logic.

    12 / 22
  14. Quick check

    For a text-based internal helper, which agent type needs no runtime code, no compute to manage, and is the fastest path?

    1. AA hosted agent container

      A hosted agent runs your own agent logic in a container, so there is code for you to maintain.

    2. BA voice-based prompt agent

      Voice-based prompt agents are also managed, but they exist for real-time spoken conversations, not a text helper.

    3. CA prompt agent

      Right. A prompt agent is configuration only, and Foundry runs it fully managed.

    13 / 22

  15. Hosted agents up close

    Hosted agents can be built with Agent Framework, LangGraph, the OpenAI Agents SDK, the Anthropic Agent SDK, the GitHub Copilot SDK, or your own code. You ship a hosted agent as a container image or as a .zip file of your source code, and Foundry builds the image for you when you bring a .zip file.

    Foundry then runs it with a managed endpoint, automatic scaling, a dedicated Microsoft Entra identity, session-level state persistence, and end-to-end observability. Under the hood, your code calls your Foundry project endpoint for model inference and tool orchestration, so catalog models and platform tools stay available.

    Hosted agents are best for agents that call into your own custom code, and secondarily for custom orchestration logic, multi-agent systems, and custom protocols.

    14 / 22
  16. Hosted agents up close

    The trade-off shows up in the bill. For cost, prompt agents are billed per call for inference plus tool usage, while hosted agents add container compute on top.

    Picture a team whose agent calls its own Python library and orchestrates steps with LangGraph, and that wants Foundry to handle the endpoint, scaling, and identity. A prompt agent with function tools is tempting, but prompt agents suit agents without custom orchestration logic. Running the code on its own servers against the Responses API would work too, but then the team hosts and scales it. A hosted agent is the fit.

    15 / 22
  17. Quick check

    Which cost line appears for a hosted agent but not for a prompt agent?

    1. APer-call inference

      Per-call inference is billed for both agent types, so it does not separate them.

    2. BContainer compute

      Right. A hosted agent runs your code in a container, and that container compute is the added cost.

    3. CTool usage

      Tool usage is part of the cost model of both types.

    16 / 22

  18. Voice-based prompt agents

    Voice-based prompt agents run real-time spoken conversations. Foundry Agent Service manages the agent lifecycle and uses Voice Live for speech recognition, turn taking, model interaction, and speech synthesis. Voice-based agents are in preview, so check support and availability before relying on them in production.

    Two architectures are available:

    • A native speech-to-speech architecture uses a realtime model that handles spoken input and output directly, and it is optimized for natural, low-latency conversation.
    • A cascaded architecture chains speech recognition, a text model, and speech synthesis.

    The cascaded one is the controllable one. It provides broader text-model and Azure voice choices and explicit control over transcription, phrase lists, turn detection, and interim responses, but each stage contributes to end-to-end latency. Native speech-to-speech is the low-latency choice, and its supported settings and voice families depend on the selected model.

    17 / 22
  19. Quick check

    A voice agent must recognize unusual product names through a phrase list and use a chosen Azure voice. Some extra latency is acceptable. Which architecture fits?

    1. ACascaded text model

      Right. The cascaded chain offers broader Azure voice choices and explicit control over transcription and phrase lists, at the cost of latency per stage.

    2. BNative speech-to-speech

      Native speech-to-speech favors low latency, and its voices and settings depend on the selected model. The cascaded chain explicitly offers the requested voice choices and controls.

    3. CA text-only prompt agent

      A text prompt agent does not handle real-time audio at all.

    18 / 22

  20. Agents without an agent resource

    Sometimes the agent code already lives in your own application. If you already run agent code elsewhere, you can call the Responses API directly to use Foundry models and tools, with no agent resource to manage.

    This builds an ephemeral agent: its instructions, tools, and model live in your application code instead of as a persisted resource in Foundry. Each call assembles the agent in your process and runs it, so there is no agent to create, update, or delete in Foundry. The definition then versions alongside the rest of your code through source control and code review.

    You still keep Foundry capabilities: catalog models, platform tools, project-scoped data, On-Behalf-Of authentication, and project-level observability and governance, all through your Foundry project endpoint.

    The trap is the code-first prompt agent. It also lives in source control, but it creates a persisted agent resource that someone has to keep in sync with the app. Calling the Responses API directly keeps the agent definition in your app code without creating a Foundry agent resource.

    19 / 22
  21. Quick check

    A team wants its agent definition reviewed in pull requests with the app code and no agent resource to keep in sync in Foundry. What should it use?

    1. AA code-first prompt agent

      Code-first prompt agents are in source control, but they still create a persisted agent resource in Foundry.

    2. BA published agent with a stable endpoint

      Publishing promotes an agent to a managed resource, which adds a resource instead of avoiding one.

    3. CDirect calls to the Responses API

      Right. Calling the Responses API builds an ephemeral agent whose definition lives only in the app's code.

    20 / 22

  22. From first build to a shared agent

    Agent Service supports the full cycle: create, test, trace, evaluate, optimize, publish, and monitor. You test in the agents playground, inspect every model call and tool invocation with tracing, run evaluations to catch regressions, and track performance with service metrics and dashboards.

    As you iterate, versions are captured automatically, so you can roll back to any previous version or compare versions. Publishing promotes an agent to a managed resource with a stable endpoint, and published agents can be shared through Microsoft Copilot and Teams and the Entra Agent Registry. For agent-to-agent communication the service supports the A2A protocol: A2A v1.0 is generally available, and v0.3 remains in preview.

    On security, each agent can have a dedicated Microsoft Entra identity, and integrated content filters help mitigate prompt injection risks, including cross-prompt injection.

    21 / 22
  23. Quick check

    After a change, an agent starts answering worse than yesterday. What does Agent Service offer to recover quickly?

    1. ARolling back to an earlier version

      Right. Versions are captured automatically as you iterate, so you can roll back to a previous one or compare versions.

    2. BRebuilding the agent from scratch

      A rebuild throws away work that versioning already preserves.

    3. CDeleting and re-creating its endpoint

      The endpoint is not the problem. The agent definition changed, and rolling back the version restores it.

    22 / 22

  24. 8 quick checks · then the test

    In the app, finishing the quick checks opens this lesson’s 10-question test, and the ones you miss come back exactly when you’re about to forget them.

← Previous Get it on Google Play Next card →

The whole course, on your phone

Lessons you can read, audio you can listen to on the way to work, and practice that remembers what you got wrong.

Get it on Google Play

“This app is the ‘One Lake’ for preparing the certification exams. Really worth it.”

Abdelhak Y. Google Play review