Azure Document PII Redaction – HTTP 400 InvalidRequestBodyFormat

Abdessamad koubaa 0 Zuverlässigkeitspunkte
2026-11-19T21:09:49.96+00:00

Hello Microsoft Azure Team,

I am testing Azure AI Language Document PII Redaction to automatically redact personal information in PDF documents.

Environment:

  • Azure AI Language

Region: Germany West Central

Pricing tier: Free F0

API endpoint: /language/analyze-documents/jobs

API version tested: 2026-05-01

.NET 8 / C#

Working functionality:

Azure Document Intelligence OCR works.

Azure Language Text PII recognition works.

Azure Blob Storage uploads work.

Input SAS read access works.

Output SAS write access works.

Problem:

Document PII Redaction consistently returns:

HTTP 400 – InvalidRequest

Inner error: InvalidRequestBodyFormat

Message: "Invalid analysisInput in request."

The request contains analysisInput.documents, with Azure Blob source and Azure Container target locations, and a PiiEntityRecognition task.

The same error occurs with a small, entirely fictional TXT test file. This excludes the original PDF content as the sole cause.

My questions:

Is Document PII Redaction supported in Germany West Central on the F0 tier?

Which API version and exact JSON request structure should be used?

Does this feature require additional activation or permissions?

How can I successfully obtain a redacted PDF while preserving the document layout?

Thank you for your assistance.Hello Microsoft Azure Team,

I am testing Azure AI Language Document PII Redaction to automatically redact personal information in PDF documents.

Environment:

Azure AI Language

Region: Germany West Central

Pricing tier: Free F0

API endpoint: /language/analyze-documents/jobs

API version tested: 2026-05-01

.NET 8 / C#

Working functionality:

Azure Document Intelligence OCR works.

Azure Language Text PII recognition works.

Azure Blob Storage uploads work.

Input SAS read access works.

Output SAS write access works.

Problem:

Document PII Redaction consistently returns:

HTTP 400 – InvalidRequest

Inner error: InvalidRequestBodyFormat

Message: "Invalid analysisInput in request."

The request contains analysisInput.documents, with Azure Blob source and Azure Container target locations, and a PiiEntityRecognition task.

The same error occurs with a small, entirely fictional TXT test file. This excludes the original PDF content as the sole cause.

My questions:

Is Document PII Redaction supported in Germany West Central on the F0 tier?

Which API version and exact JSON request structure should be used?

Does this feature require additional activation or permissions?

How can I successfully obtain a redacted PDF while preserving the document layout?

Thank you for your assistance.

Azure Language in Foundry Tools
Azure Language in Foundry Tools

Ein Azure-Dienst, der Funktionen für natürliche Sprache wie Stimmungsanalyse, Entitätsextraktion sowie automatisierte Fragen und Antworten bereitstellt

0 Kommentare Keine Kommentare

Ihre Antwort

Antworten können von Fragestellenden als „Angenommen“ und von Moderierenden als „Empfohlen“ gekennzeichnet werden, wodurch Benutzende wissen, dass diese Antwort das Problem des Fragestellenden gelöst hat.