
Product
Introducing Socket Firewall Enterprise: Flexible, Configurable Protection for Modern Package Ecosystems
Socket Firewall Enterprise is now available with flexible deployment, configurable policies, and expanded language support.
azure-mgmt-datamigration
Advanced tools
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.
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
pip install azure-mgmt-datamigration
pip install azure-identity
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)
Code samples for this package can be found at:
If you encounter any bugs or have suggestions, please file an issue in the Issues section of the project.
DataMigrationManagementClient added operation group database_migrations_mongo_to_cosmos_db_ru_mongoDataMigrationManagementClient added operation group database_migrations_mongo_to_cosmos_dbv_core_mongoDataMigrationManagementClient added operation group database_migrations_sql_dbDataMigrationManagementClient added operation group database_migrations_sql_miDataMigrationManagementClient added operation group database_migrations_sql_vmDataMigrationManagementClient added operation group migration_servicesDataMigrationManagementClient added operation group sql_migration_servicesAzureActiveDirectoryApp added property ignore_azure_permissionsConnectToSourceSqlServerTaskInput added property encrypted_key_for_secure_fieldsConnectToSourceSqlServerTaskProperties added property task_idConnectToTargetSqlDbTaskInput added property query_object_countsConnectToTargetSqlDbTaskProperties added property created_onDataMigrationService added property auto_stop_delayDataMigrationService added property delete_resources_on_stopDataMigrationServiceStatusResponse added property agent_configurationGetUserTablesSqlTaskInput added property encrypted_key_for_secure_fieldsGetUserTablesSqlTaskProperties added property task_idMigrateMySqlAzureDbForMySqlOfflineTaskInput added property encrypted_key_for_secure_fieldsMigrateMySqlAzureDbForMySqlOfflineTaskProperties added property is_cloneableMigrateMySqlAzureDbForMySqlOfflineTaskProperties added property task_idMigratePostgreSqlAzureDbForPostgreSqlSyncDatabaseInput added property idMigratePostgreSqlAzureDbForPostgreSqlSyncTaskInput added property encrypted_key_for_secure_fieldsMigratePostgreSqlAzureDbForPostgreSqlSyncTaskInput added property started_onMigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutputError added property eventsMigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutputMigrationLevel added property database_countMigratePostgreSqlAzureDbForPostgreSqlSyncTaskProperties added property task_idMigratePostgreSqlAzureDbForPostgreSqlSyncTaskProperties added property created_onMigratePostgreSqlAzureDbForPostgreSqlSyncTaskProperties added property is_cloneableMigrateSchemaSqlServerSqlDbDatabaseInput added property idMigrateSchemaSqlServerSqlDbTaskInput added property encrypted_key_for_secure_fieldsMigrateSchemaSqlServerSqlDbTaskInput added property started_onMigrateSchemaSqlServerSqlDbTaskProperties added property created_onMigrateSchemaSqlServerSqlDbTaskProperties added property task_idMigrateSchemaSqlServerSqlDbTaskProperties added property is_cloneableMigrateSqlServerSqlDbDatabaseInput added property schema_settingMigrateSqlServerSqlDbDatabaseInput added property idMigrateSqlServerSqlDbTaskInput added property started_onMigrateSqlServerSqlDbTaskInput added property encrypted_key_for_secure_fieldsMigrateSqlServerSqlDbTaskProperties added property task_idMigrateSqlServerSqlDbTaskProperties added property is_cloneableMigrateSqlServerSqlDbTaskProperties added property created_onMigrateSqlServerSqlMIDatabaseInput added property idMigrateSqlServerSqlMISyncTaskInput added property number_of_parallel_database_migrationsMigrateSqlServerSqlMISyncTaskProperties added property created_onMigrateSqlServerSqlMITaskInput added property started_onMigrateSqlServerSqlMITaskInput added property encrypted_key_for_secure_fieldsMigrateSqlServerSqlMITaskProperties added property task_idMigrateSqlServerSqlMITaskProperties added property created_onMigrateSqlServerSqlMITaskProperties added property parent_task_idMigrateSqlServerSqlMITaskProperties added property is_cloneableMigrateSyncCompleteCommandProperties added property command_idMongoDbConnectionInfo added property data_sourceMongoDbConnectionInfo added property encrypt_connectionMongoDbConnectionInfo added property server_brand_versionMongoDbConnectionInfo added property server_versionMongoDbConnectionInfo added property server_nameMongoDbConnectionInfo added property trust_server_certificateMongoDbConnectionInfo added property enforce_sslMongoDbConnectionInfo added property portMongoDbConnectionInfo added property additional_settingsMongoDbConnectionInfo added property authenticationMySqlConnectionInfo added property data_sourceMySqlConnectionInfo added property authenticationMySqlConnectionInfo added property additional_settingsOracleConnectionInfo added property server_nameOracleConnectionInfo added property server_versionOracleConnectionInfo added property portOracleConnectionInfo added property authenticationPostgreSqlConnectionInfo added property data_sourcePostgreSqlConnectionInfo added property server_versionPostgreSqlConnectionInfo added property additional_settingsPostgreSqlConnectionInfo added property server_brand_versionPostgreSqlConnectionInfo added property authenticationProject added property etagProject added property azure_authentication_infoResource added property system_dataSchemaMigrationSetting added property file_nameServerLevelPermissionsGroup added member MIGRATION_FROM_SQL_SERVER_TO_AZURE_VMSqlConnectionInfo added property server_nameSqlConnectionInfo added property portSqlConnectionInfo added property server_versionSqlConnectionInfo added property server_brand_versionSqlConnectionInfo added property resource_idAuthTypeAuthenticationKeysAzureBlobBackupConfigurationCommandTypeCopyProgressDetailsDatabaseMigrationDatabaseMigrationBaseDatabaseMigrationBaseListResultDatabaseMigrationBasePropertiesDatabaseMigrationCosmosDbMongoDatabaseMigrationCosmosDbMongoListResultDatabaseMigrationListResultDatabaseMigrationPropertiesDatabaseMigrationPropertiesCosmosDbMongoDatabaseMigrationPropertiesSqlDbDatabaseMigrationPropertiesSqlMiDatabaseMigrationPropertiesSqlVmDatabaseMigrationSqlDbDatabaseMigrationSqlMiDatabaseMigrationSqlVmDeleteNodeErrorAdditionalInfoErrorDetailErrorInfoErrorResponseIntegrationRuntimeMonitoringDataManagedServiceIdentityManagedServiceIdentityTypeMigrationOperationInputMigrationServiceMigrationServiceListResultMigrationServiceUpdateMigrationStatusDetailsMongoConnectionInformationMongoMigrationCollectionMongoMigrationProgressDetailsMongoMigrationStatusNodeMonitoringDataOfflineConfigurationOperationListResultOperationOriginOperationsDefinitionOperationsDisplayDefinitionProvisioningStateProxyResourceProxyResourceAutoGeneratedRegenAuthKeysResourceAutoGeneratedResourceTypeSourceLocationSqlBackupFileInfoSqlBackupSetInfoSqlConnectionInformationSqlDbMigrationStatusDetailsSqlDbOfflineConfigurationSqlFileShareSqlMigrationListResultSqlMigrationServiceSqlMigrationServiceUpdateSystemDataAutoGeneratedTargetLocationTaskTypeTrackedResourceAutoGeneratedUserAssignedIdentityDatabaseMigrationsMongoToCosmosDbRUMongoOperationsDatabaseMigrationsMongoToCosmosDbvCoreMongoOperationsDatabaseMigrationsSqlDbOperationsDatabaseMigrationsSqlMiOperationsDatabaseMigrationsSqlVmOperationsMigrationServicesOperationsSqlMigrationServicesOperationsDataMigrationManagementClient added operation group database_migrations_mongo_to_cosmos_db_ru_mongoDataMigrationManagementClient added operation group database_migrations_mongo_to_cosmos_dbv_core_mongoDataMigrationManagementClient added operation group migration_servicesAzureBlob added property auth_typeAzureBlob added property identityProxyResource added property system_dataResource added property system_dataResourceType added member MONGO_TO_COSMOS_DB_MONGOAuthTypeDatabaseMigrationBaseDatabaseMigrationBaseListResultDatabaseMigrationBasePropertiesDatabaseMigrationCosmosDbMongoDatabaseMigrationCosmosDbMongoListResultDatabaseMigrationPropertiesCosmosDbMongoErrorAdditionalInfoErrorDetailErrorResponseManagedServiceIdentityManagedServiceIdentityTypeMigrationServiceMigrationServiceListResultMigrationServiceUpdateMongoConnectionInformationMongoMigrationCollectionMongoMigrationProgressDetailsMongoMigrationStatusProvisioningStateProxyResourceAutoGeneratedResourceAutoGeneratedSystemDataAutoGeneratedTrackedResourceAutoGeneratedUserAssignedIdentityDatabaseMigrationsMongoToCosmosDbRUMongoOperationsDatabaseMigrationsMongoToCosmosDbvCoreMongoOperationsMigrationServicesOperationslocation of method TrackedResource.__init__ is now requiredFeatures
Breaking changes
Features
Breaking changes
This is beta preview version.
This version uses a next-generation code generator that introduces important breaking changes, but also important new features (like unified authentication and async programming).
General breaking changes
Credential system has been completly revamped:
azure.common.credentials or msrestazure.azure_active_directory instances are no longer supported, use the azure-identity classes instead: https://pypi.org/project/azure-identity/credentials parameter has been renamed credentialThe config attribute no longer exists on a client, configuration should be passed as kwarg. Example: MyClient(credential, subscription_id, enable_logging=True). For a complete set of
supported options, see the parameters accept in init documentation of azure-core
You can't import a version module anymore, use __version__ instead
Operations that used to return a msrest.polling.LROPoller now returns a azure.core.polling.LROPoller and are prefixed with begin_.
Exceptions tree have been simplified and most exceptions are now azure.core.exceptions.HttpResponseError (CloudError has been removed).
Most of the operation kwarg have changed. Some of the most noticeable:
raw has been removed. Equivalent feature can be found using cls, a callback that will give access to internal HTTP response for advanced userGeneral new features
typing. SDKs are mypy ready.aio namespace of your package to find the async client.Features
Breaking changes
Features
General Breaking changes
This version uses a next-generation code generator that might introduce breaking changes if from some import. In summary, some modules were incorrectly visible/importable and have been renamed. This fixed several issues caused by usage of classes that were not supposed to be used in the first place. DataMigrationServiceManagementClient cannot be imported from azure.mgmt.datamigration.data_migration_service_client anymore (import from azure.mgmt.datamigration works like before) DataMigrationServiceManagementClientConfiguration import has been moved from azure.mgmt.datamigration.data_migration_service_management_client to azure.mgmt.datamigration A model MyClass from a "models" sub-module cannot be imported anymore using azure.mgmt.datamigration.models.my_class (import from azure.mgmt.datamigration.models works like before) An operation class MyClassOperations from an operations sub-module cannot be imported anymore using azure.mgmt.datamigration.operations.my_class_operations (import from azure.mgmt.datamigration.operations works like before) Last but not least, HTTP connection pooling is now enabled by default. You should always use a client as a context manager, or call close(), or use no more than one client per process.
Features
Features
Features
Breaking changes
FAQs
Microsoft Azure Data Migration Client Library for Python
We found that azure-mgmt-datamigration demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 3 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Product
Socket Firewall Enterprise is now available with flexible deployment, configurable policies, and expanded language support.

Security News
Open source dashboard CNAPulse tracks CVE Numbering Authorities’ publishing activity, highlighting trends and transparency across the CVE ecosystem.

Product
Detect malware, unsafe data flows, and license issues in GitHub Actions with Socket’s new workflow scanning support.