Create an indexed OneLake knowledge source

Note

Foundry IQ (Azure AI Search) provides direct indexing and query APIs alongside higher-level knowledge source and knowledge base APIs for managed retrieval. Use the Azure portal, REST APIs, or Azure SDKs to configure these capabilities, or connect agents to knowledge bases in the Microsoft Foundry portal.

Important

Features or capabilities marked (preview) in this article are in Public Preview and are subject to the Supplemental Terms of Use for Microsoft Azure Previews. For preview terms specific to Foundry IQ (Azure AI Search), see Preview functionality. For terms that apply when you connect to external data sources, see External data sources.

Create an indexed OneLake knowledge source with the 2026-11-01-preview REST API to ingest Microsoft OneLake files and preserve source permissions in Foundry IQ (Azure AI Search). Knowledge sources are created independently, referenced in a knowledge base, and used as grounding data when the knowledge base is queried at runtime.

When you create an indexed OneLake knowledge source, Foundry IQ automatically generates the following objects:

  • A data source that represents a lakehouse.
  • A skillset that chunks and optionally vectorizes multimodal content from the lakehouse.
  • An index that stores enriched content and meets the criteria for agentic retrieval.
  • An indexer that uses the previous objects to drive the indexing and enrichment pipeline.

The generated indexer conforms to the OneLake indexer. Its prerequisites, supported tasks, document formats, and limitations also apply to OneLake knowledge sources. See the OneLake indexer documentation and indexer limits. Ordinary shortcut ingestion support is separate from permission-aware retrieval, which excludes shortcut-derived content in this preview. If the generated skillset calls an external service, that skill's input and service limits also apply.

Prerequisites

  • A Foundry IQ service in Azure public cloud, in a region that provides agentic retrieval.

  • Completion of the OneLake indexer prerequisites and data preparation.

  • Completion of the OneLake permission-preservation prerequisites. The Foundry IQ service must have a system-assigned managed identity. Assign this identity the Admin role in the Fabric workspace.

  • Permission to create knowledge sources. Configure keyless authentication with the Search Service Contributor and Search Index Data Contributor roles assigned to your user account (recommended) or use an admin API key.

  • A REST client. Use Search Service REST API version 2026-11-01-preview for the requests in this article. For keyless authentication, obtain a Microsoft Entra ID token for the Authorization header.

  • If you configure contentExtractionMode as standard, use a Microsoft Foundry resource in a region supported by Content Understanding in Foundry Tools and its https://<resource-name>.services.ai.azure.com endpoint. Deploy an embedding model, and deploy a multimodal chat model if you enable image verbalization. The example in this article uses minimal and disables image verbalization.

  • For managed-identity calls to Azure OpenAI embeddings or image verbalization, assign Cognitive Services OpenAI User to the selected identity on the Azure OpenAI or parent Foundry resource that matches resourceUri. Extraction-service permissions are separate. See Assign a role.

  • For private ingestion, use an eligible S2, S3, L1, or L2 Dedicated service. See Supported Search tiers and configurations. Create and approve a shared private link to the Fabric workspace, using the Microsoft.Fabric/privateLinkServicesForFabric target and workspace group ID described in Supported resource types. Configure approved links for any protected extraction, model, or other Azure dependencies that your pipeline uses.

Limitations

Serverless and S3 HD don't support private indexer execution or outbound Search shared private links. Network security perimeter configuration controls supported public-endpoint access; it doesn't enable private execution.

With OneLake permission ingestion enabled, omit the asset store, enrichment cache, and graph extraction settings. For supported skills and other preview constraints, see OneLake permission-preservation limitations.

Check for existing knowledge sources

A knowledge source is a top-level, reusable object. Check existing knowledge sources before choosing a name or creating a new object.

Send GET /knowledgesources?api-version=2026-11-01-preview&$select=name,kind to your search endpoint.

To review a single definition, send GET /knowledgesources/<knowledge-source-name>?api-version=2026-11-01-preview. Include your authentication header in each request.

Create a knowledge source

Create the knowledge source with the following REST request. This example uses minimal content extraction, disables image verbalization, and enables OneLake permission preservation.

Preserve OneLake permissions (preview)

Set both oneLakeParentFolders and oneLakeLakehouseId in indexedOneLakeParameters.ingestionParameters.ingestionPermissionOptions. Unlike indexerPermissionOptions on a direct OneLake data source, both values are required together for a secured indexed OneLake knowledge source.

Replace the Foundry IQ service name, access token, workspace ID, and lakehouse ID with your values.

PUT https://<search-service>.search.windows.net/knowledgesources/my-secured-onelake-ks?api-version=2026-11-01-preview
Authorization: Bearer <access-token>
Content-Type: application/json

{
  "name": "my-secured-onelake-ks",
  "kind": "indexedOneLake",
  "indexedOneLakeParameters": {
    "fabricWorkspaceId": "<fabric-workspace-id>",
    "lakehouseId": "<lakehouse-id>",
    "ingestionParameters": {
      "contentExtractionMode": "minimal",
      "disableImageVerbalization": true,
      "ingestionPermissionOptions": [
        "oneLakeParentFolders",
        "oneLakeLakehouseId"
      ]
    }
  }
}

For the permission configuration and its constraints, see Configure an indexed OneLake knowledge source.

The creation response lists the generated objects under indexedOneLakeParameters.createdResources. The knowledge source generates the permission-enabled index, field mappings, and chunk projections. You don't need to configure those mappings separately. For generated-field requirements and query-time authorization, see Preserve OneLake permissions.

By using REST API 2026-11-01-preview, embedding and chat ingestion models support Azure API Management (APIM) Premium v2 endpoints. Content Understanding extraction doesn't support APIM endpoints.

Optional settings use the following property paths:

  • indexedOneLakeParameters.targetPath: Limit ingestion to a folder in the lakehouse. Shortcut-derived content remains excluded from permission-aware retrieval.
  • indexedOneLakeParameters.ingestionParameters.embeddingModel: Configure optional content vectorization.
  • indexedOneLakeParameters.ingestionParameters.chatCompletionModel: Configure a chat completion model for image verbalization or context extraction. The example keeps image verbalization disabled.
  • indexedOneLakeParameters.ingestionParameters.ingestionSchedule: Configure source-change polling with interval and optional startTime. Automatic continuation after an eligible execution-time stop is separate from this polling interval. Neither scheduling nor continuation establishes permission freshness.

Retain both permission options when adding optional settings. The network access mode defaults to public; for eligible Dedicated configurations, see Restrict ingestion to a private network.

Restrict ingestion to a private network

Private ingestion for indexed OneLake knowledge sources is generally available in REST API 2026-10-01 on eligible Dedicated services. OneLake permission preservation in this article's example separately requires 2026-11-01-preview.

Set indexedOneLakeParameters.ingestionParameters.networkAccessMode to private in the creation request.

  1. Complete the private network prerequisites.

  2. Set networkAccessMode to private in the knowledge source creation request. You can only set this property during creation, including in the stable 2026-10-01 API. To change the stored mode later, delete and recreate the knowledge source. Eligible Blob, ADLS Gen2, and Azure SQL sources can instead use the interim generated-indexer networking override. That exception doesn't apply to indexed SharePoint or other source kinds.

    Creation can fail if the service tier or runtime doesn't support private execution or if a required shared private link doesn't exist. Serverless and S3 HD don't support private execution. Network security perimeter configuration controls supported public-endpoint access, not private execution.

  3. Confirm that the generated indexer's parameters.configuration.executionEnvironment is private.

  4. Confirm that each required shared private link is approved, provisioned, and targets the correct dependency. Successful creation alone doesn't confirm link approval or targeting. If a portal check can't resolve a cross-subscription resource, manually verify approval and readiness on the target resource and Foundry IQ service.

  5. Poll the knowledge source status until lastSynchronizationState.endTime has a value. Confirm that itemsUpdatesFailed is 0, and then verify the connector-specific source content. Synchronization fails if a dependency isn't reachable.

Configure standard extraction

To use Content Understanding for layout extraction and semantic chunking instead of the minimal extraction in the preceding examples, set contentExtractionMode to standard and configure aiServices with your Foundry resource endpoint. Use the resource and deployments described in Prerequisites.

Standard extraction incurs Content Understanding charges and, when image verbalization is enabled, model usage charges. For more information, see billing and image description controls.

Use automatic per-language analyzers (preview)

To enable automatic per-language analyzers, set indexedOneLakeParameters.ingestionParameters.contentExtractionMode to minimal. Set indexedOneLakeParameters.ingestionParameters.aiServices.uri to your Microsoft Foundry resource endpoint. Foundry IQ detects each source document's language and applies a matching Microsoft language analyzer. You don't specify an analyzer in the knowledge source definition or in a query.

For keyless authentication, omit indexedOneLakeParameters.ingestionParameters.aiServices.apiKey. Assign the Cognitive Services User role on your Microsoft Foundry resource to the managed identity of your Foundry IQ service.

Supported languages are English, Japanese, French, Spanish, German, Dutch, Italian, Brazilian Portuguese, European Portuguese, Simplified Chinese, Traditional Chinese, and Korean.

For multilingual content, Foundry IQ selects an analyzer based on the predominant detected language. It uses the standard analyzer when the language is unsupported or uncertain.

When you enable this option, the generated index includes language-specific content fields for every supported language, even if your data doesn't contain those languages. During ingestion, Foundry IQ routes documents to the field for their detected language. Unused fields contain no indexed content and have minimal storage impact, but they still count toward the index field limit. Account for these fields when planning your field count and storage capacity.

Language detection is billable after the free AI enrichment allocation.

Check ingestion status

Send GET /knowledgesources/my-secured-onelake-ks/status?api-version=2026-11-01-preview to your search endpoint with your authentication header.

Review synchronization status, current and previous synchronization state, and document-level errors. Use indexer status and execution history to investigate ingestion failures. Successful ingestion doesn't establish that source-permission changes have propagated. See Permission and path freshness.

Review the generated objects

The generated data source, skillset, indexer, and index use names based on the knowledge source name. You can't change those names. Avoid editing the objects directly, because changes can break the indexer pipeline.

Use the generated object names from indexedOneLakeParameters.createdResources to retrieve each definition. Send GET /<resource-collection>/<generated-object-name>?api-version=2026-11-01-preview to your search endpoint with your authentication header. The resource collections are indexers, datasources, skillsets, and indexes.

  1. Send GET /indexers/<generated-indexer-name>/status?api-version=2026-11-01-preview with your authentication header. Inspect lastResult and executionHistory for execution status and error messages, including connection or quota errors. See Monitor using Get Indexer Status.
  2. Check the data source to verify the lakehouse connection and managed identity configuration.
  3. Check the skillset to see how content is chunked and optionally vectorized.
  4. Check the index's content and permission fields. Verify that the generated field mappings and chunk projections preserve source-location metadata.

Assign to a knowledge base

If you're satisfied with the knowledge source, add it to a knowledge base.

For any knowledge base that specifies an indexed OneLake knowledge source, set includeReferenceSourceData to true. This setting is necessary for pulling the source document URL into the citation.

Query a knowledge base

After you configure the knowledge base, call the retrieve action or MCP endpoint to query the knowledge source.

Enforce document-level permissions (preview)

Use 2026-11-01-preview for OneLake permission-aware requests. Include the requesting user's access token in x-ms-query-source-authorization, as described in Enforce permissions at query time (preview). Follow the OneLake query and testing guidance to check allowed and denied users.

Surface document-embedded images (preview)

Image serving isn't supported when ingestionPermissionOptions is configured, so don't add assetStore to the secured knowledge source in this article. For scenarios without permission ingestion, see Surface document-embedded images in agentic retrieval (preview).

Delete a knowledge source

Before deleting a knowledge source, delete any knowledge base that references it or update the knowledge base definition to remove the reference. If the source is still in use, deletion fails and returns a list of affected knowledge bases.

  1. Send GET /knowledgebases?api-version=2026-11-01-preview to list knowledge bases. Use GET /knowledgebases/<knowledge-base-name>?api-version=2026-11-01-preview to inspect each definition for references to the knowledge source.
  2. Update the knowledge base to remove the reference. Alternatively, send DELETE /knowledgebases/<knowledge-base-name>?api-version=2026-11-01-preview if you no longer need that knowledge base.
  3. Send DELETE /knowledgesources/my-secured-onelake-ks?api-version=2026-11-01-preview to delete the knowledge source. Include your authentication header in each request.

Deleting an indexed OneLake knowledge source also deletes its generated data source, skillset, indexer, and index. It doesn't delete the source lakehouse or files in Microsoft Fabric.