Skip to content

[MIGRATE] Fix edge case bugs with az migrate local replication init & new commands#9675

Merged
necusjz merged 45 commits intoAzure:mainfrom
saifaldin14:main
Mar 12, 2026
Merged

[MIGRATE] Fix edge case bugs with az migrate local replication init & new commands#9675
necusjz merged 45 commits intoAzure:mainfrom
saifaldin14:main

Conversation

@saifaldin14
Copy link
Contributor


This checklist is used to make sure that common guidelines for a pull request are followed.

Related command

General Guidelines

  • Have you run azdev style <YOUR_EXT> locally? (pip install azdev required)
  • Have you run python scripts/ci/test_index.py -q locally? (pip install wheel==0.30.0 required)
  • My extension version conforms to the Extension version schema

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.json automatically.
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.

Copilot AI review requested due to automatic review settings March 11, 2026 22:44
@azure-client-tools-bot-prd
Copy link

azure-client-tools-bot-prd bot commented Mar 11, 2026

️✔️Azure CLI Extensions Breaking Change Test
️✔️Non Breaking Changes

@yonzhan
Copy link
Collaborator

yonzhan commented Mar 11, 2026

Thank you for your contribution! We will review the pull request and get back to you soon.

@github-actions
Copy link
Contributor

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).
After that please run the following commands to enable git hooks:

pip install azdev --upgrade
azdev setup -c <your azure-cli repo path> -r <your azure-cli-extensions repo path>

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 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.0b4 and 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 Succeeded provisioning state.
  • Add/extend unit tests for get_fabric_agent edge 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.

@github-actions
Copy link
Contributor

@yonzhan yonzhan requested a review from necusjz March 12, 2026 00:10
@yonzhan yonzhan requested a review from jsntcy March 12, 2026 00:10
@necusjz necusjz merged commit 1d58841 into Azure:main Mar 12, 2026
24 checks passed
@azclibot
Copy link
Collaborator

[Release] Update index.json for extension [ migrate-3.0.0b4 ] : https://dev.azure.com/msazure/One/_build/results?buildId=156422676&view=results

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants