Skip to content

Add createmigrateproject action to AzureMigrate PlatformLandingZone Request Command#1724

Open
akshayrohilla wants to merge 7 commits intomainfrom
users/akshayrohilla/addCreateMigrateProjectAction
Open

Add createmigrateproject action to AzureMigrate PlatformLandingZone Request Command#1724
akshayrohilla wants to merge 7 commits intomainfrom
users/akshayrohilla/addCreateMigrateProjectAction

Conversation

@akshayrohilla
Copy link
Contributor

What does this PR do?

Add createmigrateproject action in azmcp_azuremigrate_platformlandingzone_request command to create a new Azure Migrate project if one doesn't exist

Pre-merge Checklist

  • Required for All PRs
    • Read contribution guidelines
    • PR title clearly describes the change
    • Commit history is clean with descriptive messages (cleanup guide)
    • Added comprehensive tests for new/modified functionality
    • Updated servers/Azure.Mcp.Server/CHANGELOG.md and/or servers/Fabric.Mcp.Server/CHANGELOG.md for product changes (features, bug fixes, UI/UX, updated dependencies)
  • For MCP tool changes:
    • [] One tool per PR: This PR adds or modifies only one MCP tool for faster review cycles
    • [] Updated servers/Azure.Mcp.Server/README.md and/or servers/Fabric.Mcp.Server/README.md documentation
    • Validate README.md changes using script at eng/scripts/Process-PackageReadMe.ps1. See Package README
    • Updated command list in /servers/Azure.Mcp.Server/docs/azmcp-commands.md and/or /docs/fabric-commands.md
    • Run .\eng\scripts\Update-AzCommandsMetadata.ps1 to update tool metadata in azmcp-commands.md (required for CI)
    • For new or modified tool descriptions, ran ToolDescriptionEvaluator and obtained a score of 0.4 or more and a top 3 ranking for all related test prompts
    • For tools with new names, including new tools or renamed tools, update consolidated-tools.json
    • For new tools associated with Azure services or publicly available tools/APIs/products, add URL to documentation in the PR description
  • Extra steps for Azure MCP Server tool changes:
    • Updated test prompts in /servers/Azure.Mcp.Server/docs/e2eTestPrompts.md
    • 👉 For Community (non-Microsoft team member) PRs:
      • Security review: Reviewed code for security vulnerabilities, malicious code, or suspicious activities before running tests (crypto mining, spam, data exfiltration, etc.)
      • Manual tests run: added comment /azp run mcp - pullrequest - live to run Live Test Pipeline

Copy link
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

This PR adds a "createmigrateproject" action to the Azure Migrate Platform Landing Zone Request command, enabling users to create Azure Migrate projects. It also transitions the tests to use recorded tests infrastructure following the documented pattern.

Changes:

  • Adds new "createmigrateproject" action to create Azure Migrate projects with location parameter validation
  • Introduces recorded test infrastructure with test resources (Bicep), post-deployment scripts, and assets.json
  • Updates command documentation and workflow descriptions to include the new action

Reviewed changes

Copilot reviewed 18 out of 19 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
test-resources.bicep Defines Azure Migrate project resource for test environment
test-resources-post.ps1 Post-deployment script creating test settings file
assets.json Test proxy assets configuration for recorded tests
AzureMigrateCommandTests.cs Comprehensive test suite inheriting from RecordedCommandTestsBase
Azure.Mcp.Tools.AzureMigrate.LiveTests.csproj Test project configuration
PlatformLandingZoneService.cs Enhanced CheckExistingAsync to parse JSON response properly
RequestOptions.cs Adds Location property for resource creation
PlatformLandingZoneOptionDefinitions.cs Defines location option for CLI
MigrateProjectResult.cs Result model for migrate project operations
MigrateProjectCreateContent.cs Request content model with AOT-safe serialization
AzureMigrateSerializerContext.cs JSON source generator context for AOT compatibility
AzureMigrateProjectHelper.cs Helper class extending BaseAzureResourceService to create projects
RequestCommand.cs Updated command with createmigrateproject action and workflow documentation
AzureMigrateSetup.cs Registers AzureMigrateProjectHelper service and updates description
e2eTestPrompts.md Adds test prompts for the new action
azmcp-commands.md Documents the createmigrateproject action usage
changelog entry Records the feature addition
mcp.sln Adds new test project and x64/x86 build configurations
Microsoft.Mcp.slnx Adds test project reference

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: Untriaged

Development

Successfully merging this pull request may close these issues.

1 participant