[BUG] deploy architecture diagram generate never shows Docker settings for container apps
Maintainers usually reply within 2 days
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 86/100
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
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
Starts the project's dev container in your browser, under your own GitHub account.
- Ships a Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from microsoft/mcp
-
[BUG] speech tts synthesize rejects valid locales such as fil-PH, yue-CN and sr-Latn-RS in --languagePossibly taken @Shizoqua claimed this today. OpenAzure.Mcp.Server needs-triage
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 2 days
-
[BUG] Single mode: an unknown tool name fails with "An error occurred invoking 'azure'" instead of listing the available toolsPossibly taken @Ahmed-Manai claimed this 9 days ago. Openserver-Azure.Mcp
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
Maintainers usually reply within 2 days
-
[BUG] pricing get drops tierMinimumUnits, so tiered meters return same-meter prices with no thresholdPossibly taken @msalaman claimed this 29 days ago. Opencustomer-reported needs-team-triage question server-Azure.Mcp tools-Price tools-Pricing
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
microsoft/mcp#4087 · 1 comment · 1 assignee ·
Maintainers usually reply within 2 days
-
[Doc Gap] README.md still shows removed "Basic" resilience usage plan tier after GA SDK updateMay be free again @anishsinghhh3-bit claimed this 32 days ago, and no pull request is open. Opencopilot documentation server-Azure.Mcp tools-ResilienceManagement
Difficulty 1/5 Under an hour Newbie friendliness 86/100
microsoft/mcp#4008 · 2 comments ·
Maintainers usually reply within 2 days
-
[Doc Gap] Azure Backup protect/update-protection/undelete docs missing new `OperationId` field and updated `JobId` semanticsMay be free again @akhil9tiet claimed this 50 days ago, and no pull request is open. Opencopilot documentation server-Azure.Mcp tools-AzureBackup
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
microsoft/mcp#3962 · 1 comment ·
Maintainers usually reply within 2 days
Similar issues
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 1 day
-
Project dependencies are outdatedPossibly taken @yasmoradi claimed this today. Opendependencies
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
bitfoundation/bitplatform#15616 ·
Maintainers usually reply within 1 day
-
:watch: Not Triaged Pri3
Difficulty 1/5 Under an hour Newbie friendliness 91/100
Maintainers usually reply within 1 day
-
area-controls-shell platform/android
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
dotnet/maui#41304 · 1 reaction ·
Maintainers usually reply within 1 day
-
area-ItemsRepeater needs-triage team-Controls
Difficulty 2/5 1-3 hours Newbie friendliness 67/100
microsoft/microsoft-ui-xaml#12986 · 2 comments ·
Maintainers usually reply within 3 days