Skip to content

Add Bicep templates for RemoteTool and RemoteA2A connections#584

Closed
lindazqli wants to merge 1 commit intomainfrom
add-remotetool-remotea2a-connections
Closed

Add Bicep templates for RemoteTool and RemoteA2A connections#584
lindazqli wants to merge 1 commit intomainfrom
add-remotetool-remotea2a-connections

Conversation

@lindazqli
Copy link
Contributor

Summary

This PR adds Bicep infrastructure templates for deploying RemoteTool (MCP server) and RemoteA2A (Agent-to-Agent protocol) connections to Azure AI Foundry projects.

New Files

  • infrastructure/infrastructure-setup-bicep/01-connections/connection-remote-tool.bicep - Template for MCP server connections
  • infrastructure/infrastructure-setup-bicep/01-connections/connection-remote-a2a.bicep - Template for A2A agent connections

Supported Authentication Types

Both templates support 5 authentication methods:

Auth Type Use Case
CustomKeys API key authentication (default)
OAuth2 Third-party OAuth services (GitHub, etc.)
UserEntraToken Microsoft Entra on-behalf-of flow
ProjectManagedIdentity Azure managed identity (project scope)
AgenticIdentityToken Azure managed identity (agentic identity)

Usage Examples

RemoteTool (MCP Server)

az deployment group create --name RemoteToolConnection --resource-group myRG \
  --template-file connection-remote-tool.bicep \
  --parameters aiFoundryName=myFoundry projectName=myProject \
               connectionName=my-mcp-server targetUrl=https://mcp.example.com \
               authType=CustomKeys apiKey=sk-xxx

RemoteA2A (Agent-to-Agent)

az deployment group create --name RemoteA2AConnection --resource-group myRG \
  --template-file connection-remote-a2a.bicep \
  --parameters aiFoundryName=myFoundry projectName=myProject \
               connectionName=workiq-agent targetUrl=https://workiq.example.com \
               authType=CustomKeys apiKey=my-secret-key apiKeyName=x-api-key

API Version

Uses Microsoft.CognitiveServices/accounts/projects/connections@2025-04-01-preview

Related Documentation

Add infrastructure templates for deploying MCP server and A2A agent connections
to Azure AI Foundry projects.

Templates support 5 authentication types:
- CustomKeys: API key authentication
- OAuth2: Third-party OAuth services
- UserEntraToken: Microsoft Entra on-behalf-of flow
- ProjectManagedIdentity: Azure managed identity (project scope)
- AgenticIdentityToken: Azure managed identity (agentic identity)
@github-actions
Copy link

github-actions bot commented Mar 9, 2026

👋 Thanks for your interest in contributing, @lindazqli!

This repository does not accept pull requests directly. If you'd like to report a bug, suggest an improvement, or propose a new sample, please open an issue instead.

See CONTRIBUTING.md for more details.

@github-actions github-actions bot closed this Mar 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant