[BUG] deploy architecture diagram generate never shows Docker settings for container apps

Open Beginner friendly
#4,353 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 2 days

@Shizoqua is already working on this.

Since Dec 4, 2026.

  • #4354 by @Shizoqua — open

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
86/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Active
Tech stack
csharp
Domain
cli

Research direction

Start in tools/Azure.Mcp.Tools.Deploy/src/Commands/Infrastructure/GenerateMermaidChart.cs and compare the Docker settings condition with the containerapp values described for deploy-app-topology-schema.json and AzureServiceNames.AzureContainerApp. Reproduce the case with DiagramGenerateCommandTests using the topology in the issue. Done when the generated Mermaid diagram includes both Docker lines for a containerapp service with dockerSettings.

Written by the indexing model from the issue text.

Description

Azure.Mcp.Server needs-triage
Describe the bug

deploy architecture diagram generate never shows Docker settings for container app services, even when dockerSettings is provided.

In tools/Azure.Mcp.Tools.Deploy/src/Commands/Infrastructure/GenerateMermaidChart.cs the DockerFile: and Docker Context: lines are only added when azureComputeHost equals "azurecontainerapp":

if (service.DockerSettings != null &&
    string.Equals(service.AzureComputeHost, "azurecontainerapp", StringComparison.OrdinalIgnoreCase))

That value is not in the app topology schema. The azureComputeHost enum in deploy-app-topology-schema.json is appservice, containerapp, function, staticwebapp, aks, and the dockerSettings description says it is "only needed if the service's azureComputeHost is containerapp". The rest of the same file, and AzureServiceNames.AzureContainerApp, use "containerapp". So the condition can never be true for valid input.

Expected behavior

For a service with azureComputeHost: "containerapp" and dockerSettings set, the service node in the diagram includes DockerFile: <dockerFilePath> and Docker Context: <dockerContext>.

Actual behavior

The Docker lines are never rendered. The diagram only shows name, path, language and port for the service.

Reproduction Steps

Call deploy_architecture_diagram_generate (CLI: azmcp deploy architecture diagram generate) with:

{
  "workspaceFolder": "testWorkspace",
  "projectName": "testProject",
  "services": [
    {
      "name": "frontend",
      "path": "testWorkspace/web",
      "azureComputeHost": "containerapp",
      "language": "js",
      "port": "8080",
      "dependencies": [],
      "dockerSettings": {
        "dockerFilePath": "testWorkspace/web/Dockerfile",
        "dockerContext": "testWorkspace/web"
      }
    }
  ]
}

The returned Mermaid diagram contains no DockerFile: or Docker Context: text. No Azure resources or credentials are needed; the command runs locally.

A unit test in DiagramGenerateCommandTests that passes this topology and asserts DockerFile: testWorkspace/web/Dockerfile fails on current main.

Environment
  • Current main (3b67a26)
  • Ubuntu 24.04, .NET SDK 10.0.403
Dominant language
C#
Stars
3.9k
Forks
689
Avg merge
2d 11h
Merged PRs (30d)
143

Getting set up

Open in Codespaces

Starts the project's dev container in your browser, under your own GitHub account.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from microsoft/mcp

All issues in microsoft/mcp

Similar issues

More C# issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.