Validate Azure OpenAI On Your Data Citations Before Migration
Azure OpenAI On Your Data retired on October 14, 2026, but its citation records still sit in production histories and migration test suites. This guide validates the legacy response context, resolves each displayed reference to a returned citation, checks source support and authorization, and preserves evidence before a Foundry IQ cutover.

Azure OpenAI On Your Data retired on October 14, 2026. Its citation contract still matters wherever a production archive or regression fixture contains legacy responses. Migration comparisons can contain them too. Microsoft placed citations in the assistant message context, with source content and optional locator fields. These fields include title and URL. File path and chunk identifier are also optional. A validator should prove that every reference shown to a user resolves to one of those returned objects and that the cited text supports the nearby claim.
TL;DR
- Treat On Your Data as a retired legacy surface. Limit citation validation to migration and historical evidence.
- Validate the assistant message context and every citation field before rendering a reference.
- Resolve displayed references to returned citation objects, then test source support and user authorization separately.
- Preserve the response and citation fingerprints in one evidence record. Include the policy decision and migration verdict.
The legacy response contract still needs a gate
Microsoft's On Your Data concept documentation says the feature retired on October 14, 2026 and directs affected applications toward Foundry IQ migration paths. It also tells migration teams to resolve citations and verify source support before cutover. That makes citation validation a retirement control: it helps you understand the behavior you are replacing and prevents a legacy fixture from becoming an unexamined acceptance oracle.
Search application code and captured requests for the legacy data_sources field or the older /extensions/chat/completions path. Label each fixture with its API version because Microsoft changed the path and response placement across versions. A migration suite that mixes both shapes under one parser can report a clean result while silently discarding citations from half its samples.
I would delete a migration scorecard before accepting a green box that only says "answer matched." The source trail is part of the behavior under test. The Azure OpenAI security guide covers the surrounding identity and resource controls; this guide stays with the returned answer and its evidence.
Parse context before rendering references
Microsoft's On Your Data API reference defines context on the assistant message. Its citations array contains retrieval results used to generate that message. The citation content field is required. title and url are optional. filepath and chunk_id are optional too.
Start with structural checks:
- Confirm the response contains the expected assistant choice and message shape for the recorded API version.
- When the answer presents references, require a
context.citationsarray and reject a scalar or object in its place. - Require non-empty citation content after Unicode normalization and size checks.
- Type-check every optional locator. Accept URLs only under an approved scheme and source policy.
- Preserve unknown fields for investigation while keeping them outside renderer decisions.
Optional means the renderer needs a fallback. A missing URL should produce a plain source label using an approved title or file path, never a fabricated link. A missing chunk_id removes one locator; it does not erase the returned source content.
The LLM response content filter guide explains response holds at the HTTP boundary. Citation parsing belongs inside that hold before the application releases linked text.
Reference resolution and source support are separate tests
Reference resolution asks whether the answer's displayed marker points to a citation object returned with the same response. Source support asks whether that object's content substantiates the nearby assertion. A perfect array index can still point at an irrelevant chunk.
Normalize the marker format your application renders, then resolve each marker against the bounded citation collection. Reject negative indexes and out-of-range values. Reject duplicated aliases and markers that resolve differently after a display transformation. Also flag returned citations that the final answer never uses. Unused retrieval evidence can expose a prompt or rendering change during migration.
Run the support test at claim level. Break the answer into factual assertions and associate each cited assertion with its resolved citation content. Then assign a verdict such as supported, contradicted, insufficient, or unverifiable. Keep the model or ruleset version used by that evaluator. High-impact answers deserve deterministic checks or human review instead of another unrecorded model judgment.
A yellow sticky note reading citation 3 beside a printed answer is a useful design test. If the reviewer cannot draw one unbroken line to the exact returned chunk and authorized source, the application has a display feature rather than evidence.
Authorization survives retirement and migration
A citation may be structurally valid and semantically relevant while exposing a document the caller lacked permission to retrieve. Microsoft includes per-user authorization in its On Your Data migration acceptance checklist. Enforce that authorization in the backend on the initial question and every follow-up request.
Bind the validation record to the authenticated user or agent and tenant. Include the corpus and index version. Preserve the authorization snapshot. For each citation, store a stable source identifier that can be checked against the caller's permitted document set. A title or URL supplied by retrieval is presentation metadata. The backend supplies the authorization decision.
Re-run permission-denied fixtures during migration. The replacement should refuse or omit restricted material under the same caller context. Compare authorized source identifiers rather than expecting identical chunk numbers because a new chunking pipeline can split the same document differently.
The post-authentication gap guide covers the wider distinction between verified identity and permission for a specific AI request. Citation release is one of those request-specific decisions.
The migration ledger needs evidence at claim level
Create one append-only record per evaluated response. Begin with a digest of the legacy request and its API version. Record the deployment, authenticated principal, and policy version. Store the response digest and citation count beside it. Store normalized source digests there as well. Add marker-resolution outcomes and claim-support verdicts. Include authorization results and the evaluator version. Record the reviewer identity when used and the final release or hold decision.
For Foundry IQ comparison, store the replacement response under a separate operation identifier and link both records through a migration case ID. Compare the required behavior through source authorization, resolvable references, support for material claims, and handling of unsupported questions. Exact wording is a weak acceptance criterion for generated answers.
Test malformed fixtures on purpose. Remove context and change citations into an object. Omit required content or insert a non-HTTP URL. Point a marker past the end of the array or duplicate a displayed marker. Return a relevant chunk from an unauthorized document. Each case needs a named failure rather than a generic parser exception.
The AI audit log schema guide provides a pattern for identity, policy, and outcome fields. Add citation and migration fields without placing raw source content in every operational log.
DeepInspect
DeepInspect can inspect authenticated HTTP AI requests and responses deliberately routed through its proxy. It can enforce the approved legacy or replacement route and apply identity and data policy. It can hold a response for an external citation-validation result and record the supplied verdict with the route and policy decision.
The application or migration service remains responsible for parsing the legacy schema and resolving display markers. It must also evaluate source support and check corpus authorization. DeepInspect visibility covers traffic deliberately routed through its proxy. Control-plane index configuration requires separate inventory evidence. Carry the validator result into the decision context rather than asking the proxy to invent missing retrieval evidence.
Book a technical deep dive at deepinspect.ai.
Frequently asked questions
- Should a new application use Azure OpenAI On Your Data?
Microsoft states that Azure OpenAI On Your Data retired on October 14, 2026 and is no longer supported. Use the retained documentation for historical interpretation and migration testing. Follow Microsoft's current Foundry IQ guidance for replacement designs.
- Are all four citation locator fields always present?
No. Microsoft's legacy citation schema marks citation content as required and the other locator fields as optional. Render a source only from fields actually returned and approved by policy. Never manufacture a URL from a file path.
- Does a valid citation index prove the answer is grounded?
It proves only that the reference resolves to a returned citation object. A separate support test must compare the nearby factual assertion with the citation content. Authorization is another independent decision.
- Can migration acceptance compare exact citation IDs?
Chunk identifiers can change when indexing and chunking change. Compare stable source identity and caller authorization. Also compare factual support and reference resolution. Preserve old and new chunk identifiers as implementation evidence rather than treating equality as the goal.