StudyToCert

All certifications / Azure AI Engineer / Lessons

Microsoft Certified: Azure AI Engineer Associate AI-102 · Domain 3: Implement an agentic solution

Azure AI Foundry Agent Service: agents, threads, messages and runs

▶ Watch the overview video

Last reviewed October 6, 2026 · Leer en español

Explain it simpler

Azure AI Foundry Agent Service is a hosted service that runs AI agents for you. It uses four building blocks. The agent is the job description: which model to use, what its instructions are and which tools it may use. A thread is one conversation, like a chat window, that keeps every message so the agent remembers what was said. A message is one entry in that conversation, from the user or the agent. A run is the moment you tell the agent: please read this conversation and respond now. Sometimes a run pauses because the agent wants your app to do something, like look up a record, and it waits until your app sends back the result. It is like a group chat where you tap a button to ask the helper to reply.

Professor Okafor's office at Brookfield University gets the same questions every semester: what is the late-submission policy, can I retake a quiz, who approves an extension. The IT team builds an assistant on Azure AI Foundry Agent Service, and in testing it answers beautifully, until a student asks a follow-up and the reply ignores everything said before. Another test hangs with a run that never finishes, sitting in a status nobody recognizes. The developer, Niamh, has the agent defined correctly. What she is missing is how the service's objects fit together. What exactly is a thread, a message and a run, and who is supposed to act when a run stops and waits?

Azure AI Foundry Agent Service is a managed service for building and hosting agents. It handles the parts that are tedious and error-prone to build yourself: storing conversation state, calling tools, managing files and vector stores for document search, applying content filters and recording traces. You define the agent, and the service runs the loop of model calls and tool calls on your behalf. You can create agents in the Agents page of a Foundry project, or in code with the Azure AI Projects or Agents SDKs (software development kits) for Python, C# and other languages.

Free account

Keep reading for free

Create a free StudyToCert account to read the rest of this lesson: 8 more sections, 6 key terms, a real-world example, an exam tip and self-check questions. Every lesson, lab and practice test is free with an account.

Sign up free Log in

Study Azure AI Engineer for free
A week-by-week plan with every lesson, quizzes, checkpoint tests, a practice exam and hands-on labs.
Open the Azure AI Engineer study plan