Attach a billable resource to a skillset in Foundry IQ (Azure AI Search)

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.

Some built-in skills for AI enrichment in Foundry IQ (Azure AI Search) include a free allowance of up to 20 transactions per index per day. Check each skill's requirements and attach a billable Microsoft Foundry resource to your skillset when required.

A Foundry resource provides access to multiple services within Foundry Tools. When you specify it in a skillset, Microsoft is able to charge you for using the following services:

Sometime after November 5, 2026, OCR processing is expected to be billed as Document Intelligence usage instead of Azure Vision usage. The timing depends on when the update reaches your Foundry IQ service. You don't need to replace your attached Foundry resource or change your skillset configuration.

Skillset processing is billed to the underlying service of each skill. Foundry IQ consolidates charges for Foundry Tools into a single Foundry resource. For example, if you use the Image Analysis and Language Detection skills, charges for Azure Vision and Azure Language appear on the same bill for your Foundry resource. All other resources are billed independently.

To attach a Foundry resource, provide connection information in the skillset. You can use a key-based or keyless approach.

Prerequisites

  • Connectivity over a public endpoint, unless your Foundry IQ service meets the creation date, tier, and region requirements for private connections to a Foundry resource.

  • A Foundry resource with the AIServices API kind. You can verify the API kind on the resource's Overview page in the Azure portal:

    Screenshot of the API kind property in the Azure portal.

Note

  • If your Foundry resource is configured to use a private endpoint, Foundry IQ can connect using a shared private link. For more information, see Shared private link resource limits. Alternatively, place the Foundry IQ service and the Foundry resource in the same network security perimeter to keep outbound calls to the Foundry resource on a private channel.

  • Starting with the 2025-11-01-preview, skillsets support the AIServices API kind. The previous CognitiveServices and classic Azure AI multi-service accounts continue to work, but for new skillsets, we recommend that you use AIServices and Foundry resources.

Bill through a keyless connection

You can use a managed identity and permissions to attach a Foundry resource. The advantage of this approach is that billing is keyless and doesn't have region requirements.

To bill through a keyless connection:

  1. On your Foundry IQ service, configure a managed identity. Both system-assigned and user-assigned identities are supported.

  2. On your Foundry resource, assign the Cognitive Services User role to the managed identity of your Foundry IQ service.

  3. Configure a skillset to use the managed identity. You can use the Azure portal, the latest stable version of Skillsets - Create Or Update (REST API), or an Azure SDK package that provides the syntax.

    • @odata.type is always #Microsoft.Azure.Search.AIServicesByIdentity.

    • subdomainUrl is the endpoint of your Foundry resource. You can use the https://<resource-name>.services.ai.azure.com or https://<resource-name>.cognitiveservices.azure.com format, both of which are available on the Keys and Endpoint page in the Azure portal.

    • Other properties are specific to the type of managed identity, as shown in the following REST API examples.

    Here's a sample skillset configuration for a system-assigned managed identity. In this scenario, you must set identity to null.

    POST https://[service-name].search.windows.net/skillsets/[skillset-name]?api-version=2026-10-01
    api-key: [admin-key]
    Content-Type: application/json
    
    {
      "name": "my-skillset",
      "skills": [
        // Skills definition goes here
      ],
      "cognitiveServices": {
        "@odata.type": "#Microsoft.Azure.Search.AIServicesByIdentity",
        "description": "A sample configuration for a system-assigned managed identity.",
        "subdomainUrl": "https://[resource-name].services.ai.azure.com",
        "identity": null
      }
    }
    

Bill through a resource key

By default, Foundry IQ charges for transactions using the key of a Foundry resource. This approach is generally available. You can use the Azure portal, a stable REST API version, or an equivalent Azure SDK to add the key to a skillset.

There are two supported key types:

  • #Microsoft.Azure.Search.CognitiveServicesByKey calls the regional endpoint.
  • #Microsoft.Azure.Search.AIServicesByKey calls the subdomain. We recommend this type because it supports shared private links and doesn't have regional requirements relative to the Foundry IQ service.

Your Foundry resource must be in the same region as your Foundry IQ service. Choose a Foundry IQ region that provides Foundry Tools integration, which is indicated by the AI enrichment column. For more information about the same-region requirement, see How the key is used.

If you don't specify the cognitiveServices property, your Foundry IQ service attempts to use the free enrichments available to your indexer each day. Execution of billable skills stops at 20 transactions per indexer invocation, and a "Time Out" message appears in the indexer execution history.

  1. Sign in to the Azure portal.

  2. Create a Foundry resource in the same region as your Foundry IQ service.

  3. From the left pane, select Resource Management > Keys and Endpoint.

  4. Copy one of the keys.

  5. Add the key to a skillset definition.

    • If you're using the Import data wizard, select the Foundry resource. The wizard adds the resource key to your skillset definition.

    • For a new or existing skillset, provide the key in skillset definition.

    Screenshot of the key page.

Note

The portal automatically attaches the key of type #Microsoft.Azure.Search.CognitiveServicesByKey.

Remove the key

Enrichments are billable operations. If you no longer need to call Foundry Tools, follow these instructions to remove the key and prevent use of the Foundry resource.

Without the key, the skillset reverts to the default allocation of 20 free transactions per indexer per day. Execution of billable skills stops at 20 transactions, and a "Time Out" message appears in the indexer execution history when the allocation is used.

  1. Go to your Foundry IQ service in the Azure portal.

  2. Under Search management > Skillsets, select a skillset from the list.

    Screenshot of the skillset page.

  3. Scroll to the "cognitiveServices" section in the file.

  4. Delete the key value from the JSON.

  5. Save the skillset.

    Screenshot of the skillset JSON.

How the key is used

For skills with a free allowance, billing starts when API calls to a Foundry resource go beyond 20 API calls per indexer per day. You can reset the indexer to reset the API count.

For skills whose enrichment operations run on Foundry IQ's internally provisioned resources, keyless and key-based connections to the attached Foundry resource handle billing, not enrichment processing. The Azure Content Understanding skill uses the attached Foundry resource for processing and billing. Review its supported regions and the requirements for connections to Foundry resources.

For key-based billing-only connections, a Foundry IQ service connects over the internal network to a Foundry resource located in the same physical region. Most regions that offer Foundry IQ also offer other Azure services. If you attempt AI enrichment in a region that doesn't have both services, you see this message: "Provided key isn't a valid CognitiveServices type key for the region of your Foundry IQ service."

For keyless connections, a Foundry IQ service authenticates using its identity and role assignment and targets a Foundry resource. The resource is specified as a fully qualified URI, and the URI includes a unique subdomain.

You can configure indexers to run in a private execution environment for dedicated processing that uses just the search nodes of your own Foundry IQ service. This setting doesn't make all skill processing run on your search nodes. Some skills use Foundry IQ's internally provisioned resources, while skills such as Azure Content Understanding, Azure OpenAI Embedding, and GenAI Prompt call customer-configured resources or model endpoints.

Note

Some built-in skills, such as the Text Translation skill, are based on non-regional Foundry Tools services. If you use a non-regional skill, your request might be serviced in a different region than the Foundry IQ region. For more information about non-regional services, see the product availability by region page.

Public connection requirements

Depending on when your Foundry IQ service was created, its pricing tier, and its region, billing for built-in skills can require a public connection from Foundry IQ to your Foundry resource. Disabling public network access breaks billing in some scenarios. Review the requirements for connections through a shared private link to determine whether your Foundry IQ service requires a public connection.

If you can't use the public network, you can configure a Custom Web API skill implemented with an Azure Function that supports private endpoints and add your Foundry resource to the same VNET. In this scenario, you can call your Foundry resource directly from the custom skill using private endpoints.

Key requirements special cases

Custom Entity Lookup is metered by Foundry IQ, but it requires a Foundry resource key to unlock transactions beyond 20 per indexer per day. For this skill only, the resource key unblocks the number of transactions but is unrelated to billing.

Free enrichments

AI enrichment offers a small quantity of free processing of billable enrichments so that you can complete short exercises without having to attach an external resource. Free enrichments are 20 documents per indexer per day. You can reset the indexer to reset the counter if you want to repeat an exercise.

Some enrichments are always free:

  • Utility skills that don't call Foundry Tools (namely the Conditional, Document Extraction, Shaper, Text Merge, and Text Split skills) aren't billable.

  • Text extraction from PDF documents and other application files is nonbillable. Text extraction, which occurs during document cracking, isn't an AI enrichment, but it occurs during AI enrichment and is thus noted here.

Billable enrichments

During AI enrichment, Foundry IQ calls APIs for built-in skills that are based on Azure Vision, Azure Document Intelligence, Azure Language, and Azure Translator.

Billable built-in skills that make backend calls to external services include:

A query-time vectorizer backed by the Azure Vision multimodal embedding model is also a billable enrichment.

Image extraction is a Foundry IQ operation that occurs when documents are cracked prior to enrichment. Image extraction is billable on all pricing tiers, except for 20 free daily extractions on the free tier. Image extraction costs apply to image files inside blobs, embedded images in other files (PDF and other app files), and images extracted using Document Extraction. For image extraction pricing, see the Foundry IQ pricing page.

Tip

To lower the cost of skillset processing, enable incremental enrichment (preview) to cache and reuse any enrichments that are unaffected by changes made to a skillset. Caching requires Azure Storage (see pricing), but the cumulative cost of skillset execution is lower if existing enrichments can be reused, especially for skillsets that use image extraction and analysis.

Example: Estimate costs

This example uses hypothetical prices for image extraction and entity recognition. For OCR rates after the update reaches your service, see Document Intelligence pricing. Before the update, see Azure Vision pricing. For other skill processing, see Foundry Tools pricing. See Foundry IQ pricing for separate image-extraction charges.

To estimate the costs associated with Foundry IQ indexing, start with an idea of what an average document looks like so you can run some numbers. For example, you might approximate:

  • 1,000 PDFs
  • Six pages each
  • One image per page (6,000 images)
  • 3,000 characters per page

Assume a pipeline that consists of document cracking of each PDF, image and text extraction, OCR of images, and entity recognition of organizations.

  1. For document cracking with text and image content, text extraction is currently free. For 6,000 images, assume $1 for every 1,000 images extracted. That's a cost of $6.00 for this step.

  2. For OCR of 6,000 images in English, let C_ocr represent the applicable processing charge. After the update reaches your service, see Document Intelligence pricing for current rates.

  3. For entity extraction, you'd have a total of three text records per page. Each record is 1,000 characters. Three text records per page multiplied by 6,000 pages equal 18,000 text records. Assuming $2.00 per 1,000 text records, this step would cost $36.00.

Using the hypothetical image-extraction and entity-recognition rates above, the total estimate is $42.00 plus C_ocr to ingest 1,000 PDF documents.