Give AlbumentationsX a star on GitHub — it powers this leaderboard

Star on GitHub

azure-mgmt-datamigration

Microsoft Azure Data Migration Client Library for Python

Rank: #1462Downloads: 6,890,667 (30 days)Stars: 5,497Forks: 3,248

Description

Microsoft Azure SDK for Python

This is the Microsoft Azure Data Migration Client Library. This package has been tested with Python 3.9+. For a more complete view of Azure libraries, see the azure sdk python release.

Disclaimer

Azure SDK Python packages support for Python 2.7 has ended 01 January 2022. For more information and questions, please refer to https://github.com/Azure/azure-sdk-for-python/issues/20691

Getting started

Prerequisites

Install the package

pip install azure-mgmt-datamigration
pip install azure-identity

Authentication

By default, Azure Active Directory token authentication depends on correct configuration of the following environment variables.

  • AZURE_CLIENT_ID for Azure client ID.
  • AZURE_TENANT_ID for Azure tenant ID.
  • AZURE_CLIENT_SECRET for Azure client secret.

In addition, Azure subscription ID can be configured via environment variable AZURE_SUBSCRIPTION_ID.

With above configuration, client can be authenticated by following code:

from azure.identity import DefaultAzureCredential
from azure.mgmt.datamigration import DataMigrationManagementClient
import os

sub_id = os.getenv("AZURE_SUBSCRIPTION_ID")
client = DataMigrationManagementClient(credential=DefaultAzureCredential(), subscription_id=sub_id)

Examples

Code samples for this package can be found at:

Troubleshooting

Next steps

Provide Feedback

If you encounter any bugs or have suggestions, please file an issue in the Issues section of the project.

Release History

10.1.0 (2025-09-22)

Features Added

  • Client DataMigrationManagementClient added operation group database_migrations_mongo_to_cosmos_db_ru_mongo
  • Client DataMigrationManagementClient added operation group database_migrations_mongo_to_cosmos_dbv_core_mongo
  • Client DataMigrationManagementClient added operation group database_migrations_sql_db
  • Client DataMigrationManagementClient added operation group database_migrations_sql_mi
  • Client DataMigrationManagementClient added operation group database_migrations_sql_vm
  • Client DataMigrationManagementClient added operation group migration_services
  • Client DataMigrationManagementClient added operation group sql_migration_services
  • Model AzureActiveDirectoryApp added property ignore_azure_permissions
  • Model ConnectToSourceSqlServerTaskInput added property encrypted_key_for_secure_fields
  • Model ConnectToSourceSqlServerTaskProperties added property task_id
  • Model ConnectToTargetSqlDbTaskInput added property query_object_counts
  • Model ConnectToTargetSqlDbTaskProperties added property created_on
  • Model DataMigrationService added property auto_stop_delay
  • Model DataMigrationService added property delete_resources_on_stop
  • Model DataMigrationServiceStatusResponse added property agent_configuration
  • Model GetUserTablesSqlTaskInput added property encrypted_key_for_secure_fields
  • Model GetUserTablesSqlTaskProperties added property task_id
  • Model MigrateMySqlAzureDbForMySqlOfflineTaskInput added property encrypted_key_for_secure_fields
  • Model MigrateMySqlAzureDbForMySqlOfflineTaskProperties added property is_cloneable
  • Model MigrateMySqlAzureDbForMySqlOfflineTaskProperties added property task_id
  • Model MigratePostgreSqlAzureDbForPostgreSqlSyncDatabaseInput added property id
  • Model MigratePostgreSqlAzureDbForPostgreSqlSyncTaskInput added property encrypted_key_for_secure_fields
  • Model MigratePostgreSqlAzureDbForPostgreSqlSyncTaskInput added property started_on
  • Model MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutputError added property events
  • Model MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutputMigrationLevel added property database_count
  • Model MigratePostgreSqlAzureDbForPostgreSqlSyncTaskProperties added property task_id
  • Model MigratePostgreSqlAzureDbForPostgreSqlSyncTaskProperties added property created_on
  • Model MigratePostgreSqlAzureDbForPostgreSqlSyncTaskProperties added property is_cloneable
  • Model MigrateSchemaSqlServerSqlDbDatabaseInput added property id
  • Model MigrateSchemaSqlServerSqlDbTaskInput added property encrypted_key_for_secure_fields
  • Model MigrateSchemaSqlServerSqlDbTaskInput added property started_on
  • Model MigrateSchemaSqlServerSqlDbTaskProperties added property created_on
  • Model MigrateSchemaSqlServerSqlDbTaskProperties added property task_id
  • Model MigrateSchemaSqlServerSqlDbTaskProperties added property is_cloneable
  • Model MigrateSqlServerSqlDbDatabaseInput added property schema_setting
  • Model MigrateSqlServerSqlDbDatabaseInput added property id
  • Model MigrateSqlServerSqlDbTaskInput added property started_on
  • Model MigrateSqlServerSqlDbTaskInput added property encrypted_key_for_secure_fields
  • Model MigrateSqlServerSqlDbTaskProperties added property task_id
  • Model MigrateSqlServerSqlDbTaskProperties added property is_cloneable
  • Model MigrateSqlServerSqlDbTaskProperties added property created_on
  • Model MigrateSqlServerSqlMIDatabaseInput added property id
  • Model MigrateSqlServerSqlMISyncTaskInput added property number_of_parallel_database_migrations
  • Model MigrateSqlServerSqlMISyncTaskProperties added property created_on
  • Model MigrateSqlServerSqlMITaskInput added property started_on
  • Model MigrateSqlServerSqlMITaskInput added property encrypted_key_for_secure_fields
  • Model MigrateSqlServerSqlMITaskProperties added property task_id
  • Model MigrateSqlServerSqlMITaskProperties added property created_on
  • Model MigrateSqlServerSqlMITaskProperties added property parent_task_id
  • Model MigrateSqlServerSqlMITaskProperties added property is_cloneable
  • Model MigrateSyncCompleteCommandProperties added property command_id
  • Model MongoDbConnectionInfo added property data_source
  • Model MongoDbConnectionInfo added property encrypt_connection
  • Model MongoDbConnectionInfo added property server_brand_version
  • Model MongoDbConnectionInfo added property server_version
  • Model MongoDbConnectionInfo added property server_name
  • Model MongoDbConnectionInfo added property trust_server_certificate
  • Model MongoDbConnectionInfo added property enforce_ssl
  • Model MongoDbConnectionInfo added property port
  • Model MongoDbConnectionInfo added property additional_settings
  • Model MongoDbConnectionInfo added property authentication
  • Model MySqlConnectionInfo added property data_source
  • Model MySqlConnectionInfo added property authentication
  • Model MySqlConnectionInfo added property additional_settings
  • Model OracleConnectionInfo added property server_name
  • Model OracleConnectionInfo added property server_version
  • Model OracleConnectionInfo added property port
  • Model OracleConnectionInfo added property authentication
  • Model PostgreSqlConnectionInfo added property data_source
  • Model PostgreSqlConnectionInfo added property server_version
  • Model PostgreSqlConnectionInfo added property additional_settings
  • Model PostgreSqlConnectionInfo added property server_brand_version
  • Model PostgreSqlConnectionInfo added property authentication
  • Model Project added property etag
  • Model Project added property azure_authentication_info
  • Model Resource added property system_data
  • Model SchemaMigrationSetting added property file_name
  • Enum ServerLevelPermissionsGroup added member MIGRATION_FROM_SQL_SERVER_TO_AZURE_VM
  • Model SqlConnectionInfo added property server_name
  • Model SqlConnectionInfo added property port
  • Model SqlConnectionInfo added property server_version
  • Model SqlConnectionInfo added property server_brand_version
  • Model SqlConnectionInfo added property resource_id
  • Added enum AuthType
  • Added model AuthenticationKeys
  • Added model AzureBlob
  • Added model BackupConfiguration
  • Added enum CommandType
  • Added model CopyProgressDetails
  • Added model DatabaseMigration
  • Added model DatabaseMigrationBase
  • Added model DatabaseMigrationBaseListResult
  • Added model DatabaseMigrationBaseProperties
  • Added model DatabaseMigrationCosmosDbMongo
  • Added model DatabaseMigrationCosmosDbMongoListResult
  • Added model DatabaseMigrationListResult
  • Added model DatabaseMigrationProperties
  • Added model DatabaseMigrationPropertiesCosmosDbMongo
  • Added model DatabaseMigrationPropertiesSqlDb
  • Added model DatabaseMigrationPropertiesSqlMi
  • Added model DatabaseMigrationPropertiesSqlVm
  • Added model DatabaseMigrationSqlDb
  • Added model DatabaseMigrationSqlMi
  • Added model DatabaseMigrationSqlVm
  • Added model DeleteNode
  • Added model ErrorAdditionalInfo
  • Added model ErrorDetail
  • Added model ErrorInfo
  • Added model ErrorResponse
  • Added model IntegrationRuntimeMonitoringData
  • Added model ManagedServiceIdentity
  • Added enum ManagedServiceIdentityType
  • Added model MigrationOperationInput
  • Added model MigrationService
  • Added model MigrationServiceListResult
  • Added model MigrationServiceUpdate
  • Added model MigrationStatusDetails
  • Added model MongoConnectionInformation
  • Added model `MongoMi