Add Compute Disk create/update commands#1936
Merged
KarishmaGhiya merged 23 commits intomainfrom Mar 11, 2026
Merged
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
Adds Azure Compute managed disk create and update capabilities to the Compute toolset, enabling AI agents to provision and modify Azure managed disks via MCP/azmcp.
Changes:
- Introduces
azmcp compute disk createandazmcp compute disk updatecommands with corresponding option definitions and service APIs. - Expands Compute service to support disk creation/update and updates command registration/JSON serialization.
- Updates docs, consolidated tool mappings, and Compute unit/live tests to cover the new commands.
Reviewed changes
Copilot reviewed 23 out of 23 changed files in this pull request and generated 12 comments.
Show a summary per file
| File | Description |
|---|---|
| tools/Azure.Mcp.Tools.Compute/tests/test-resources.json | ARM template adjustments for Compute test infrastructure (generator metadata/role assignment changes). |
| tools/Azure.Mcp.Tools.Compute/tests/test-resources.bicep | Adds gallery resources and outputs intended for disk create scenarios in test infra. |
| tools/Azure.Mcp.Tools.Compute/tests/test-resources-post.ps1 | Prints additional deployment output used by tests. |
| tools/Azure.Mcp.Tools.Compute/tests/Azure.Mcp.Tools.Compute.UnitTests/Disk/DiskUpdateCommandTests.cs | New unit tests for disk update command behavior/binding/error handling. |
| tools/Azure.Mcp.Tools.Compute/tests/Azure.Mcp.Tools.Compute.UnitTests/Disk/DiskGetCommandTests.cs | Updates tests for renamed disk option and updated DI usage. |
| tools/Azure.Mcp.Tools.Compute/tests/Azure.Mcp.Tools.Compute.UnitTests/Disk/DiskCreateCommandTests.cs | New unit tests for disk create command behavior/binding/error handling. |
| tools/Azure.Mcp.Tools.Compute/tests/Azure.Mcp.Tools.Compute.LiveTests/assets.json | Updates pinned test assets tag. |
| tools/Azure.Mcp.Tools.Compute/tests/Azure.Mcp.Tools.Compute.LiveTests/ComputeCommandTests.cs | Adds live tests for disk create/update and updates sanitization/parameter names. |
| tools/Azure.Mcp.Tools.Compute/src/Services/IComputeService.cs | Adds disk create/update methods to the Compute service contract. |
| tools/Azure.Mcp.Tools.Compute/src/Services/ComputeService.cs | Implements disk create/update operations against ARM (managed disks). |
| tools/Azure.Mcp.Tools.Compute/src/Options/Disk/DiskUpdateOptions.cs | New options model for disk update command. |
| tools/Azure.Mcp.Tools.Compute/src/Options/Disk/DiskCreateOptions.cs | New options model for disk create command. |
| tools/Azure.Mcp.Tools.Compute/src/Options/ComputeOptionDefinitions.cs | Adds disk-related option definitions; renames disk option to disk-name; makes location optional. |
| tools/Azure.Mcp.Tools.Compute/src/ComputeSetup.cs | Registers new disk commands in DI and command group. |
| tools/Azure.Mcp.Tools.Compute/src/Commands/Disk/DiskUpdateCommand.cs | New disk update command implementation. |
| tools/Azure.Mcp.Tools.Compute/src/Commands/Disk/DiskGetCommand.cs | Refactors to resolve IComputeService from context; updates description. |
| tools/Azure.Mcp.Tools.Compute/src/Commands/Disk/DiskCreateCommand.cs | New disk create command implementation. |
| tools/Azure.Mcp.Tools.Compute/src/Commands/ComputeJsonContext.cs | Adds source-gen serialization entries for new command results. |
| servers/Azure.Mcp.Server/src/Resources/consolidated-tools.json | Adds consolidated tool mappings for disk create/update scenarios. |
| servers/Azure.Mcp.Server/docs/e2eTestPrompts.md | Adds e2e prompt coverage for disk create/update. |
| servers/Azure.Mcp.Server/docs/azmcp-commands.md | Documents new azmcp disk create/update commands and updates disk get option name. |
| servers/Azure.Mcp.Server/changelog-entries/1771982422646.yaml | Adds changelog entry for the new disk commands. |
| servers/Azure.Mcp.Server/README.md | Updates example prompts to include disk create/update. |
You can also share your feedback on Copilot code review. Take the survey.
KarishmaGhiya
approved these changes
Mar 10, 2026
g2vinay
reviewed
Mar 10, 2026
KarishmaGhiya
approved these changes
Mar 11, 2026
colbytimm
pushed a commit
to colbytimm/microsoft-mcp
that referenced
this pull request
Apr 20, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
#1552
Adds two new Azure Compute managed disk commands:
azmcp compute disk createandazmcp compute disk update. These commands enable AI agents to create and modify Azure managed disks through the MCP server.New Commands
azmcp compute disk createCreates a new Azure managed disk with comprehensive parameter support:
--size-gbto create a blank disk--source--gallery-image-reference--upload-typeand--upload-size-bytesazmcp compute disk updateUpdates properties of an existing Azure managed disk:
Tool Description Evaluation
Total Prompts Tested: 60
Analysis Execution Time: 16.3401053s
Success Rate Metrics
Top Choice Success: 100.0% (60/60 tests)
Confidence Level Distribution
💪 Very High Confidence (≥0.8): 0.0% (0/60 tests)
🎯 High Confidence (≥0.7): 3.3% (2/60 tests)
✅ Good Confidence (≥0.6): 41.7% (25/60 tests)
👍 Fair Confidence (≥0.5): 83.3% (50/60 tests)
👌 Acceptable Confidence (≥0.4): 100.0% (60/60 tests)
❌ Low Confidence (<0.4): 0.0% (0/60 tests)