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

2 answers

Sort by: Most helpful
  1. Tajamul Khan 0 Reputation points
    2026-11-26T03:48:09.4333333+00:00

    I would treat this as a feature compatibility issue before assuming the indexer configuration is incorrect.

    The important detail is that enabling Microsoft Purview sensitivity labels changes the security requirements of the indexing workflow.

    I have worked on document extraction and RAG applications, and for sensitive enterprise documents I would separate content enrichment from the enforcement of document access policies.

    Consider a simple example.

    • Document A contains general product information.

    Document B contains restricted financial information.

    Both documents are indexed for enterprise search.

    A generative enrichment skill attempts to process both documents.

    The important question is whether the enrichment operation is supported when sensitivity label enforcement is enabled, not simply whether the model can process the document text.

    I would investigate this in the following order.

    Confirm the Azure AI Search API version.

    Check the documented compatibility of the GenAI Prompt skill with Purview-enabled indexing.

    Reproduce the failure using one synthetic document and a minimal skillset.

    Compare indexer creation with and without the generative enrichment skill.

    Preserve sensitivity enforcement during any production testing.

    If the combination is explicitly unsupported, I would not recommend disabling sensitivity labels just to make enrichment work.

    Instead, I would separate the unsupported operation from the protected indexing workflow and evaluate a supported design that preserves authorization and data handling requirements.

    For example, an approved preprocessing pipeline could generate permitted metadata before indexing, provided the security architecture allows that processing.

    Could you confirm whether the failure occurs when creating the skillset, creating the indexer or executing the indexer?

    That distinction should help identify the exact compatibility boundary.I would treat this as a feature compatibility issue before assuming the indexer configuration is incorrect.

    The important detail is that enabling Microsoft Purview sensitivity labels changes the security requirements of the indexing workflow.

    I have worked on document extraction and RAG applications, and for sensitive enterprise documents I would separate content enrichment from the enforcement of document access policies.

    Consider a simple example.

    Document A contains general product information.

    Document B contains restricted financial information.

    Both documents are indexed for enterprise search.

    A generative enrichment skill attempts to process both documents.

    The important question is whether the enrichment operation is supported when sensitivity label enforcement is enabled, not simply whether the model can process the document text.

    I would investigate this in the following order.

    Confirm the Azure AI Search API version.

    Check the documented compatibility of the GenAI Prompt skill with Purview-enabled indexing.

    Reproduce the failure using one synthetic document and a minimal skillset.

    Compare indexer creation with and without the generative enrichment skill.

    Preserve sensitivity enforcement during any production testing.

    If the combination is explicitly unsupported, I would not recommend disabling sensitivity labels just to make enrichment work.

    Instead, I would separate the unsupported operation from the protected indexing workflow and evaluate a supported design that preserves authorization and data handling requirements.

    For example, an approved preprocessing pipeline could generate permitted metadata before indexing, provided the security architecture allows that processing.

    Could you confirm whether the failure occurs when creating the skillset, creating the indexer or executing the indexer?

    That distinction should help identify the exact compatibility boundary.

    Was this answer helpful?

    0 comments No comments

  2. Jerald Felix 17,955 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.