You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
PR #2872 migrated App Lens tools to the new tool design. During this migration, ResourceDiagnoseOptions was updated so that --subscription, --resource-group, and --resource-type became optional parameters (used only to disambiguate when multiple resources share the same name). Only --resource and --question remain required. A --tenant option was also added.
The command description now explicitly states: "Only the resource name and question are required — subscription, resource group, and resource type are optional and used to narrow down results when multiple resources share the same name."
Gaps Found
azmcp-commands.md shows --subscription, --resource-group, and --resource-type as required (no brackets), but they are now optional
azmcp-commands.md is missing the [--tenant] option
The command signature in the docs no longer matches the actual MCP tool input schema
# Diagnose resource using Azure App Lens# Only --resource and --question are required; subscription, resource-group, and resource-type are optional and used to narrow down results when multiple resources share the same name# ❌ Destructive | ✅ Idempotent | ❌ OpenWorld | ✅ ReadOnly | ❌ Secret | ❌ LocalRequired
azmcp applens resource diagnose --resource <resource> \
--question <question> \
[--subscription <subscription>] \
[--resource-group <resource-group>] \
[--resource-type <resource-type>] \
[--tenant <tenant>]
Step 2: Verify documentation structure
servers/Azure.Mcp.Server/docs/azmcp-commands.md — must include:
A global options table at the top (subscription, resource-group, tenant, retry-max-retries, retry-delay)
One ## azmcp <service> <resource> <operation> section per command, containing a description, parameters table, and example usage block
Step 3: Validate
Run these commands in order. Each must succeed before proceeding to the next:
dotnet build servers/Azure.Mcp.Server/ — confirms the server project compiles cleanly
dotnet build tools/Azure.Mcp.Tools.AppLens/src/ — confirms the AppLens toolset compiles
.\eng\common\spelling\Invoke-Cspell.ps1 — checks spelling in new or modified documentation
Next Steps
Tip
Ready for automated implementation? Assign this issue to @copilot to have Copilot coding agent implement the changes described in the Implementation Guide above
Documentation Gap
Server:
Azure.Mcp.ServerTool directory:
tools/Azure.Mcp.Tools.AppLensTriggered by: e908c69 (PR #2872) by
@alzimmermsftChanged files:
tools/Azure.Mcp.Tools.AppLens/src/Commands/Resource/ResourceDiagnoseCommand.cstools/Azure.Mcp.Tools.AppLens/src/Options/Resource/ResourceDiagnoseOptions.cstools/Azure.Mcp.Tools.AppLens/src/Options/AppLensOptionDefinitions.cs(removed)What Changed
PR #2872 migrated App Lens tools to the new tool design. During this migration,
ResourceDiagnoseOptionswas updated so that--subscription,--resource-group, and--resource-typebecame optional parameters (used only to disambiguate when multiple resources share the same name). Only--resourceand--questionremain required. A--tenantoption was also added.The command description now explicitly states: "Only the resource name and question are required — subscription, resource group, and resource type are optional and used to narrow down results when multiple resources share the same name."
Gaps Found
azmcp-commands.mdshows--subscription,--resource-group, and--resource-typeas required (no brackets), but they are now optionalazmcp-commands.mdis missing the[--tenant]optionFiles to Update
servers/Azure.Mcp.Server/docs/azmcp-commands.mdContext
Current docs (incorrect):
Correct signature based on
ResourceDiagnoseOptions.csafter #2872:📐 Implementation Guide
This section contains step-by-step instructions for a coding agent to implement the changes described above.
Step 1: Modify files
File:
servers/Azure.Mcp.Server/docs/azmcp-commands.mdFind and replace the existing App Lens diagnose command block:
Old:
New:
Step 2: Verify documentation structure
servers/Azure.Mcp.Server/docs/azmcp-commands.md— must include:## azmcp <service> <resource> <operation>section per command, containing a description, parameters table, and example usage blockStep 3: Validate
Run these commands in order. Each must succeed before proceeding to the next:
dotnet build servers/Azure.Mcp.Server/— confirms the server project compiles cleanlydotnet build tools/Azure.Mcp.Tools.AppLens/src/— confirms the AppLens toolset compiles.\eng\common\spelling\Invoke-Cspell.ps1— checks spelling in new or modified documentationNext Steps
Tip
Ready for automated implementation? Assign this issue to
@copilotto have Copilot coding agent implement the changes described in the Implementation Guide above