Muokkaa

Jaa


Service limits in Azure AI Search

Maximum limits on storage, workloads, and quantities of indexes and other objects depend on whether you create Azure AI Search at Free, Basic, Standard, or Storage Optimized pricing tiers.

  • Free is a multitenant shared service that comes with your Azure subscription.

  • Basic provides dedicated computing resources for production workloads at a smaller scale, but shares some networking infrastructure with other tenants.

  • Standard runs on dedicated machines with more storage and processing capacity at every level. Standard comes in four levels: S1, S2, S3, and S3 HD. S3 High Density (S3 HD) is engineered for multi-tenancy and large quantities of small indexes (3,000 indexes per service). S3 HD doesn't provide the indexer feature and data ingestion must use APIs that push data from source to index.

  • Storage Optimized runs on dedicated machines with more total storage, storage bandwidth, and memory than Standard. This tier targets large, slow-changing indexes. Storage Optimized comes in two levels: L1 and L2.

Subscription limits

You can create multiple billable search services (Basic and higher), up to the maximum number of services allowed at each tier, per region. For example, you could create up to 16 services at the Basic tier and another 16 services at the S1 tier within the same subscription and region. You could then create an additional 16 Basic services in another region for a combined total of 32 Basic services under the same subscription. For more information about tiers, see Choose a tier (or SKU) for Azure AI Search.

Maximum service limits can be raised upon request. If you need more services within the same subscription, file a support request.

Resource Free 1 Basic S1 S2 S3 S3 HD L1 L2
Maximum services per region 1 16 16 8 6 6 6 6
Maximum search units (SU)2 N/A 3 SU 36 SU 36 SU 36 SU 36 SU 36 SU 36 SU

1 You can have one free search service per Azure subscription. The free tier is based on infrastructure shared with other customers. Because the hardware isn't dedicated, scale-up isn't supported, and storage is limited to 50 MB. A free search service might be deleted after extended periods of inactivity to make room for more services.

2 Search units (SU) are billing units, allocated as either a replica or a partition. You need both. To learn more about SU combinations, see Estimate and manage capacity of a search service.

Service limits

The following table covers SLA, partition counts, and replica counts at the service level.

Resource Free Basic S1 S2 S3 S3 HD L1 L2
Service level agreement (SLA) No Yes Yes Yes Yes Yes Yes Yes
Partitions N/A 3 1 12 12 12 3 12 12
Replicas N/A 3 12 12 12 12 12 12

1 Basic tier supports three partitions and three replicas, for a total of nine search units (SU) on new search services created after April 3, 2024. Older basic services are limited to one partition and three replicas.

A search service is subject to a maximum storage limit (partition size multiplied by the number of partitions) or by a hard limit on the maximum number of indexes or indexers, whichever comes first.

Service level agreements (SLAs) apply to billable services having two or more replicas for query workloads, or three or more replicas for query and indexing workloads. The number of partitions isn't an SLA consideration. For more information, see Reliability in Azure AI Search.

Free services don't have fixed partitions or replicas and they share resources with other subscribers.

Partition storage (GB)

Per-service storage limits vary by two things: service creation date, and region. There are higher limits for newer services in most supported regions.

This table shows the progression of storage quota increases in GB over time. Higher capacity partitions were brought online starting in April 2024, in the regions listed in the footnotes. Higher capacity is limited to new search services. There's no in-place upgrade at this time.

Service creation date Basic S1 S2 S3/HD L1 L2
Before April 3, 2024 2 25 100 200 1,024 2,048
April 3, 2024 through May 17, 2024 1 15 160 512 1,024 1,024 2,048
After May 17, 2024 2 15 160 512 1,024 2,048 4,096

1 Higher capacity storage for Basic, S1, S2, S3 in these regions. Americas: Brazil South​, Canada Central​, Canada East​​, East US​, East US 2, ​Central US​, North Central US​, South Central US​, West US​, West US 2​, West US 3​, West Central US. Europe: France Central​. Italy North​​, North Europe​​, Norway East, Poland Central​​, Switzerland North​, Sweden Central​, UK South​, UK West​. Middle East: UAE North. Africa: South Africa North. Asia Pacific: Australia East​, Australia Southeast​​, Central India, Jio India West​, East Asia, Southeast Asia​, Japan East, Japan West​, Korea Central, Korea South​.

2 Higher capacity storage for L1 and L2. More regions provide higher capacity at every billable tier. Europe: Germany North​, Germany West Central, Switzerland West​. Azure Government: Texas, Arizona, Virginia. Africa: South Africa North​. Asia Pacific: China North 3, China East 3.

A few regions still run on older infrastructure, subject to the April 3 limits. Before creating a new service, check supported regions to make sure your region of choice provides the extra capacity.

Index limits

Resource Free Basic 1 S1 S2 S3 S3 HD L1 L2
Maximum indexes 3 5 or 15 50 200 200 1000 per partition or 3000 per service 10 10
Maximum simple fields per index 2 1000 100 1000 1000 1000 1000 1000 1000
Maximum dimensions per vector field 4098 4098 4098 4098 4098 4098 4098 4098
Maximum complex collections per index 40 40 40 40 40 40 40 40
Maximum elements across all complex collections per document 3 3000 3000 3000 3000 3000 3000 3000 3000
Maximum depth of complex fields 10 10 10 10 10 10 10 10
Maximum suggesters per index 1 1 1 1 1 1 1 1
Maximum scoring profiles per index 100 100 100 100 100 100 100 100
Maximum functions per profile 8 8 8 8 8 8 8 8
Maximum index size 4 N/A N/A N/A 1.88 TB 2.34 TB 100 GB N/A N/A

1 Basic services created before December 2017 have lower limits (5 instead of 15) on indexes. Basic tier is the only tier with a lower limit of 100 fields per index.

2 The upper limit on fields includes both first-level fields and nested subfields in a complex collection. For example, if an index contains 15 fields and has two complex collections with five subfields each, the field count of your index is 25. Indexes with a very large fields collection can be slow. Limit fields and attributes to just those you need, and run indexing and query test to ensure performance is acceptable.

3 An upper limit exists for elements because having a large number of them significantly increases the storage required for your index. An element of a complex collection is defined as a member of that collection. For example, assume a Hotel document with a Rooms complex collection, each room in the Rooms collection is considered an element. During indexing, the indexing engine can safely process a maximum of 3,000 elements across the document as a whole. This limit was introduced in api-version=2019-05-06 and applies to complex collections only, and not to string collections or to complex fields.

4 On most tiers, maximum index size is all available storage on your search service. For S2, S3, and S3 HD, the maximum size of any index is the number provided in the table. Applies to search services created after April 3, 2024.

You might find some variation in maximum limits if your service happens to be provisioned on a more powerful cluster. The limits here represent the common denominator. Indexes built to the above specifications are portable across equivalent service tiers in any region.

Document limits

Maximum number of documents per index are:

  • 24 billion on Basic, S1, S2, S3
  • 2 billion on S3 HD
  • 288 billion on L1
  • 576 billion on L2

Each instance of a complex collection counts as a separate document in terms of these limits.

Maximum size of each document is approximately 16 megabytes. Document size is actually a limit on the size of the indexing API request payload, which is 16 megabytes. That payload can be a single document, or a batch of documents. For a batch with a single document, the maximum document size is 16 MB of JSON.

Document size applies to push mode indexing that uploads documents to a search service. If you're using an indexer for pull mode indexing, your source files can be any file size, subject to indexer limits. For the blob indexer, file size limits are larger for higher tiers. For example, the S1 limit is 128 megabytes, S2 limit is 256 megabytes, and so forth.

When estimating document size, remember to index only those fields that add value to your search scenarios, and exclude any source fields that have no purpose in the queries you intend to run.

Vector index size limits

When you index documents with vector fields, Azure AI Search constructs internal vector indexes using the algorithm parameters you provide. The size of these vector indexes is restricted by the memory reserved for vector search for your service's tier (or SKU). For guidance on managing and maximizing vector storage, see Vector index size and staying under limits.

Vector limits vary by:

Higher vector limits from April 2024 onwards exist on new search services in regions providing the extra capacity, which is most of them.

This table shows the progression of vector quota increases in GB over time. The quota is per partition, so if you scale a new Standard (S1) service to 6 partitions, total vector quota is 35 multiplied by 6.

Service creation date Basic S1 S2 S3/HD L1 L2
Before July 1, 2023 1 0.5 1 6 12 12 36
July 1, 2023 through April 3, 2024 2 1 3 12 36 12 36
April 3, 2024 through May 17, 2024 3 5 35 150 300 12 36
After May 17, 2024 4 5 35 150 300 150 300

1 Initial vector limits during early preview.

2 Vector limits during the later preview period. Three regions didn't have the higher limits: Germany West Central, West India, Qatar Central.

3 Higher vector quota based on the larger partitions for supported tiers and regions.

4 Higher vector quota for more tiers and regions based on partition size updates.

The service enforces a vector index size quota for every partition in your search service. Each extra partition increases the available vector index size quota. This quota is a hard limit to ensure your service remains healthy, which means that further indexing attempts once the limit is exceeded results in failure. You can resume indexing once you free up available quota by either deleting some vector documents or by scaling up in partitions.

Important

Higher vector limits are tied to larger partition sizes. Regions that run on older infrastructure are subject to the July-April limits. Review the regions list for status on partition storage limits.

Indexer limits

Maximum running times exist to provide balance and stability to the service as a whole, but larger data sets might need more indexing time than the maximum allows. If an indexing job can't complete within the maximum time allowed, try running it on a schedule. The scheduler keeps track of indexing status. If a scheduled indexing job is interrupted for any reason, the indexer can pick up where it last left off at the next scheduled run.

Resource Free 1 Basic 2 S1 S2 S3 S3 HD 3 L1 L2
Maximum indexers 3 5 or 15 50 200 200 N/A 10 10
Maximum datasources 3 5 or 15 50 200 200 N/A 10 10
Maximum skillsets 4 3 5 or 15 50 200 200 N/A 10 10
Maximum indexing load per invocation 10,000 documents Limited only by maximum documents Limited only by maximum documents Limited only by maximum documents Limited only by maximum documents N/A No limit No limit
Minimum schedule 5 minutes 5 minutes 5 minutes 5 minutes 5 minutes 5 minutes 5 minutes 5 minutes
Maximum running time 5 1-3 or 3-10 minutes 2 or 24 hours 2 or 24 hours 2 or 24 hours 2 or 24 hours N/A 2 or 24 hours 2 or 24 hours
Blob indexer: maximum blob size, MB 16 16 128 256 256 N/A 256 256
Blob indexer: maximum characters of content extracted from a blob 6 32,000 64,000 4 million 8 million 16 million N/A 4 million 4 million

1 Free services have indexer maximum execution time of 3 minutes for blob sources and 1 minute for all other data sources. Indexer invocation is once every 180 seconds. For AI indexing that calls into Azure AI services, free services are limited to 20 free transactions per indexer per day, where a transaction is defined as a document that successfully passes through the enrichment pipeline (tip: you can reset an indexer to reset its count).

2 Basic services created before December 2017 have lower limits (5 instead of 15) on indexers, data sources, and skillsets.

3 S3 HD services don't include indexer support.

4 Maximum of 30 skills per skillset.

5 Regarding the 2 or 24 hour maximum duration for indexers: a 2-hour maximum is the most common and it's what you should plan for. It refers to indexers that run in the public environment, used to offload computationally intensive processing and leave more resources for queries. The 24-hour limit applies if you configure the indexer to run in a private environment using only the infrastructure that's allocated to your search service. Note that some older indexers are incapable of running in the public environment, and those indexers always have a 24-hour processing range. If you have unscheduled indexers that run continuously for 24 hours, you can assume those indexers couldn't be migrated to the newer infrastructure. As a general rule, for indexing jobs that can't finish within two hours, put the indexer on a 5 minute schedule so that the indexer can quickly pick up where it left off. On the Free tier, the 3-10 minute maximum running time is for indexers with skillsets.

6 The maximum number of characters is based on Unicode code units, specifically UTF-16.

Note

As stated in the Index limits, indexers will also enforce the upper limit of 3000 elements across all complex collections per document starting with the latest GA API version that supports complex types (2019-05-06) onwards. This means that if you've created your indexer with a prior API version, you will not be subject to this limit. To preserve maximum compatibility, an indexer that was created with a prior API version and then updated with an API version 2019-05-06 or later, will still be excluded from the limits. Customers should be aware of the adverse impact of having very large complex collections (as stated previously) and we highly recommend creating any new indexers with the latest GA API version.

Indexers can access other Azure resources over private endpoints managed via the shared private link resource API. This section describes the limits associated with this capability.

Resource Free Basic S1 S2 S3 S3 HD L1 L2
Private endpoint indexer support No Yes Yes Yes Yes No Yes Yes
Private endpoint support for indexers with a skillset1 No No No Yes Yes No Yes Yes
Private endpoint support for indexers with a skillset and integrated vectorization 2 No Yes Yes Yes Yes No Yes Yes
Maximum private endpoints N/A 10 or 30 100 400 400 N/A 20 20
Maximum distinct resource types3 N/A 4 7 15 15 N/A 4 4

1 AI enrichment and image analysis are computationally intensive and consume disproportionate amounts of available processing power. For this reason, private connections are disabled on lower tiers to ensure the performance and stability of the search service itself.

2 High-capacity services created after April 3, 2024 in the regions listed under Partition Storage and running integrated vectorization workloads at indexing time support shared private links in paid tiers. The system must detect at least a skill that is embedding data.

3 The number of distinct resource types are computed as the number of unique groupId values used across all shared private link resources for a given search service, irrespective of the status of the resource.

Synonym limits

Maximum number of synonym maps varies by tier. Each rule can have up to 20 expansions, where an expansion is an equivalent term. For example, given "cat", association with "kitty", "feline", and "felis" (the genus for cats) would count as 3 expansions.

Resource Free Basic S1 S2 S3 S3-HD L1 L2
Maximum synonym maps 3 3 5 10 20 20 10 10
Maximum number of rules per map 5000 20000 20000 20000 20000 20000 20000 20000

Index alias limits

Maximum number of index aliases varies by tier and service creation date. In all tiers, if the service was created after October 2022 the maximum number of aliases is double the maximum number of indexes allowed. If the service was created before October 2022, the limit is the number of indexes allowed.

Service Creation Date Free Basic S1 S2 S3 S3-HD L1 L2
Before October 2022 3 5 or 15 1 50 200 200 1000 per partition or 3000 per service 10 10
After October 2022 6 30 100 400 400 2000 per partition or 6000 per service 20 20

1 Basic services created before December 2017 have lower limits (5 instead of 15) on indexes

Data limits (AI enrichment)

An AI enrichment pipeline that makes calls to an Azure AI Language resource for entity recognition, entity linking, key phrase extraction, sentiment analysis, language detection, and personal-information detection is subject to data limits. The maximum size of a record should be 50,000 characters as measured by String.Length. If you need to break up your data before sending it to the sentiment analyzer, use the Text Split skill.

Throttling limits

API requests are throttled as the system approaches peak capacity. Throttling behaves differently for different APIs. Query APIs (Search/Suggest/Autocomplete) and indexing APIs throttle dynamically based on the load on the service. Index APIs and service operations API have static request rate limits.

Static rate request limits for operations related to an index:

  • List Indexes (GET /indexes): 3 per second per search unit
  • Get Index (GET /indexes/myindex): 10 per second per search unit
  • Create Index (POST /indexes): 12 per minute per search unit
  • Create or Update Index (PUT /indexes/myindex): 6 per second per search unit
  • Delete Index (DELETE /indexes/myindex): 12 per minute per search unit

Static rate request limits for operations related to a service:

  • Service Statistics (GET /servicestats): 4 per second per search unit

Semantic ranker throttling limits

Semantic ranker uses a queuing system to manage concurrent requests. This system allows search services get the highest number of queries per second possible. When the limit of concurrent requests is reached, additional requests are placed in a queue. If the queue is full, further requests are rejected and must be retried.

Total semantic ranker queries per second varies based on the following factors:

  • The tier of the search service. Both queue capacity and concurrent request limits vary by tier.
  • The number of search units in the search service. The simplest way to increase the maximum number of concurrent semantic ranker queries is to add more search units to your search service.
  • The total available semantic ranker capacity in the region.
  • The amount of time it takes to serve a query using semantic ranker. This varies based on how busy the search service is.

The following table describes the semantic ranker throttling limits by tier, subject to available capacity in the region. You can contact Microsoft support to request a limit increase.

Resource Basic S1 S2 S3 S3-HD L1 L2
Maximum Concurrent Requests (per Search Unit) 2 3 4 4 4 4 4
Maximum Request Queue Size (per Search Unit) 4 6 8 8 8 8 8

API request limits

Limits on queries exist because unbounded queries can destabilize your search service. Typically, such queries are created programmatically. If your application generates search queries programmatically, we recommend designing it in such a way that it doesn't generate queries of unbounded size.

Limits on payloads exist for similar reasons, ensuring the stability of your search service. The limit applies to the entire request, inclusive of all its components. For example, if the request batches several documents or commands, the entire request must fit within the supported limit.

If you must exceed a supported limit, you should test your workload so that you know what to expect.

Except where noted, the following API requests apply to all programmable interfaces, including the Azure SDKs.

General:

  • Supported maximum payload limit is 16 MB for indexing and query request via REST API and SDKs.
  • Maximum 8-KB URL length (applies to REST APIs only).

Indexing APIs:

  • Supported maximum 1,000 documents per batch of index uploads, merges, or deletes.

Query APIs:

  • Maximum 32 fields in $orderby clause.
  • Maximum 100,000 characters in a search clause.
  • Maximum number of clauses in search is 3,000.
  • Maximum limits on wildcard and regular expression queries, as enforced by Lucene. It caps the number of patterns, variations, or matches to 1,000 instances. This limit is in place to avoid engine overload.

Search terms:

  • Supported maximum search term size is 32,766 bytes (32 KB minus 2 bytes) of UTF-8 encoded text. Applies to keyword search and the text property of vector search.
  • Supported maximum search term size is 1,000 characters for prefix search and regex search.

API response limits

  • Maximum 1,000 documents returned per page of search results
  • Maximum 100 suggestions returned per Suggest API request

The search engine returns 50 results by default, but you can override this parameter up to the maximum limit.

API key limits

API keys are used for service authentication. There are two types. Admin keys are specified in the request header and grant full read-write access to the service. Query keys are read-only, specified on the URL, and typically distributed to client applications.

  • Maximum of 2 admin keys per service
  • Maximum of 50 query keys per service