-
Notifications
You must be signed in to change notification settings - Fork 340
Description
Describe the bug
I'm trying to get Azure MCP to run in Azure container apps.
Instructions state that you should define AZURE_CLIENT_ID, AZURE_CLIENT_SECRET, AZURE_TENANT_ID.
However container crashes with error "ClientId" should be defined.
I've additionally defined these:
AZURE_TOKEN_CREDENTIALS=true, AZURE_MCP_INCLUDE_PRODUCTION_CREDENTIALS=false
and --transport=http.
Expected behavior
Extra authentication to MCP should not be required as it should use "EnvironmentCredential".
Actual behavior
Container crashed and throws this exception: System.ArgumentNullException: IDW10106: The 'ClientId' option must be provided.
Reproduction Steps
containers: [
{
name: 'azure-mcp-server'
image: 'mcr.microsoft.com/azure-sdk/azure-mcp:latest'
args: serverArgs
resources: {
cpu: json('0.25')
memory: '0.5Gi'
}
env: [
{
name: 'ASPNETCORE_ENVIRONMENT'
value: 'production'
}
{
name: 'ASPNETCORE_URLS'
value: 'http://+:8080'
}
{
name: 'ASPNETCORE_ENVIRONMENT'
value: 'production'
}
{
name: 'AZURE_TOKEN_CREDENTIALS'
value: 'prod'
}
{
name: 'AZURE_MCP_DANGEROUSLY_DISABLE_HTTPS_REDIRECTION'
value: 'true'
}
{
name: 'AZURE_MCP_INCLUDE_PRODUCTION_CREDENTIALS'
value: 'false'
}
{
name: 'AZURE_TENANT_ID'
value: azureTenantId
}
{
name: 'AZURE_CLIENT_ID'
value: managedIdentityClientId
}
{
name: 'AZURE_CLIENT_SECRET'
value: managedIdentityClientSecret
}
]
}
Environment
No response
Metadata
Metadata
Assignees
Labels
Type
Projects
Status