Overview
Bifrost Enterprise supports Azure AI Language PII as a guardrail provider for detecting personally identifiable information in request and response text. This provider is separate from Azure Content Safety. Azure Content Safety focuses on harmful content, jailbreaks, and blocklists. Azure AI Language PII focuses on PII entity recognition.How It Works
- You create an Azure AI Language resource.
- You create a Bifrost guardrail provider with
provider_name: "azure-pii". - You optionally choose PII categories, language, model version, and domain.
- You attach the provider to one or more guardrail rules.
- Bifrost calls Azure Language PII analysis for selected request or response text.
- Bifrost applies the configured
action.
Capabilities
- PII detection through Azure AI Language
- Category filtering with
pii_categories - Optional
phidomain for protected health information scenarios - API key, default credential, and Entra ID authentication
detect_only,block, andredactactions- Bifrost-managed redaction strategies and modes
Configuration Fields
For the full redaction behavior matrix, see Guardrail Redaction.
Configuration
- Web UI
- API
- config.json
- Helm
- Go to Guardrails > Providers.
- Select Azure AI Language PII.
- Click Add Configuration.
- Enter the endpoint and authentication settings.
- Optionally choose PII categories, language, model version, and domain.
- Choose an action. Select Redact to enable Bifrost-managed redaction.
- If redacting, choose the redaction strategy and mode.
- Save the configuration and attach it to a guardrail rule.
Authentication Modes
Category Filters
Leavepii_categories empty to let Azure evaluate all supported categories for the selected language, model, and domain. Set pii_categories when you want a narrower policy, such as Email, PhoneNumber, or USSocialSecurityNumber.
Bifrost requires
string_index_type: "UnicodeCodePoint" because Azure’s returned offsets must map correctly back to Bifrost’s text ranges. Other Azure string index modes are rejected during configuration validation.Operational Notes
- The default action is
detect_only, so setaction: "redact"oraction: "block"when you want enforcement. domain: "phi"enables Azure’s protected health information domain where supported by the service.logging_opt_outcontrols Azure service-side logging behavior; it is separate from Bifrost’s own content logging settings.- Redaction modes affect Bifrost runtime payloads, Bifrost logs, and trace-export connectors as described in Guardrail Redaction.

