How to add a new connection in Azure AI Foundry portal
Important
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 Azure AI Foundry portal.
Connections are a way to authenticate and consume both Microsoft and other resources within your Azure AI Foundry projects. For example, connections can be used for prompt flow, training data, and deployments. Connections can be created exclusively for one project or shared with all projects in the same Azure AI Foundry hub.
Connection types
Here's a table of some of the available connection types in Azure AI Foundry portal. The Preview column indicates connection types that are currently in preview.
Service connection type | Preview | Description |
---|---|---|
Azure AI Search | Azure AI Search is an Azure resource that supports information retrieval over your vector and textual data stored in search indexes. | |
Azure Blob Storage | Azure Blob Storage is a cloud storage solution for storing unstructured data like documents, images, videos, and application installers. | |
Azure Data Lake Storage Gen 2 | Azure Data Lake Storage Gen2 is a set of capabilities dedicated to big data analytics, built on Azure Blob storage. | |
Azure Content Safety | Azure AI Content Safety is a service that detects potentially unsafe content in text, images, and videos. | |
Azure OpenAI | Azure OpenAI is a service that provides access to OpenAI's models including the GPT-4o, GPT-4o mini, GPT-4, GPT-4 Turbo with Vision, GPT-3.5-Turbo, DALLE-3 and Embeddings model series with the security and enterprise capabilities of Azure. | |
Serverless Model | ✓ | Serverless Model connections allow you to serverless API deployment. |
Microsoft OneLake | Microsoft OneLake provides open access to all of your Fabric items through Azure Data Lake Storage (ADLS) Gen2 APIs and SDKs. In Azure AI Foundry portal you can set up a connection to your OneLake data using a OneLake URI. You can find the information that Azure AI Foundry requires to construct a OneLake Artifact URL (workspace and item GUIDs) in the URL on the Fabric portal. For information about the URI syntax, see Connecting to Microsoft OneLake. |
|
API key | API Key connections handle authentication to your specified target on an individual basis. For example, you can use this connection with the SerpApi tool in prompt flow. | |
Custom | Custom 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 that 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. |
Create a new connection
Follow these steps to create a new connection that's only available for the current project.
Go to your project in Azure AI Foundry portal. If you don't have a project, create a new project.
Select Management center from the bottom left navigation.
Select Connected resources from the Project section.
Select + New connection from the Connected resources section.
Select the service you want to connect to from the list of available external resources. For example, select Azure AI Search.
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.
Tip
Different connection types support different authentication methods. Using Microsoft Entra ID may require specific Azure role-based access permissions for your developers. For more information, visit Role-based access control.
After the service is connected, select Close to return to the Settings page.
Select Connected resources > View all to view the new connection. You might need to refresh the page to see the new connection.
Network isolation
If your hub is configured for network isolation, you might need to create an outbound private endpoint rule to connect to Azure Blob Storage, Azure Data Lake Storage Gen2, or Microsoft OneLake. A private endpoint rule is needed if one or both of the following are true:
- The managed network for the hub is configured to allow only approved outbound traffic. In this configuration, you must explicitly create outbound rules to allow traffic to other Azure resources.
- The data source is configured to disallow public access. In this configuration, the data source can only be reached through secure methods, such as a private endpoint.
To create an outbound private endpoint rule to the data source, use the following steps:
Sign in to the Azure portal, and select the Azure AI Foundry hub.
Select Networking, then Workspace managed outbound access.
To add an outbound rule, select Add user-defined outbound rules. From the Workspace outbound rules sidebar, provide the following information:
- Rule name: A name for the rule. The name must be unique for the Azure AI Foundry hub.
- Destination type: Private Endpoint.
- Subscription: The subscription that contains the Azure resource you want to connect to.
- Resource type:
Microsoft.Storage/storageAccounts
. This resource provider is used for Azure Storage, Azure Data Lake Storage Gen2, and Microsoft OneLake. - Resource name: The name of the Azure resource (storage account).
- Sub Resource: The sub-resource of the Azure resource. Select
blob
in the case of Azure Blob storage. Selectdfs
for Azure Data Lake Storage Gen2 and Microsoft OneLake.
Select Save to create the rule.
Select Save at the top of the page to save the changes to the managed network configuration.