Loading source
Pulling the file list, source metadata, and syntax-aware rendering for this listing.
Source from repo
Deploy, evaluate, and manage AI agents end-to-end on Microsoft Azure AI Foundry
Files
Skill
Size
Entrypoint
Format
Open file
Syntax-highlighted preview of this file as included in the skill package.
project/connections.md
1# Foundry Project Connections23Connections authenticate and link external resources to a Foundry project. Many agent tools (Azure AI Search, Bing Grounding, MCP) require a project connection before use.45## Managing Connections via MCP67Use the Foundry MCP server for all connection operations. The MCP tools handle authentication, validation, and project scoping automatically.89| Operation | MCP Tool | Description |10|-----------|----------|-------------|11| List all connections | `project_connection_list` | Lists project connections and can filter by category or target |12| Get connection details | `project_connection_get` | Retrieves a specific connection by `connectionName` |13| Create a connection | `project_connection_create` | Creates or replaces a project connection to an external resource |14| Update a connection | `project_connection_update` | Updates auth, category, target, or expiry on an existing connection |15| Delete a connection | `project_connection_delete` | Removes a connection from the project by name |16| List supported categories/auth types | `project_connection_list_metadata` | Lists valid connection categories and auth types before create/update |1718> ๐ก **Tip:** Use `project_connection_get` or `project_connection_list` to resolve the connection name and full connection resource ID before configuring agent tools that require `project_connection_id`.1920## Create Connection via Portal21221. Open [Microsoft Foundry portal](https://ai.azure.com)232. Navigate to **Operate** โ **Admin** โ select your project243. Select **Add connection** โ choose service type254. Browse for resource, select auth method, click **Add connection**2627## Connection ID Format2829For REST and TypeScript samples, the full connection ID format is:3031```32/subscriptions/{subId}/resourceGroups/{rg}/providers/Microsoft.CognitiveServices/accounts/{account}/projects/{project}/connections/{connectionName}33```3435Python and C# SDKs resolve this automatically from the connection name.3637## Common Connection Types3839| Type | Resource | Used By |40|------|----------|---------|41| `azure_ai_search` | Azure AI Search | AI Search tool |42| `bing` | Grounding with Bing Search | Bing grounding tool |43| `bing_custom_search` | Grounding with Bing Custom Search | Bing Custom Search tool |44| `api_key` | Any API-key resource | MCP servers, custom tools |45| `azure_openai` | Azure OpenAI | Model access |46| `AzureStorageAccount` | Azure Blob Storage | Dataset upload via `evaluation_dataset_create` |4748## RBAC for Connection Management4950| Role | Scope | Permission |51|------|-------|------------|52| **Azure AI Project Manager** | Project | Create/manage project connections |53| **Contributor** or **Owner** | Subscription/RG | Create Bing/Search resources, get keys |5455## Troubleshooting5657| Error | Cause | Fix |58|-------|-------|-----|59| `Connection not found` | Name mismatch or wrong project | Use `project_connection_list` to find the correct `connectionName` |60| `Unauthorized` creating connection | Missing Azure AI Project Manager role | Assign role on the Foundry project |61| `Invalid connection ID format` | Using name instead of full resource ID | Use `project_connection_get` to resolve the full ID |62