azure-mgmt-datamigration
Microsoft Azure Data Migration Client Library for Python
What it is and what it does
This is the official Microsoft Azure SDK client library for managing data migrations within Azure. It provides programmatic control over migration projects, tasks, and services that orchestrate moving databases from on-premises or other cloud sources (SQL Server, MySQL, PostgreSQL, MongoDB, Oracle) to Azure targets. The package wraps Azure Resource Manager APIs and handles authentication via Azure Active Directory, requiring environment variables for credentials and subscription ID.
The library is used to create and manage migration services, define source and target connection details, configure migration tasks, monitor progress, and handle schema and data synchronization. It supports both offline and online migration patterns. Version 10.1.0 adds operation groups for SQL migrations, MongoDB-to-Cosmos migrations, and enhanced connection properties for multiple database engines.
Use it for:
- Automate SQL Server database migrations to Azure SQL Database or SQL Managed Instance at scale.
- Orchestrate MySQL or PostgreSQL migrations to Azure Database for MySQL/PostgreSQL with online sync capability.
- Manage MongoDB-to-Cosmos DB migrations with different pricing models.
- Programmatically monitor and control long-running migration tasks from a Python application.
- Integrate database migration workflows into CI/CD pipelines or infrastructure-as-code deployments.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Manages Azure Data Migration resources and orchestrates database migration tasks across SQL Server, MySQL, PostgreSQL, MongoDB, and Oracle sources to Azure targets.
Yes. This is the official Azure SDK for data migration management, actively maintained, permissively licensed, and required if you need to programmatically orchestrate or monitor database migrations to Azure. Install friction is low and no known vulnerabilities. Suitable for production use if your migration workload targets Azure.
Install
azure-mgmt-datamigration on PyPI
pip
pip install azure-mgmt-datamigrationuv
uv add azure-mgmt-datamigrationpoetry
poetry add azure-mgmt-datamigrationInstalling azure-mgmt-datamigration
Before you install
Low friction install with four lightweight runtime dependencies. Actively maintained with recent releases; last commit 2026-08-14. Supports current Python versions and classified as Production/Stable.
License in practice
MIT License permits commercial and private use with minimal restrictions—suitable for most projects.
Quickstart
pip install azure-mgmt-datamigration
from azure.mgmt.datamigration import DataMigrationManagementClient
from azure.identity import DefaultAzureCredential
import os
sub_id = os.getenv("AZURE_SUBSCRIPTION_ID")
client = DataMigrationManagementClient(credential=DefaultAzureCredential(), subscription_id=sub_id)
Requires Python 3.9+, Azure subscription, and environment variables AZURE_CLIENT_ID, AZURE_TENANT_ID, AZURE_CLIENT_SECRET, and AZURE_SUBSCRIPTION_ID configured for authentication.
Verify before relying
- Whether operation groups added in 10.1.0 are production-ready or still in preview.
- Performance characteristics and scalability limits for concurrent migration tasks.
- Whether encrypted_key_for_secure_fields properties require additional key management infrastructure.
- Specific Azure target service compatibility and version requirements beyond the client library itself.
Package facts
| License | MIT License (permissive) |
| Python support | supports the current Python release (>=3.9) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 4 — isodate, typing-extensions, azure-common, azure-mgmt-core |
| Maintenance | actively maintained — 326 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 6,751,978/month — #1,856 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: azure_mgmt_datamigration-10.1.0-py3-none-any.whl
Keywords: azure, azure sdk
Tags
More Database packages
psycopg2-binary is a PostgreSQL database…
copyleft · top 1,000 on PyPI
redisPython client library for connecting to and…
permissive · top 1,000 on PyPI
ydbYDB Python SDK is the official client library…
permissive · top 1,000 on PyPI
snowflake-connector-pythonConnects Python applications to Snowflake data…
permissive · top 1,000 on PyPI
sqlparsesqlparse tokenizes SQL text into a tree of…
permissive · top 1,000 on PyPI
dbt-adaptersProvides base adapter protocols and shared…
permissive · top 1,000 on PyPI
azure-mgmt-mysqlflexibleserversProvides a Python client library for managing…
unclear · top 5,000 on PyPI
azure-mgmt-sqlProvides programmatic management of Azure SQL…
permissive · top 5,000 on PyPI
azure-mgmt-resource-deploymentsManages Azure resource deployments…
permissive · top 5,000 on PyPI
azure-mgmt-managedservicesProvides Python client library for managing…
unclear · top 15,000 on PyPI
azure-mgmt-sqlvirtualmachineManages SQL Server virtual machines in…
permissive · top 5,000 on PyPI
azure-mgmt-webProvides programmatic management of Azure Web…
permissive · top 5,000 on PyPI
azure-mgmt-datafactoryManages Azure Data Factory resources—factories,…
permissive · top 5,000 on PyPI
azure-mgmt-batchProvides a Python client library for managing…
unclear · top 5,000 on PyPI
azure-mgmt-managementpartnerProvides a Python client library for managing…
unclear · top 5,000 on PyPI
azure-mgmt-resource-deploymentscriptsProvides a Python client library for managing…
permissive · top 5,000 on PyPI