Chat Completions Skill not available with Purview Labels in Azure Search Indexer

Sigita Lapina 5 Reputation points
2026-09-03T12:46:02.73+00:00

Hello,

We are starting to introduce Microsoft Purview sensitivity labels, and as a result, we need to change how we create indexes in Azure AI Search.

According to the documentation, custom skills are listed as a limitation. The Chat Completion skill is not explicitly mentioned, but since it is implemented as a Custom Web API skill, it appears to be affected by this limitation.

Is there a plan to enable support for the Chat Completion skill when using Purview sensitivity labels?

I would also like to point out what appears to be errors in Step 4, Step 6 and Step 7 of the documentation.

The index definition should include the following fields and properties in Step 4:

{
  "name": "sensitivityLabelId",
  "type": "Edm.String",
  "filterable": true,
  "retrievable": true,
  "sensitivityLabelId": true
},
{
  "name": "sensitivityLabelName",
  "type": "Edm.String",
  "filterable": true,
  "retrievable": true,
  "sensitivityLabelName": true
},
{
  "name": "sourceDocumentId",
  "type": "Edm.String",
  "searchable": false,
  "filterable": true,
  "retrievable": true,
  "sourceDocumentId": true
}

In Step 6, 2 mappings seem to be missing, it should be:

{
	"name": "sensitivityLabelId",
    "source": "/document/metadata_sensitivity_label",
},
{
	"name": "sensitivityLabelName",
	"source": "/document/metadata_sensitivity_label_name"
},
{
	"name": "sourceDocumentId",
	"source": "/document/metadata_source_document_id"
}

There also seems to be a mistake in Step 7. The indexer needs these three field mappings:

"fieldMappings": [
  {
    "sourceFieldName": "metadata_sensitivity_label",
    "targetFieldName": "sensitivityLabelId"
  },
  {
    "sourceFieldName": "metadata_sensitivity_label_name",
    "targetFieldName": "sensitivityLabelName"
  },
  {
    "sourceFieldName": "metadata_source_document_id",
    "targetFieldName": "sourceDocumentId"
  }
]
Azure AI Search
Azure AI Search

An Azure search service with built-in artificial intelligence capabilities that enrich information to help identify and explore relevant content at scale.

0 comments No comments

1 answer

Sort by: Newest
  1. Jerald Felix 18,760 Reputation points Volunteer Moderator
    2026-09-08T03:51:35.66+00:00

    Hello Sigita Lapina ,

    Greetings! Thanks for raising this question in the Q&A forum

    The limitation applies specifically to the Custom Web API skill (#Microsoft.Skills.Custom.WebApiSkill). The Chat Completion skill, now documented as the GenAI Prompt skill, uses #Microsoft.Skills.Custom.ChatCompletionSkill. Despite the Custom namespace, Microsoft classifies it as a built-in Azure-hosted-model skill, not a Custom Web API skill. Therefore, the documented Custom Web API limitation does not identify the Chat Completion skill as unsupported.

    Use the required preview API version

    Configure the Purview-enabled index, data source, skillset, and indexer using api-version=2026-08-01-preview. The current Purview sensitivity-label indexing documentation requires this version.

    Use the current index schema

    The current schema uses one sensitivity-label field:

    {
      "purviewEnabled": true,
      "fields": [
        {
          "name": "sensitivityLabel",
          "type": "Edm.String",
          "filterable": true,
          "retrievable": true,
          "sensitivityLabel": true
        }
      ]
    }
    

    The separate sensitivityLabelId, sensitivityLabelName, and sourceDocumentId fields shown in the question are not part of the current documented 2026-08-01-preview configuration. The indexed label value is the label GUID. Applications that require the display name must resolve it through the Purview label APIs.

    Project the label when creating chunks

    When the skillset uses Text Split or another chunking pattern, map /document/metadata_sensitivity_label to the sensitivityLabel field in every projected chunk. Otherwise, labeled chunk rows will not be filtered correctly at query time.

    For a non-chunked index, the indexer mapping is:

    {
      "sourceFieldName": "metadata_sensitivity_label",
      "targetFieldName": "sensitivityLabel"
    }
    

    Use the Chat Completion skill as a built-in skill

    The Azure AI Search skills reference lists GenAI Prompt under built-in skills and Web API under custom skills. Its configuration is documented at GenAI Prompt skill.

    Escalate a reproducible service rejection

    If the indexer still returns an explicit unsupported-feature error for #Microsoft.Skills.Custom.ChatCompletionSkill, open an Azure Support request and include the complete indexer error, search service region, API version, UTC timestamp, request or correlation ID, and sanitized skillset definition. This would require service-side investigation because the published limitation only names the Custom Web API skill.

    If this answer helps you kindly accept the answer which will help others who have similar questions.

    Best Regards,

    Jerald Felix.

    Was this answer helpful?


Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.