Skip to main content

Add a new connection to your project

This article refers to the Microsoft Foundry (new) portal.
Items marked (preview) in this article are currently in public preview. This preview is provided without a service-level agreement, and we don’t recommend it for production workloads. Certain features might not be supported or might have constrained capabilities. For more information, see Supplemental Terms of Use for Microsoft Azure Previews.
In this article, you learn how to add a new connection in Microsoft Foundry portal. Connections are a way to authenticate and consume both Microsoft and other resources within your Foundry projects. They’re required for scenarios such as building Standard Agents or building with Agent knowledge tools. Certain connections can be created in the Foundry UI while others require deployment through code in Bicep template. See our foundry-samples on GitHub. Read the table descriptions below to learn more.

Prerequisites

Connection types

Service connection typePreviewDescription
Azure AI SearchAzure AI Search is an Azure resource that supports information retrieval over your vector and textual data stored in search indexes. Required for Standard Agent deployment.
Azure StorageAzure Storage is a cloud storage solution for storing unstructured data like documents, images, videos, and application installers. Required for Standard Agent deployment.
Azure Cosmos DBAzure Cosmos DB is a globally distributed, multi-model database service that offers low latency, high availability, and scalability across multiple geographical regions. Required for Standard Agent deployment. Connection creation only supported through code.
Azure OpenAIAzure OpenAI is a service that provides access to OpenAI’s models including the GPT-5, GPT-4o, DALLE-3, and Embeddings model series with the security and enterprise capabilities of Azure.
Application InsightsAzure Application Insights is a service that enables developers to automatically detect performance anomalies, diagnose issues, and gain deep insights into application usage and behavior.
Azure Key VaultAzure service for securely storing and accessing secrets. (See limitations below)
FoundryConnect to other Foundry resources.
OpenAIConnect to your OpenAI models.
SerpSerp connects to Search Engine Results Pages (SERP) for real-time data access. Supports scenarios that need the latest search results.
API keyAPI Key connections handle authentication to your specified target on an individual basis.
Custom keyCustom connections allow you to securely store and access keys while storing related properties, such as targets and versions. Custom connections are useful when you have many targets or cases where you wouldn’t need a credential to access. LangChain scenarios are a good example where you would use custom service connections. Custom connections don’t manage authentication, so you have to manage authentication on your own.
Grounding with Bing SearchConnects to Bing Search to provide real-time web grounding for queries. Enables AI agents to reference current web data in responses.
Serverless ModelServerless Model connections allow you to serverless API deployment. Connection creation only supported through code.
Azure DatabricksAzure Databricks connector allows you to connect your Foundry Agents to Azure Databricks to access workflows and Genie Spaces during runtime. Connection creation only supported through code.
SharepointSharepoint is a Microsoft platform for document storage and collaboration. It allows agents to access and manage organizational documents. Connection creation only supported through code.
Microsoft FabricAI skills allow you to create your own conversational Q&A systems on Fabric using generative AI. Connection creation only supported through code.
Grounding with Bing Custom SearchIntegrates with a custom Bing search instance for tailored web grounding. Connection creation only supported through code.
Azure APIMAPIM allows for governance of AI Models called in the Foundry Agent service. Connection creation only supported through code.
Model GatewayModel Gateway allows for governance of AI Models called in the Foundry Agent service. Connection creation only supported through code.

Azure Key Vault limitations

Foundry stores connections details in a managed Azure Key Vault if no Key Vault connection is created. Users that prefer to manage their secrets themselves can bring their own Azure Key Vault via a connection. All Foundry projects use a managed Azure Key Vault (not shown in your subscription). If you bring your own Azure Key Vault, note:
  • Only one Azure Key Vault connection per Foundry resource at a time.
  • You can delete an Azure Key Vault connection only if there are no other existing connections on the Foundry resource or project level.
  • Secret migration isn’t supported; recreate connections after attaching the Key Vault.
  • Deleting the underlying Azure Key Vault breaks the Foundry resource (connections depend on stored secrets).
  • Deleting secrets in your BYO Key Vault may break connections to other services.

Azure Databricks connection (preview) limitations

It supports three connection types - Jobs, Genie, and Other. You can pick the Job or Genie space you want associated with this connection while setting up the connection in the Foundry UI. You can also use the Other connection type and allow your agent to access workspace operations in Azure Databricks. Authentication is handled through Microsoft Entra ID for users or service principals. For examples of using this connector, see Jobs and Genie. Note: Usage of this connection is available only via the Foundry SDK in code and is integrated into agents as a FunctionTool (please see the samples above for details). Usage of this connection in Foundry Playground is currently not supported.

Create a new connection

Use the portal or a Bicep template to add a connection.
Follow these steps to create a new connection that’s available for the current project.Sign in to Microsoft Foundry. Make sure the New Foundry toggle is on. These steps refer to Foundry (new).
  1. Select Management center from the bottom left navigation.
  2. Select Connected resources from the Project section.
  3. Select + New connection from the Connected resources section.
Screenshot of the button to add a new connection.
  1. Select the service you want to connect to from the list of available external resources. For example, select Azure AI Search.
Screenshot of the page to select Azure AI Search from a list of other resources.
  1. Browse for and select your Azure AI Search service from the list of available services and then select the type of Authentication to use for the resource. Select Add connection.
Different connection types support different authentication methods. Using Microsoft Entra ID might require specific Azure role-based access permissions for your developers. For more information, visit Role-based access control.
Screenshot of the page to select the Azure AI Search service that you want to connect to.
  1. After the service is connected, select Close.
::: moniker-end
::: moniker range=“foundry” Sign in to Microsoft Foundry. Make sure the New Foundry toggle is on. These steps refer to Foundry (new).
  1. Select Operate in the upper-right navigation.
  2. Select Admin in the left pane.
  3. Select your project name in the Manage all projects list.
  4. Select Add connection in the upper-right corner.
  5. Select the service you want to connect to from the list of available external resources. For example, select Azure AI Search.
  6. Browse for and select your Azure AI Search service from the list of available services and then select the type of Authentication to use for the resource. Select Add connection.
Different connection types support different authentication methods. Using Microsoft Entra ID might require specific Azure role-based access permissions for your developers. For more information, visit Role-based access control.
::: moniker-end

Network isolation

For end-to-end network isolation with Foundry, you need private endpoints to connect to your connected resource. For example, if your Azure Storage account is set to public network access as Disabled, then a private endpoint should be deployed in your virtual network to access in Foundry. For more on how to set private endpoints to your connected resources, see the following documentation:
Cross-subscription connections used for model deployment are not supported (Foundry, Azure OpenAI). You can’t connect to resources from different subscriptions for model deployments.