Add createmigrateproject action to AzureMigrate PlatformLandingZone Request Command#1724
Open
akshayrohilla wants to merge 7 commits intomainfrom
Open
Add createmigrateproject action to AzureMigrate PlatformLandingZone Request Command#1724akshayrohilla wants to merge 7 commits intomainfrom
akshayrohilla wants to merge 7 commits intomainfrom
Conversation
Contributor
There was a problem hiding this comment.
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 |
tools/Azure.Mcp.Tools.AzureMigrate/src/Commands/PlatformLandingZone/RequestCommand.cs
Show resolved
Hide resolved
…ttps://github.com/microsoft/mcp into users/akshayrohilla/addCreateMigrateProjectAction
…shayrohilla/addCreateMigrateProjectAction
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.
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
servers/Azure.Mcp.Server/CHANGELOG.mdand/orservers/Fabric.Mcp.Server/CHANGELOG.mdfor product changes (features, bug fixes, UI/UX, updated dependencies)servers/Azure.Mcp.Server/README.mdand/orservers/Fabric.Mcp.Server/README.mddocumentationeng/scripts/Process-PackageReadMe.ps1. See Package README/servers/Azure.Mcp.Server/docs/azmcp-commands.mdand/or/docs/fabric-commands.md.\eng\scripts\Update-AzCommandsMetadata.ps1to update tool metadata in azmcp-commands.md (required for CI)ToolDescriptionEvaluatorand obtained a score of0.4or more and a top 3 ranking for all related test promptsconsolidated-tools.json/servers/Azure.Mcp.Server/docs/e2eTestPrompts.mdcrypto mining, spam, data exfiltration, etc.)/azp run mcp - pullrequest - liveto run Live Test Pipeline