Skip to content

[BUG] Azure MCP Server 2.0.0-beta.7 fails to start in Azure Container Apps — no runtime logs, immediate ContainerBackOff #1341

@jpsantoscosta

Description

@jpsantoscosta

Describe the bug

When deploying Azure MCP Server 2.0.0-beta.7 as a remote MCP HTTP server inside Azure Container Apps, the container fails immediately with ContainerBackOff.

No logs from the MCP server are produced (stdout/stderr completely empty), and ACA only reports generic startup probe failures and back-off events.

This happens with both:

  • mcr.microsoft.com/azure-sdk/azure-mcp:latest (v1)
  • mcr.microsoft.com/azure-sdk/azure-mcp:2.0.0-beta.7 (v2)

This prevents Azure AI Foundry agents from invoking MCP tools hosted in Azure Container Apps.

Additional Notes
Attempted Fixes (all unsuccessful)

  • Using latest instead of 2.0.0-beta.7
  • Explicit command overrides
  • Minimal arguments (azmcp server start with no flags)
  • Switching transports between http and default (stdio)
  • Rebuilding environment from scratch
  • Ensuring identity, RBAC, and network configuration were correct

Expected behavior

  • The MCP Server should start successfully using:

azmcp server start --transport http --namespace storage --read-only

  • Server should listen on port 3000 (or documented port)
  • Console logs should show CLI messages (Starting Azure MCP Server…, etc.)
  • Startup probe should succeed
  • Foundry should be able to reach it as a Remote MCP server via HTTPS

Actual behavior

  • Container immediately exits before writing ANY logs
  • No stdout or stderr from MCP server
  • ACA only reports:
startup probe failed: connection refused
ContainerBackOff
  • Browser access to the MCP endpoint results in stream timeout after several minutes
  • Foundry cannot connect to the MCP server

Reproduction Steps

  1. Deploy Azure MCP Server via azd up
  • From the official sample (servers/Azure.Mcp.Server/samples/foundry):

azd up

Deployment succeeds:

  • Container Apps Environment created
  • Container App created
  • All role assignments succeed
  • azd reports success
  1. Switch container image to beta version (per docs)

Update Container App revision to use:

mcr.microsoft.com/azure-sdk/azure-mcp:2.0.0-beta.7

  1. Configure explicit command override (to avoid v1 entrypoint flags)
Command: azmcp
Args: server start --transport http --namespace storage --read-only

A new revision (azure-mcp-storage-server--beta7-http) is created successfully.

  1. Observe container status

Container immediately enters:


1/1 Container Crashing
ContainerBackOff
  1. Check logs
    Console logs (stdout/stderr)

Only shows ACA wrapper messages:

Connecting to the container 'azure-mcp-storage-server'...
Successfully Connected to container ...

No logs from azmcp appear at all.

System logs

Repeated failures:

startup probe failed: connection refused
Persistent Failure to start container
Reason: ContainerBackOff

as well as repeated image pulls:

Pulling image "mcr.microsoft.com/azure-sdk/azure-mcp:2.0.0-beta.7"

There are no MCP server logs, no exception, no error text from the process itself.

Environment

  • Azure Container Apps (Linux consumption)
  • Azure AI Foundry project used as the MCP client
  • Storage account used for --namespace storage
  • System-assigned managed identity enabled for Container App
  • Deployed using azd up from the official sample template

Metadata

Metadata

Assignees

No one assigned

    Labels

    needs-triageWorkflow: This is a new issue that needs to be triaged to the appropriate team.

    Type

    No type

    Projects

    Status

    Untriaged

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions