Skip to Content
Building Agentic Solutions with Microsoft Foundry
book

Building Agentic Solutions with Microsoft Foundry

by Colby T. Ford
September 2026
Intermediate to advanced
260 pages
5h 50m
English
O'Reilly Media, Inc.
Content preview from Building Agentic Solutions with Microsoft Foundry

Chapter 7. Agent Management and Governance

Deploying an agent is the beginning, not the end, of your responsibility as an AI engineer. Once an agent is running in production, you need to answer a growing set of operational questions:

  • Is it staying on task?

  • Is it generating unsafe content?

  • Who owns it?

  • What is it costing?

  • Does it comply with your organization’s policies?

  • When something goes wrong at 2 a.m. with a fleet of fifty agents spread across three projects, do you have a single place to see what’s wrong?

Guardrails and Controls

Guardrails are Foundry’s runtime safety layer. They sit between user inputs, tool calls, tool responses, and model outputs, scanning each for a configurable set of risks and blocking or annotating content that exceeds your thresholds. Think of them as runtime type-checkers for AI behavior (i.e., they do not prevent you from building whatever you want, but they will surface violations at the exact point in the pipeline where they occur).

Controls, Risks, and Actions

A Guardrail is a named, reusable collection of Controls. Each control specifies three things:

Risk

What to detect: hate speech, prompt injection, task drift

Intervention point

Where in the pipeline to scan for that risk: user input, tool call, tool response, output

Action

What to do when the risk is detected: annotate or block

Let’s have a look at where you go to define Guardrails in the Foundry portal, and then we’ll unpack the concepts in more detail. Navigate ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

Microsoft Foundry in Action

Microsoft Foundry in Action

Eduardo Sojo
Agentic AI with Microsoft Foundry

Agentic AI with Microsoft Foundry

Balamurugan Balakreshnan, Sina Fakhraee, Jay Padhya, Minsoo Thigpen
Developing Apps with GPT-4 and ChatGPT

Developing Apps with GPT-4 and ChatGPT

Olivier Caelen, Marie-Alice Blete
AWS for Solutions Architects - Third Edition

AWS for Solutions Architects - Third Edition

Saurabh Shrivastava, Neelanjali Srivastav, Dhiraj Thakur

Publisher Resources

ISBN: 0642572309817Errata Page