An Azure service that enables users to identify content that is potentially offensive, risky, or otherwise undesirable. Previously known as Azure Content Moderator.
Hello Jonathan,
Thank you for your question. I understand the confusion here, as both Azure AI Content Safety and Azure AI Foundry Guardrails are closely related and often used together, but they are not the same component.
How these two fit together
At a high level, these are two layers in the same safety stack:
- Azure AI Content Safety (AACS) → the underlying service that performs classification and detection
- Azure AI Foundry Guardrails → a policy enforcement layer that uses those capabilities to automatically apply controls to your model/agent workflows
So, Guardrails is not a separate safety engine it relies on Content Safety models internally, but adds orchestration and centralized control.
Azure AI Content Safety (AACS)
This is the core service and provides the full set of safety capabilities.
It is exposed as a standalone Azure service (REST APIs, SDKs, Content Safety Studio)
You integrate it directly into your application code
You decide:
- When to call it
- What to check (input/output)
- How to handle the result
Capabilities include:
- Text moderation (harm categories)
- Image moderation
- Prompt injection detection (prompt shields)
- Groundedness checks
- Protected material detection
- Custom categories (trainable)
This gives you maximum flexibility, but also requires you to implement and maintain the logic.
Azure AI Foundry Guardrails
Guardrails is a managed feature within Azure AI Foundry designed to simplify safety enforcement.
Instead of calling APIs yourself, you:
- Define guardrail policies
- Attach them to models or agents
- The platform automatically enforces checks during execution
Where checks are applied:
- User input
- Tool calls
- Tool responses
- Model output
What Guardrails adds on top of AACS:
- Centralized policy definition
- Reusability across deployments
- Built-in enforcement
Feature coverage differences
This is an important distinction.
Guardrails currently exposes only a subset of Content Safety capabilities, primarily for text-based scenarios, such as:
- Core harm categories
- Prompt shields
- Protected material detection
- Text-based groundedness
Not currently exposed in Guardrails:
- Image moderation
- Multimodal scenarios
- Custom categories
For these scenarios, you will still need to call Azure AI Content Safety APIs directly.
Billing clarification
There is often confusion here.
- There is no separate charge for using Guardrails as a feature
- However, Guardrails internally invokes Content Safety models, and those calls are billed under Azure AI Content Safety usage
So effectively You are billed for the underlying safety evaluations, not for the Guardrails configuration layer
Task Adherence vs Text Adherence
These features are similar in intent but exist in different contexts:
Task Adherence (Content Safety Studio) → Part of the standalone Content Safety experience
Text Adherence (Foundry Guardrails) → Available within Guardrails (currently in preview)
Both aim to ensure that model outputs follow expected structure or instructions, but they are implemented in different product surfaces and are not interchangeable today.
• Azure AI Content Safety overview (REST/SDK, pricing, features): https://learn.microsoft.com/azure/ai-services/content-safety/overview
• Content Safety configuration for Model Catalog & Prompt Flow: https://learn.microsoft.com/azure/machine-learning/concept-model-catalog?view=azureml-api-2#content-safety
• Guardrails & controls overview in Microsoft Foundry: https://learn.microsoft.com/azure/foundry/guardrails/guardrails-overview
• Troubleshooting Content Filters in Azure AI Foundry: https://learn.microsoft.com/azure/ai-foundry/responsible-ai/openai/data-privacy?tabs=azure-portal#how-can-a-customer-verify-if-data-storage-for-abuse-monitoring-is-off • Content Safety (classic) in Foundry portal (try-it-out page): https://learn.microsoft.com/azure/foundry-classic/ai-services/content-safety-overview
I Hope this helps. Do let me know if you have any further queries.
Thank you!