[MIGRATE] Fix edge case bugs with az migrate local replication init & new commands#9675
[MIGRATE] Fix edge case bugs with az migrate local replication init & new commands#9675necusjz merged 45 commits intoAzure:mainfrom
Conversation
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This reverts commit 0f7acb7.
️✔️Azure CLI Extensions Breaking Change Test
|
|
Thank you for your contribution! We will review the pull request and get back to you soon. |
|
The git hooks are available for azure-cli and azure-cli-extensions repos. They could help you run required checks before creating the PR. Please sync the latest code with latest dev branch (for azure-cli) or main branch (for azure-cli-extensions). pip install azdev --upgrade
azdev setup -c <your azure-cli repo path> -r <your azure-cli-extensions repo path>
|
There was a problem hiding this comment.
Pull request overview
This PR increments the migrate extension beta version and addresses edge cases in Azure Migrate local replication initialization and “new” replication flows, especially around fabric agent (DRA) selection behavior.
Changes:
- Bump extension version to
3.0.0b4and add a corresponding HISTORY entry. - Improve fabric agent (DRA) selection to support case-insensitive appliance matching and to optionally proceed when the DRA is non-responsive but in
Succeededprovisioning state. - Add/extend unit tests for
get_fabric_agentedge cases (non-responsive + provisioning state, case-insensitive match, no match).
Reviewed changes
Copilot reviewed 5 out of 5 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
src/migrate/setup.py |
Version bump to 3.0.0b4. |
src/migrate/HISTORY.rst |
Add release notes for 3.0.0b4. |
src/migrate/azext_migrate/helpers/replication/init/_setup_policy.py |
Update get_fabric_agent selection logic and diagnostics. |
src/migrate/azext_migrate/helpers/replication/new/_process_inputs.py |
Update source/target DRA selection logic and error messages for “new” flow. |
src/migrate/azext_migrate/tests/latest/test_migrate_commands.py |
Add test coverage for new get_fabric_agent behaviors. |
|
|
[Release] Update index.json for extension [ migrate-3.0.0b4 ] : https://dev.azure.com/msazure/One/_build/results?buildId=156422676&view=results |
This checklist is used to make sure that common guidelines for a pull request are followed.
Related command
General Guidelines
azdev style <YOUR_EXT>locally? (pip install azdevrequired)python scripts/ci/test_index.py -qlocally? (pip install wheel==0.30.0required)For new extensions:
About Extension Publish
There is a pipeline to automatically build, upload and publish extension wheels.
Once your pull request is merged into main branch, a new pull request will be created to update
src/index.jsonautomatically.You only need to update the version information in file setup.py and historical information in file HISTORY.rst in your PR but do not modify
src/index.json.