How azure-samples/azmcp-copilot-studio-aca-mi works
This repository is a deployment template for hosting Azure MCP Server in Azure Container Apps and connecting it to Copilot Studio through a Power Apps custom connector. The documented workflow is to deploy the server and supporting identity/authentication resources, configure the connector to use the server’s HTTPS endpoint and OAuth, then invoke Azure Storage tools. The README documents the resource roles and user workflow; no source excerpts were provided, so links between individual Bicep modules are omitted where their calls are not evidenced.
Main entry points: aca-infrastructure.bicep Container App · main.bicep Deployment entry · aca-storage-managed-identity.bicep Storage managed identity · entra-app.bicep Server app registration
Components 16
Azure deployment
- Deployment entry
infra/main.bicep - Container App
infra/modules/aca-infrastructure.bicep - Azure MCP Server
Identity and monitoring
- Storage managed identity
infra/modules/aca-storage-managed-identity.bicep - Subscription Reader role
infra/modules/aca-storage-subscription-role.bicep - Server app registration
infra/modules/entra-app.bicep - Client app registration
infra/modules/entra-app.bicep - Application Insights
infra/modules/application-insights.bicep
Agent connection
- Connector API example
custom-connector-swagger-example.yaml - Custom connector
Other components
- Deploying operator
- Azure Developer CLI
- Azure Storage
- Power Apps
- Copilot Studio agent
- Microsoft Foundry agent
Connections 15
- Deploying operator → Azure Developer CLI: runs deployment
README.md - Azure Developer CLI → Deployment entry: deploys template
README.md - Deployment entry → Container App: provisions app
- Container App → Azure MCP Server: runs server
README.md - Azure MCP Server → Azure Storage: calls tools
README.md - Container App → Storage managed identity: uses identity
README.md - Storage managed identity → Subscription Reader role: has role
README.md - Custom connector → Server app registration: requests OAuth
README.md - Custom connector → Client app registration: authenticates with
README.md - Server app registration → Client app registration: pre-authorizes
README.md - Power Apps → Connector API example: uses example
README.md - Custom connector → Azure MCP Server: invokes over HTTPS
README.md - Copilot Studio agent → Custom connector: uses connector
README.md - Microsoft Foundry agent → Azure MCP Server: invokes tools
README.md - Container App → Application Insights: monitored by