fai-pii-detection-setup - PII Detection and Masking Setup with Azure AI Language
Set up PII detection and masking using Azure AI Language and Presidio with layered middleware that scans LLM inputs and outputs.
Tags
Updated: 2026-06-30What this skill does
- detect PII entities in text
- mask PII from text
- hash PII from text
- remove PII from text
- block input containing PII
- scrub PII from LLM output
- log PII detection events
- emit PII leak metrics
Inputs
- Azure AI Language endpoint
- Azure Managed Identity credentials
- Text input for scanning
- PII configuration file
- LLM input and output text
Outputs
- Redacted text
- PII detection results with entity metadata
- Blocked input messages
- PII leak rate metrics
Requirements
- Azure AI Language service
- Presidio library (presidio-analyzer, presidio-anonymizer)
- Azure Managed Identity authentication
- Python runtime environment
- Application Insights or observability stack for monitoring
