Skip to content

Conversation

amarjeetkr
Copy link
Member

@amarjeetkr amarjeetkr commented Sep 30, 2025


Released the first stable version with three new commands.

  • [NEW COMMAND] az data-migration sql-db retry - Retry on going migration for the database.
  • [NEW COMMAND] data-migration sql-managed-instance delete - Delete SQL MI Database Migration resource.
  • [NEW COMMAND] data-migration sql-vm delete - Delete SQL VM Database Migration resource.

Related command

  • az datamigration get-assessment
  • az datamigration performance-data-collection
  • az datamigration get-sku-recommendation
  • az datamigration tde-migration

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 Copilot AI review requested due to automatic review settings September 30, 2025 04:58
Copy link

azure-client-tools-bot-prd bot commented Sep 30, 2025

⚠️Azure CLI Extensions Breaking Change Test
⚠️datamigration
rule cmd_name rule_message suggest_message
⚠️ 1011 - SubgroupAdd data-migration sub group data-migration added

Copy link

Hi @amarjeetkr,
Please write the description of changes which can be perceived by customers into HISTORY.rst.
If you want to release a new extension version, please update the version in setup.py as well.

@yonzhan
Copy link
Collaborator

yonzhan commented Sep 30, 2025

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

Copy link

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 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 new Data Migration commands for Azure CLI including SQL DB retry, SQL VM delete, and SQL Managed Instance delete operations. The changes also update the minimum CLI core version requirement to support the new functionality.

  • Adds retry command for SQL Database migration operations
  • Adds delete commands for SQL VM and SQL Managed Instance database migrations
  • Updates minimum CLI core version to 2.75.0

Reviewed Changes

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

File Description
azext_metadata.json Updates minimum CLI core version from 2.15.0 to 2.75.0
aaz/ directory Adds new AAZ-generated command modules for data migration operations
__init__.py Integrates AAZ command loading into the extension

class Delete(AAZCommand):
"""Delete Database Migration resource.

:example: Create or Update Database Migration resource with Minimum parameters.
Copy link
Preview

Copilot AI Sep 30, 2025

Choose a reason for hiding this comment

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

The example description is incorrect. It says 'Create or Update' but this is a delete command. Should be 'Delete Database Migration resource with Minimum parameters.'

Suggested change
:example: Create or Update Database Migration resource with Minimum parameters.
:example: Delete Database Migration resource with Minimum parameters.

Copilot uses AI. Check for mistakes.

Copy link

CodeGen Tools Feedback Collection

Thank you for using our CodeGen tool. We value your feedback, and we would like to know how we can improve our product. Please take a few minutes to fill our codegen survey

Copy link

github-actions bot commented Sep 30, 2025

Hi @amarjeetkr

⚠️ Release Requirements

Module: datamigration

  • ⚠️ Please update VERSION to be 1.0.0b7 in src/datamigration/setup.py
  • ⚠️ Set azext.isPreview to true in azext_metadata.json for datamigration

Notes

@necusjz
Copy link
Member

necusjz commented Sep 30, 2025

/azp run

Copy link

Azure Pipelines successfully started running 2 pipeline(s).

@github-actions github-actions bot added the release-version-block Updates do not qualify release version rules. NOTE: please do not edit it manually. label Sep 30, 2025
@necusjz necusjz added skip-cal-version and removed release-version-block Updates do not qualify release version rules. NOTE: please do not edit it manually. labels Oct 1, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants