Skill 1.4.1
Configure safety filters, guardrails, risk detection, and content moderation
Key Concepts
A guardrail in Microsoft Foundry is a named collection of controls. Each control names a risk, the intervention points where it is scanned (user input, tool call, tool response and output; the two tool points apply to agents only) and the action (annotate, or annotate and block). Content risks (hate, sexual, self-harm, violence) use blocking levels: Low blocks only high-severity content and High blocks low, medium and high severity. Other risks include user prompt attacks (jailbreaks), indirect attacks, protected material for text and code, and, in preview, groundedness, personally identifiable information (PII) and task adherence.
Model deployments use the Microsoft.DefaultV2 guardrail unless another is assigned. An agent inherits its model deployment's guardrail until an agent guardrail is assigned, which then fully overrides the model's. Custom blocklists add exact terms that must always be blocked. For content that does not pass through a Foundry model, such as user uploads, the Azure Content Safety APIs analyze text and images directly and return severity scores that the application acts on.