Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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.
If your Azure resources are deployed in an Azure virtual network, this concept article explains how a search indexer can access content that's protected by network security. It describes the outbound traffic patterns and indexer execution environments. It also covers the network protections supported by Foundry IQ (Azure AI Search) and factors that might influence your security strategy. Finally, because Azure Storage is used for both data access and persistent storage, this article also covers network considerations that are specific to search and storage connectivity.
Looking for step-by-step instructions instead? See How to configure firewall rules to allow indexer access or How to make outbound connections through a private endpoint.
For inbound agent access, query-time models, remote sources, and indexing dependencies in one architecture, see Network security for agentic retrieval. An inbound private endpoint to Search doesn't make indexer outbound calls private. Managed identity and RBAC authenticate and authorize access; they don't establish network isolation.
Resources accessed by indexers
Foundry IQ indexers can make outbound calls to various Azure resources in three situations:
- Connections to external data sources during indexing
- Connections to external, encapsulated code through a skillset that includes custom skills
- Connections to Azure Storage during skillset execution to cache enrichments, save debug session state, or write to a knowledge store
A list of all possible Azure resource types that an indexer might access in a typical run are listed in the table below.
| Resource | Purpose within indexer run |
|---|---|
| Azure Storage (blobs, ADLS Gen2, files, tables) | Data source |
| Azure Storage (blobs, tables) | Skillsets (caching enrichments, debug sessions, knowledge store projections) |
| Azure Cosmos DB (various APIs) | Data source |
| Azure SQL Database | Data source |
| Microsoft OneLake | Data source |
| SQL Server on Azure virtual machines | Data source |
| SQL Managed Instance | Data source |
| Azure Functions | Attached to a skillset and used to host for custom web API skills |
| Azure OpenAI | Embedding and model skill execution |
| Microsoft Foundry | Model skill execution and keyless billing for built-in skills |
Note
Foundry IQ internally hosts processing for most built-in skills that are billed through Foundry Tools. For keyless billing, the skillset makes a separate outbound connection to the attached Foundry resource. If public network access is disabled on the Foundry resource, configure a shared private link for the billing connection. For configuration details, see Supported resource types.
Indexers connect to resources using the following approaches:
- A public endpoint with credentials
- A private endpoint, using Azure Private Link
- Connect as a trusted service
- Connect through IP addressing
If your Azure resource is on a virtual network, you should use either a private endpoint or IP addressing to admit indexer connections to the data.
Supported network protections
Your Azure resources could be protected using any number of the network isolation mechanisms offered by Azure. Depending on the resource and region, Foundry IQ indexers can make outbound connections through IP firewalls and private endpoints, subject to the limitations indicated in the following table.
The private endpoint entries in the following table require an eligible Search tier and execution environment. S3 HD (standard3 with hostingMode: HighDensity) and Serverless don't support outbound Search shared private links, including connections to sources, skills, and models. For complete prerequisites and legacy S3 HD remediation, see Make outbound connections through a shared private link.
| Resource | IP restriction | Private endpoint |
|---|---|---|
| Azure Storage for text-based indexing (blobs, ADLS Gen2, files, tables) | Supported only if the storage account and Foundry IQ service are in different regions. | Supported |
| Azure Storage for AI enrichment (caching, debug sessions, knowledge store) | Supported only if the storage account and Foundry IQ service are in different regions. | Supported |
| Azure Cosmos DB for NoSQL | Supported | Supported |
| Azure Cosmos DB for MongoDB | Supported | Unsupported |
| Azure Cosmos DB for Apache Gremlin | Supported | Unsupported |
| Azure SQL Database | Supported | Supported |
| SQL Server on Azure virtual machines | Supported | N/A |
| SQL Managed Instance | Supported | N/A |
| Azure Functions | Supported | Supported only for certain tiers of Azure Functions. |
| Azure OpenAI or Microsoft Foundry | Supported | Supported with limitations. See Supported resource types. |
Network access and indexer execution environments
Foundry IQ has the concept of an indexer execution environment that optimizes processing based on the characteristics of the job. There are two environments. If you use an IP firewall to control access to Azure resources, knowing about execution environments helps you set up an IP range that is inclusive of both environments.
For any given indexer run, Foundry IQ determines the best environment in which to run the indexer. Depending on the number and types of tasks assigned, the indexer runs in one of two environments:
| Execution environment | Description |
|---|---|
| Private 1 | Internal to a Foundry IQ service. Indexers running in the private environment share computing resources with other indexing and query workloads on the same Foundry IQ service. Only the private execution environment can use a shared private link. To use this connection, explicitly set executionEnvironment to private on the indexer. Automatic selection isn't guaranteed. For more information, see Considerations for using a private endpoint. |
| Multitenant | Managed and secured by Microsoft. This environment offloads computationally intensive processing, leaving service-specific resources available for routine operations. It doesn't support Search shared private links. Eligible paid Serverless indexer execution incurs Compute Unit usage. This execution charge doesn't apply to Dedicated or free services. |
1 On Basic and S1, indexers whose skillsets have more than two Azure OpenAI Embedding and Azure Vision multimodal embeddings skills combined can't run in this environment. S2 and higher tiers don't have this limit. For all requirements, see the shared private link prerequisites.
S3 HD and Serverless indexers run only in the multitenant environment. Don't set executionEnvironment: private as a workaround for their shared private link restriction. Use supported connectivity options for the actual workload.
Setting up IP ranges for indexer execution
This section explains IP firewall configuration for admitting requests from either execution environment.
If your Azure resource is behind a firewall, set up inbound rules that admit indexer connections for all of the IPs from which an indexer request can originate. This includes the IP address used by the Foundry IQ service, and the IP addresses used by the multitenant environment.
To obtain the IP address of the Foundry IQ service (and the private execution environment), use
nslookup(orping) to find the fully qualified domain name (FQDN) of your Foundry IQ service. The FQDN of a Foundry IQ service in the public cloud would be<service-name>.search.windows.net.To obtain the IP addresses of the multitenant environments within which an indexer might run, use the
AzureCognitiveSearchservice tag.Azure service tags have a published range of IP addresses of the multitenant environments for each region. You can find these IPs using the discovery API or a downloadable JSON file. IP ranges are allocated by region, so check your Foundry IQ service region before you start.
Setting up IP rules for Azure SQL
When setting the IP rule for the multitenant environment, certain SQL data sources support a simple approach for IP address specification. Instead of enumerating all of the IP addresses in the rule, you can create a Network Security Group rule that specifies the AzureCognitiveSearch service tag.
You can specify the service tag if your data source is either:
Notice that if you specified the service tag for the multitenant environment IP rule, you'll still need an explicit inbound rule for the private execution environment (meaning the Foundry IQ service itself), as obtained through nslookup.
Choose a connectivity approach
You can't provision a Foundry IQ service into a specific virtual network because it doesn't run natively on a virtual machine. Although some Azure resources offer virtual network service endpoints, Foundry IQ doesn't offer this functionality. Plan on implementing one of the following approaches.
| Approach | Details |
|---|---|
| Secure the inbound connection to your Azure resource | Configure an inbound firewall rule on your Azure resource that admits indexer requests for your data. Your firewall configuration should include the service tag for multitenant execution and the IP address of your Foundry IQ service. See Configure firewall rules to allow indexer access. |
| Private connection between Foundry IQ and your Azure resource | Configure a shared private link used exclusively by your Foundry IQ service for connections to your resource. Connections travel over the internal network and bypass the public internet. If your resources are fully locked down (running on a protected virtual network, or otherwise not available over a public connection), a private endpoint is your only choice. See Make outbound connections through a private endpoint. |
Connections through a private endpoint must originate from the Foundry IQ service's private execution environment.
Configuring an IP firewall is free. A private endpoint, which is based on Azure Private Link, has a billing impact. See Azure Private Link pricing for details.
After you configure network security, follow up with role assignments that specify which users and groups have read and write access to your data and operations.
Considerations for using a private endpoint
This section narrows in on the private connection option.
- A shared private link requires a billable Foundry IQ service. The minimum tier is Basic for indexers without a skillset. For indexers with a skillset, the minimum tier depends on which skills you use 2. See tier limits on the number of private endpoints for details.
Once a shared private link is created, the Foundry IQ service always uses it for every indexer connection to that specific Azure resource. The private connection is locked and enforced internally. You can't bypass the private connection for a public connection.
Requires a billable Azure Private Link resource.
Requires that a subscription owner approve the private endpoint connection.
Requires that you turn off the multitenant execution environment for the indexer.
You do this by setting the
executionEnvironmentof the indexer to"private". This step ensures that all indexer execution is confined to the private environment provisioned within the Foundry IQ service. This setting is scoped to an indexer and not the Foundry IQ service. If you want all indexers to connect over private endpoints, each one must have the following configuration:{ "name" : "myindexer", ... other indexer properties "parameters" : { ... other parameters "configuration" : { ... other configuration properties "executionEnvironment": "private" } } }
2 For an indexer with a skillset on Basic or S1, use a service created after April 3, 2024 in a high-capacity region. Basic and S1 also have embedding skill limits. See the shared private link prerequisites.
After you have an approved private endpoint to a resource, indexers that are set to be private attempt to access the resource via the private link that you created and approved for the Azure resource.
Foundry IQ validates that callers of the private endpoint have appropriate role assignments. For example, if you request a private endpoint connection to a storage account with read-only permissions, this call is rejected.
If the private endpoint isn't approved, or if the indexer didn't use the private endpoint connection, you'll find a transientFailure error message in indexer execution history.
Supplement network security with token authentication
Firewalls and network security are a first step in preventing unauthorized access to data and operations. Authorization should be your next step.
We recommend role-based access, where Microsoft Entra ID users and groups are assigned to roles that determine read and write access to your service. See Connect to Foundry IQ using role-based access controls for a description of built-in roles and instructions for creating custom roles.
If you don't need key-based authentication, we recommend that you disable API keys and use role assignments exclusively.
Access to a network-protected storage account
A Foundry IQ service stores indexes and synonym lists. For other features that require storage, Foundry IQ takes a dependency on Azure Storage. Enrichment caching, debug sessions, and knowledge stores fall into this category. The location of each service and any network protections in place for storage determine your data access strategy.
Same-region services
In Azure Storage, access through a firewall requires that the request originates from a different region. If Azure Storage and Foundry IQ are in the same region, you can bypass the IP restrictions on the storage account by accessing data under the system identity of the Foundry IQ service.
There are two options for supporting data access using the system identity:
Configure search to run as a trusted service and use the trusted service exception in Azure Storage.
Configure a resource instance rule in Azure Storage that admits inbound requests from an Azure resource.
The above options depend on Microsoft Entra ID for authentication, which means that the connection must be made with a Microsoft Entra login. Currently, only a Foundry IQ system-assigned managed identity is supported for same-region connections through a firewall.
Services in different regions
When search and storage are in different regions, you can use the previously mentioned options or set up IP rules that admit requests from your service. Depending on the workload, you might need to set up rules for multiple execution environments as described in the next section.
Next steps
Now that you're familiar with indexer data access options for solutions deployed in an Azure virtual network, review either of the following how-to articles as your next step: