Skip to content

Add Compute Disk create/update commands#1936

Merged
KarishmaGhiya merged 23 commits intomainfrom
audreyttt-compute-disk-create-update
Mar 11, 2026
Merged

Add Compute Disk create/update commands#1936
KarishmaGhiya merged 23 commits intomainfrom
audreyttt-compute-disk-create-update

Conversation

@audreyttt
Copy link
Copy Markdown
Member

@audreyttt audreyttt commented Mar 4, 2026

Summary

#1552

Adds two new Azure Compute managed disk commands: azmcp compute disk create and azmcp compute disk update. These commands enable AI agents to create and modify Azure managed disks through the MCP server.

New Commands

azmcp compute disk create

Creates a new Azure managed disk with comprehensive parameter support:

  • Empty disks: Specify --size-gb to create a blank disk
  • Source-based: Create from snapshots, other managed disks, or blob URIs via --source
  • Gallery images: Create from Shared Image Gallery image versions via --gallery-image-reference
  • Upload-ready: Prepare disks for VHD upload via --upload-type and --upload-size-bytes
  • Configuration: SKU (Premium_LRS, Standard_LRS, UltraSSD_LRS, etc.), OS type, availability zone, hypervisor generation, tags, encryption settings, performance tier, shared disk, on-demand bursting, IOPS/throughput limits, and network access policy

azmcp compute disk update

Updates properties of an existing Azure managed disk:

  • Resize (increase only), change SKU, adjust IOPS/throughput (UltraSSD), modify max shares
  • Toggle on-demand bursting, update tags, change encryption settings
  • Modify network access policy and disk access association, change performance tier
  • Only specified properties are updated; unspecified remain unchanged

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)

@audreyttt audreyttt marked this pull request as ready for review March 4, 2026 18:55
@audreyttt audreyttt requested a review from g2vinay as a code owner March 4, 2026 18:55
Copilot AI review requested due to automatic review settings March 4, 2026 18:55
@audreyttt audreyttt requested review from a team as code owners March 4, 2026 18:55
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 create and azmcp compute disk update commands 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.

Comment thread tools/Azure.Mcp.Tools.Compute/src/Commands/Disk/DiskCreateCommand.cs Outdated
Comment thread tools/Azure.Mcp.Tools.Compute/src/Services/ComputeService.cs
Comment thread tools/Azure.Mcp.Tools.Compute/src/Services/ComputeService.cs Outdated
Comment thread tools/Azure.Mcp.Tools.Compute/src/Commands/Disk/DiskUpdateCommand.cs Outdated
Comment thread tools/Azure.Mcp.Tools.Compute/tests/test-resources.bicep Outdated
@audreyttt audreyttt changed the title Add compute disk create and compute disk update commands Add Compute Disk create/update commands Mar 4, 2026
Comment thread servers/Azure.Mcp.Server/docs/azmcp-commands.md
Comment thread servers/Azure.Mcp.Server/docs/azmcp-commands.md
Comment thread servers/Azure.Mcp.Server/src/Resources/consolidated-tools.json
@github-project-automation github-project-automation Bot moved this from Untriaged to In Progress in Azure MCP Server Mar 10, 2026
Comment thread servers/Azure.Mcp.Server/docs/e2eTestPrompts.md
@KarishmaGhiya KarishmaGhiya merged commit b445577 into main Mar 11, 2026
15 checks passed
@github-project-automation github-project-automation Bot moved this from In Progress to Done in Azure MCP Server Mar 11, 2026
@KarishmaGhiya KarishmaGhiya deleted the audreyttt-compute-disk-create-update branch March 11, 2026 18:26
colbytimm pushed a commit to colbytimm/microsoft-mcp that referenced this pull request Apr 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

4 participants