Cloud service · Azure · Updated

Content Safety in Foundry Control Plane - Content Safety in Foundry Control Plane provides configurable moderation and safety guardrails for supported Azure AI models and agents within Microsoft Foundry governance.

In short

The service helps engineers detect harmful content and configure responses to risks in model inputs, outputs, and supported agent interactions. Its scope includes content moderation and related controls such as prompt attack detection, groundedness detection, and custom filtering, with enforcement determined by the model, agent type, protocol, modality, and enabled controls.

Cloud Services Hub →

9 key features of Content Safety in Foundry Control Plane

01
Configurable harm filtering

Evaluate supported content against hate and fairness, sexual content, violence, and self-harm categories. Configure supported blocking thresholds and test them against realistic workload content before deployment.

02
Input and output intervention points

Apply supported controls to user prompts and generated completions. Applications should distinguish rejected input from filtered output because the resulting API behavior differs.

03
Prompt Shields

Detect user attempts to bypass model instructions and indirect prompt attacks embedded in documents. Document attack detection is off by default and must be explicitly enabled where supported.

04
Custom filtering

Extend built-in controls with block lists and supported custom categories. Use these controls for workload-specific terms or content classes rather than assuming the default harm categories cover every organizational requirement.

05
Groundedness detection

Assess whether generated text is supported by supplied reference material. Use the result as an additional quality signal in retrieval-based applications, not as proof that an answer is factually correct.

06
Protected material detection

Supported controls identify text or code that matches known protected material or public repository code. Detection can support review and output-handling decisions but does not establish copyright ownership or permission.

07
Agent tool moderation

Preview intervention points can inspect tool calls and tool responses for supported Foundry agents and tools. Verify tool, model, and regional support before relying on these controls to protect downstream operations.

08
Text and image moderation capabilities

Azure AI Content Safety provides text, image, and supported combined text-image analysis capabilities that can complement inline Foundry guardrails. Select an API and integration path that explicitly supports the payload modality; inline agent moderation is not universal media inspection.

09
Protocol-aware hosted-agent configuration

Hosted-agent screening supports known Responses payloads and configured text locations in Invocations payloads. Validate custom request paths, response paths, and stream selectors because an attached policy alone does not ensure screening for Invocations.

Where Content Safety in Foundry Control Plane is used

  1. 01
    Customer-facing assistants

    Screen customer prompts and assistant responses for configured harm categories. Provide a clear fallback when input is blocked or output is filtered, and avoid repeatedly retrying the same blocked request.

  2. 02
    Retrieval-augmented generation

    Enable supported document attack detection for retrieved content and use groundedness detection to assess whether answers are supported by supplied references. Keep retrieval authorization and source access controls separate from moderation.

  3. 03
    Tool-using enterprise agents

    Apply preview tool-call and tool-response controls where the agent and tool support moderation. For example, inspect text returned by a knowledge lookup before the agent incorporates it into a response, while enforcing tool permissions independently.

  4. 04
    User-generated content workflows

    Use supported text and image analysis APIs to assess submitted content before publication. Route ambiguous or high-risk results to a review workflow instead of treating automated classification as infallible.

  5. 05
    Multitenant AI applications

    Apply tenant-appropriate thresholds and block lists through supported deployment or gateway configurations. Maintain tenant data isolation in projects, deployments, indexes, and application authorization because moderation policies do not provide that isolation.

How Content Safety in Foundry Control Plane is priced

Model inference and integrated guardrails

Budget for the selected model deployment and verify the pricing treatment of each enabled guardrail. This governance capability should not be treated as a separate universal subscription or as evidence that every safety feature is included without additional charges.

Direct Content Safety API usage

Separately invoked Azure AI Content Safety capabilities follow their applicable service meters and tier limits. Estimate usage by operation and workload volume, including any separate input and output analysis calls, and check current pricing for the required feature and region.

Supporting Azure infrastructure

Gateway, application compute, storage, and monitoring resources have their own charges. Include these costs when adding centralized moderation, asynchronous review, or detailed operational telemetry.

Services Content Safety in Foundry Control Plane works with

A common architecture places an application or API gateway in front of a Foundry model deployment and applies supported inline guardrails to prompts and completions. Azure API Management can add centralized checks and tenant-specific policy handling. Assign clear responsibilities to gateway checks, deployment guardrails, and application error handling so duplicate moderation does not add unnecessary latency or cost.

Retrieval-based applications add Azure AI Search for authorized document retrieval, then use supported document attack detection and groundedness controls at the appropriate processing stages. These controls complement retrieval security; they do not replace document permissions or tenant isolation. Tool-using agents require additional verification that each tool and intervention point supports moderation.

For upload moderation or other workflows outside inline coverage, application code or Azure Functions can call Azure AI Content Safety directly and route results to publication, rejection, or human review. Monitor outcomes through Azure Monitor or Application Insights using correlation identifiers, policy versions, latency, and failure metadata. Test malformed payloads and dependency failures as well as harmful content, particularly for custom Invocations payloads that can pass unscreened when text selectors do not match.

Azure OpenAI in Foundry Models

Configure supported guardrails on model deployments to inspect prompts and completions inline. For example, a support assistant can block medium- and high-severity core harms while the application handles rejected requests and filtered responses explicitly. Audio transcription prompts and completions are outside this guardrail coverage.

Foundry Agent Service

Attach the appropriate responsible AI policy to a supported agent and configure its protocol-specific moderation settings. For example, a hosted agent using Invocations must identify the text fields in its custom request and response payloads. Preview tool moderation applies only to supported tools, and registering an external agent in governance does not apply these guardrails to its runtime.

API Management

Use the llm-content-safety gateway policy for supported centralized content checks and tenant-specific thresholds or block lists. For example, enable shield-prompt for user input and configure enforce-on-completions or an outbound policy to validate model output. Coordinate gateway and deployment policies to avoid unintended duplicate checks, latency, and charges.

Azure Functions

Use application code in Azure Functions to invoke supported Content Safety APIs when native inline guardrails do not cover a workflow. For example, a blob-triggered function can submit an uploaded image for analysis and route the result to publication or manual review. Configure retries, idempotency, and explicit behavior for moderation failures.

Azure Monitor

Instrument application handling of moderation results and failures using supported diagnostics and custom telemetry. For example, track blocked-request counts, moderation latency, and parsing failures by deployment and policy version. Prefer metadata over raw prompts and completions, and apply appropriate access controls and retention to any sensitive diagnostic content.

Azure Resource Manager

Foundry exposes responsible AI policies and content-filter blocklists as Azure Resource Manager resource types. An infrastructure template can create a content-filter policy and reference it when deploying a supported model.

Azure role-based access control (Azure RBAC)

Azure RBAC controls who can manage Foundry content-safety policies and related resources. For example, a platform team can grant administrators permission to change a filter policy without granting that permission to everyone who uses the model.

Foundry Models

Content Safety applies configurable filters inline to prompts and completions for supported Foundry Models deployments, including eligible partner and community models. Administrators can select a filter configuration per deployment.

Microsoft Entra ID (formerly Azure AD)

Foundry authenticates administrators and automation with Microsoft Entra ID when they manage content-safety policies. A deployment pipeline can use a managed identity and the appropriate Azure role to update a guardrail without storing a service credential.

Microsoft Foundry

Foundry provides the management interface for creating guardrails, choosing what to scan and how to respond, and assigning the configuration to supported models and agents. For example, an administrator can configure a deployment to block harmful prompts while applying a different threshold to generated responses.

What is Content Safety in Foundry Control Plane

2 min read

Content Safety in Foundry Control Plane is the content moderation and guardrail capability associated with Microsoft Foundry governance, previously called Foundry Control Plane. It helps teams configure safety controls for supported model and agent workloads. The broader moderation scope includes text, images, and video scenarios, but individual APIs and runtime guardrails have different modality support. Do not assume that a policy attached to a text-based agent automatically screens image attachments, video streams, or every tool payload.

Foundry guardrails use classification models from Azure AI Content Safety. A guardrail is a named collection of controls that specifies risks to detect, intervention points to inspect, and actions to take when risks are detected. Model controls can inspect user input and generated output. Agent controls can also inspect tool calls and tool responses where moderation is supported; these tool intervention points and agent content safety guardrails are in preview.

The four core harm categories cover hate and fairness, sexual content, violence, and self-harm. The default Medium blocking level blocks content classified at medium or high severity. Core-harm filtering and user prompt attack detection are enabled by default, while document attack detection must be enabled explicitly. Other controls have their own defaults, availability constraints, and configuration or approval requirements. Validate each required control rather than treating the default policy as a complete application safety configuration.

Runtime coverage is an important architectural boundary. Foundry guardrails apply to Foundry Models sold by Azure, with an exception for prompts and completions processed by audio transcription models. Agent guardrails apply to agents developed in Foundry Agent Service, not every external agent registered in Foundry governance. Registration and management visibility do not establish runtime moderation.

For hosted agents using the Responses protocol, configure the agent's responsible AI policy so Foundry can locate text in the known request and response structures. For the Invocations protocol, also configure moderation settings that identify text within custom payloads. Incorrect paths, parsing failures, stream selectors that select no text, and size limits can leave content unscreened. Invocations WebSocket does not support content safety moderation.

Separate management permissions from runtime permissions. Resource configuration uses control-plane authorization, while content safety calls and inference use data-plane authorization. In application code, handle blocked inputs, filtered outputs, timeouts, and unavailable moderation explicitly. Test representative benign and adversarial content, measure false positives and false negatives, and repeat evaluation after policy or model changes. Use metadata-focused telemetry by default, because raw prompts and completions can contain sensitive information.

Azure architecture icons are the property of Microsoft. BlowStack is not affiliated with or endorsed by Microsoft.