What Prompt Shields does
Flags jailbreaks, hidden prompt injections and harmful content in Azure LLM apps and agents.
Prompt Shields flags user prompts that try to bypass system instructions or safety training (jailbreaks).
learn.microsoft.comPrompt Shields flags hidden instructions placed in documents, emails or web pages that try to hijack the model session (indirect attacks).
learn.microsoft.comProtected material detection flags known copyrighted text (lyrics, articles, recipes, web content) and protected code in LLM output.
learn.microsoft.comTask Adherence checks whether an agent's tool calls match the user's request.
learn.microsoft.comGroundedness detection checks whether LLM output is supported by the supplied source material (marked for retirement).
learn.microsoft.comIn Foundry, guardrails can be applied at four intervention points: user input, tool call, tool response and output.
learn.microsoft.comControls for AI systems
Features as Microsoft names them.
Good fit
Teams already building on Azure or Microsoft Foundry who want prompt injection and jailbreak screening billed per request, with a free tier of 5,000 text records a month to test against.
- Published usage pricing: $0.375 per 1,000 text records and $0.75 per 1,000 images on Standard, plus a free F0 tier
- Covers indirect attacks in third-party documents, with a preview Spotlighting option for extra protection
- Foundry guardrails apply at four points, including agent tool calls and tool responses (preview)
- Microsoft says prompts and completions aren't stored for filtering and customer data isn't used for training
Look elsewhere if
Teams with non-English traffic, inputs longer than 10K characters, or a need to run off Azure should look elsewhere, since Prompt Shields is trained mainly on English, caps prompt length, and its container options retire on April 30, 2027.
- Prompt Shields models are trained and evaluated mainly on English; protected material detection is English only
- Prompts capped at 10K characters, and documents at five per call totaling 10K characters
- In Foundry, document attack detection and Spotlighting are off by default, and Spotlighting raises token counts through base-64 encoding
- Groundedness detection, containers and several other preview features retire April 30, 2027, and some features may process data outside the resource's region
Prompt Shields pricing
Plans and list prices as published.
| Plan | Price | Billing | Source |
|---|---|---|---|
| Standard (S0) text records | $0.375 per 1,000 text records | monthly | prices.azure.com 2026-11-21 |
| Standard (S0) images | $0.75 per 1,000 images | monthly | prices.azure.com 2026-11-21 |
F0: 5,000 text records and 5,000 images per month; usage stops at the limit.
Coverage, deployment and compliance
What it watches, where it runs, and what it connects to.
Covers
Runs as
Integrations
Documented limits
- Prompt Shields: prompt up to 10K characters; up to five documents totaling 10K characters. learn.microsoft.com
- Prompt Shields models are trained and evaluated mainly on English. learn.microsoft.com
- Prompt Shields does not verify where submitted content came from. learn.microsoft.com
- In Foundry, document attack detection is off by default and spotlighting is off by default; spotlighting works only through the Chat Completions API. learn.microsoft.com
- Spotlighting adds no direct charge but base-64 encoding increases document tokens. learn.microsoft.com
- Protected material, groundedness and custom categories (standard) work in English only; other models cover eight languages. learn.microsoft.com
- Some features can process customer data outside the resource's region. learn.microsoft.com
- Text moderation requests are capped at 10k characters. learn.microsoft.com
Prompt Shields changes since 2025
Launches, deals and renames, newest first.
Alternatives to Prompt Shields
Amazon Bedrock Guardrails
The equivalent first-party guardrail service for teams building generative AI on AWS, with published pricing.
Profile→Google Cloud Model Armor
Google Cloud's first-party option for prompt injection, sensitive data leak and harmful content checks.
Profile→Check Point AI Guardrails
A cloud-neutral runtime guard plus red testing, now part of Check Point, for teams not tied to Azure.
Profile→Should you shortlist Prompt Shields?
For an Azure or Foundry shop, Prompt Shields is the cheapest way to add jailbreak and indirect injection screening, and the free tier makes a trial easy. Turn on document attack detection explicitly, test it against your own non-English and long-context traffic, and plan around the 2027 retirements before relying on containers or groundedness checks.
Sources (13)
- learn.microsoft.com/en-us/azure/ai-services/content-safety/overview
- learn.microsoft.com/en-us/azure/ai-services/content-safety/concepts/jailbreak-detection
- learn.microsoft.com/en-us/azure/ai-services/content-safety/concepts/protected-material
- learn.microsoft.com/en-us/azure/ai-services/content-safety/concepts/task-adherence
- learn.microsoft.com/en-us/azure/ai-services/content-safety/concepts/groundedness
- learn.microsoft.com/en-us/azure/foundry/guardrails/guardrails-overview
- learn.microsoft.com/en-us/azure/ai-services/content-safety/quickstart-jailbreak
- learn.microsoft.com/en-us/azure/ai-services/content-safety/whats-new
- learn.microsoft.com/en-us/azure/ai-services/content-safety/region-availability
- prices.azure.com/api/retail/prices?$filter=contains(productName,'Content%20Safety')%20and%20armRegionName%20eq%20'eastus'
- azure.microsoft.com/en-us/pricing/details/cognitive-services/content-safety/
- learn.microsoft.com/en-us/azure/ai-services/content-safety/faq
- learn.microsoft.com/en-us/azure/ai-foundry/responsible-ai/content-safety/data-privacy
Spotted something out of date? [email protected]