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 #2888 migrated Azure Backup tools to the new tool design where options are bound via [Option] attributes on properties instead of explicit Option<T> static fields. As part of this migration, the AKS backup options were moved from PolicyCreateOptions to ProtectedItemProtectOptions — they no longer exist on the policy create command, but now exist on the protect command.
The azmcp-commands.md documentation file was not updated (the checklist item was left unchecked in the PR).
Gaps Found
azmcp azurebackup policy create still shows five AKS-specific options in azmcp-commands.md that were removed from PolicyCreateOptions in PR Migrate Azure Backup tools to new tool design #2888 and will now cause a "unrecognized option" error if used.
azmcp azurebackup protecteditem protect is missing those same five AKS-specific options in azmcp-commands.md, even though they were added to ProtectedItemProtectOptions in PR Migrate Azure Backup tools to new tool design #2888.
Files to Update
servers/Azure.Mcp.Server/docs/azmcp-commands.md
Context
Removed from PolicyCreateOptions (no longer accepted by policy create):
Also update the comment # --- Stage 2: smart tiering / snapshot / vault-tier copy / backup mode / PITR / tags / AKS --- to remove the / AKS suffix since AKS options are no longer part of policy create.
Location 2 — azurebackup protecteditem protect (around line 985-992):
servers/Azure.Mcp.Server/docs/azmcp-commands.md — confirm the azurebackup policy create and azurebackup protecteditem protect command blocks are consistent with the rest of the Azure Backup section.
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.AzureBackup/src/ — confirms the affected toolset compiles
dotnet test tools/Azure.Mcp.Tools.AzureBackup/tests/Azure.Mcp.Tools.AzureBackup.Tests/ --filter "TestType!=Live" — runs unit tests for the affected toolset
.\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.AzureBackupTriggered by: commit 648071d (PR #2888) by
@alzimmermsftChanged files:
tools/Azure.Mcp.Tools.AzureBackup/src/Commands/Policy/PolicyCreateCommand.cstools/Azure.Mcp.Tools.AzureBackup/src/Commands/ProtectedItem/ProtectedItemProtectCommand.cstools/Azure.Mcp.Tools.AzureBackup/src/Options/AzureBackupOptionDefinitions.cstools/Azure.Mcp.Tools.AzureBackup/src/Options/Policy/PolicyCreateOptions.cstools/Azure.Mcp.Tools.AzureBackup/src/Options/ProtectedItem/ProtectedItemProtectOptions.csWhat Changed
PR #2888 migrated Azure Backup tools to the new tool design where options are bound via
[Option]attributes on properties instead of explicitOption<T>static fields. As part of this migration, the AKS backup options were moved fromPolicyCreateOptionstoProtectedItemProtectOptions— they no longer exist on the policy create command, but now exist on the protect command.The
azmcp-commands.mddocumentation file was not updated (the checklist item was left unchecked in the PR).Gaps Found
azmcp azurebackup policy createstill shows five AKS-specific options inazmcp-commands.mdthat were removed fromPolicyCreateOptionsin PR Migrate Azure Backup tools to new tool design #2888 and will now cause a "unrecognized option" error if used.azmcp azurebackup protecteditem protectis missing those same five AKS-specific options inazmcp-commands.md, even though they were added toProtectedItemProtectOptionsin PR Migrate Azure Backup tools to new tool design #2888.Files to Update
servers/Azure.Mcp.Server/docs/azmcp-commands.mdContext
Removed from
PolicyCreateOptions(no longer accepted bypolicy create):Added to
ProtectedItemProtectOptions(now accepted byprotecteditem protect):Confirmed by inspecting current source:
tools/Azure.Mcp.Tools.AzureBackup/src/Options/Policy/PolicyCreateOptions.cs— does not contain any AKS propertiestools/Azure.Mcp.Tools.AzureBackup/src/Options/ProtectedItem/ProtectedItemProtectOptions.cs— does contain:AksSnapshotResourceGroup,AksIncludedNamespaces,AksExcludedNamespaces,AksLabelSelectors,AksIncludeClusterScopeResources📐 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.mdAction: Edit (two locations)
Location 1 —
azurebackup policy create(around line 946-950):Remove these five lines from the
policy createcommand signature (they are no longer valid options):Also update the comment
# --- Stage 2: smart tiering / snapshot / vault-tier copy / backup mode / PITR / tags / AKS ---to remove the/ AKSsuffix since AKS options are no longer part of policy create.Location 2 —
azurebackup protecteditem protect(around line 985-992):Replace:
With:
Step 2: Verify documentation structure
servers/Azure.Mcp.Server/docs/azmcp-commands.md— confirm theazurebackup policy createandazurebackup protecteditem protectcommand blocks are consistent with the rest of the Azure Backup section.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 cleanlydotnet build tools/Azure.Mcp.Tools.AzureBackup/src/— confirms the affected toolset compilesdotnet test tools/Azure.Mcp.Tools.AzureBackup/tests/Azure.Mcp.Tools.AzureBackup.Tests/ --filter "TestType!=Live"— runs unit tests for the affected toolset.\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