
Product
Introducing Webhook Events for Pull Request Scans
Add real-time Socket webhook events to your workflows to automatically receive pull request scan results and security alerts in real time.
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_mongo
DataMigrationManagementClient
added operation group database_migrations_mongo_to_cosmos_dbv_core_mongo
DataMigrationManagementClient
added operation group database_migrations_sql_db
DataMigrationManagementClient
added operation group database_migrations_sql_mi
DataMigrationManagementClient
added operation group database_migrations_sql_vm
DataMigrationManagementClient
added operation group migration_services
DataMigrationManagementClient
added operation group sql_migration_services
AzureActiveDirectoryApp
added property ignore_azure_permissions
ConnectToSourceSqlServerTaskInput
added property encrypted_key_for_secure_fields
ConnectToSourceSqlServerTaskProperties
added property task_id
ConnectToTargetSqlDbTaskInput
added property query_object_counts
ConnectToTargetSqlDbTaskProperties
added property created_on
DataMigrationService
added property auto_stop_delay
DataMigrationService
added property delete_resources_on_stop
DataMigrationServiceStatusResponse
added property agent_configuration
GetUserTablesSqlTaskInput
added property encrypted_key_for_secure_fields
GetUserTablesSqlTaskProperties
added property task_id
MigrateMySqlAzureDbForMySqlOfflineTaskInput
added property encrypted_key_for_secure_fields
MigrateMySqlAzureDbForMySqlOfflineTaskProperties
added property is_cloneable
MigrateMySqlAzureDbForMySqlOfflineTaskProperties
added property task_id
MigratePostgreSqlAzureDbForPostgreSqlSyncDatabaseInput
added property id
MigratePostgreSqlAzureDbForPostgreSqlSyncTaskInput
added property encrypted_key_for_secure_fields
MigratePostgreSqlAzureDbForPostgreSqlSyncTaskInput
added property started_on
MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutputError
added property events
MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutputMigrationLevel
added property database_count
MigratePostgreSqlAzureDbForPostgreSqlSyncTaskProperties
added property task_id
MigratePostgreSqlAzureDbForPostgreSqlSyncTaskProperties
added property created_on
MigratePostgreSqlAzureDbForPostgreSqlSyncTaskProperties
added property is_cloneable
MigrateSchemaSqlServerSqlDbDatabaseInput
added property id
MigrateSchemaSqlServerSqlDbTaskInput
added property encrypted_key_for_secure_fields
MigrateSchemaSqlServerSqlDbTaskInput
added property started_on
MigrateSchemaSqlServerSqlDbTaskProperties
added property created_on
MigrateSchemaSqlServerSqlDbTaskProperties
added property task_id
MigrateSchemaSqlServerSqlDbTaskProperties
added property is_cloneable
MigrateSqlServerSqlDbDatabaseInput
added property schema_setting
MigrateSqlServerSqlDbDatabaseInput
added property id
MigrateSqlServerSqlDbTaskInput
added property started_on
MigrateSqlServerSqlDbTaskInput
added property encrypted_key_for_secure_fields
MigrateSqlServerSqlDbTaskProperties
added property task_id
MigrateSqlServerSqlDbTaskProperties
added property is_cloneable
MigrateSqlServerSqlDbTaskProperties
added property created_on
MigrateSqlServerSqlMIDatabaseInput
added property id
MigrateSqlServerSqlMISyncTaskInput
added property number_of_parallel_database_migrations
MigrateSqlServerSqlMISyncTaskProperties
added property created_on
MigrateSqlServerSqlMITaskInput
added property started_on
MigrateSqlServerSqlMITaskInput
added property encrypted_key_for_secure_fields
MigrateSqlServerSqlMITaskProperties
added property task_id
MigrateSqlServerSqlMITaskProperties
added property created_on
MigrateSqlServerSqlMITaskProperties
added property parent_task_id
MigrateSqlServerSqlMITaskProperties
added property is_cloneable
MigrateSyncCompleteCommandProperties
added property command_id
MongoDbConnectionInfo
added property data_source
MongoDbConnectionInfo
added property encrypt_connection
MongoDbConnectionInfo
added property server_brand_version
MongoDbConnectionInfo
added property server_version
MongoDbConnectionInfo
added property server_name
MongoDbConnectionInfo
added property trust_server_certificate
MongoDbConnectionInfo
added property enforce_ssl
MongoDbConnectionInfo
added property port
MongoDbConnectionInfo
added property additional_settings
MongoDbConnectionInfo
added property authentication
MySqlConnectionInfo
added property data_source
MySqlConnectionInfo
added property authentication
MySqlConnectionInfo
added property additional_settings
OracleConnectionInfo
added property server_name
OracleConnectionInfo
added property server_version
OracleConnectionInfo
added property port
OracleConnectionInfo
added property authentication
PostgreSqlConnectionInfo
added property data_source
PostgreSqlConnectionInfo
added property server_version
PostgreSqlConnectionInfo
added property additional_settings
PostgreSqlConnectionInfo
added property server_brand_version
PostgreSqlConnectionInfo
added property authentication
Project
added property etag
Project
added property azure_authentication_info
Resource
added property system_data
SchemaMigrationSetting
added property file_name
ServerLevelPermissionsGroup
added member MIGRATION_FROM_SQL_SERVER_TO_AZURE_VM
SqlConnectionInfo
added property server_name
SqlConnectionInfo
added property port
SqlConnectionInfo
added property server_version
SqlConnectionInfo
added property server_brand_version
SqlConnectionInfo
added property resource_id
AuthType
AuthenticationKeys
AzureBlob
BackupConfiguration
CommandType
CopyProgressDetails
DatabaseMigration
DatabaseMigrationBase
DatabaseMigrationBaseListResult
DatabaseMigrationBaseProperties
DatabaseMigrationCosmosDbMongo
DatabaseMigrationCosmosDbMongoListResult
DatabaseMigrationListResult
DatabaseMigrationProperties
DatabaseMigrationPropertiesCosmosDbMongo
DatabaseMigrationPropertiesSqlDb
DatabaseMigrationPropertiesSqlMi
DatabaseMigrationPropertiesSqlVm
DatabaseMigrationSqlDb
DatabaseMigrationSqlMi
DatabaseMigrationSqlVm
DeleteNode
ErrorAdditionalInfo
ErrorDetail
ErrorInfo
ErrorResponse
IntegrationRuntimeMonitoringData
ManagedServiceIdentity
ManagedServiceIdentityType
MigrationOperationInput
MigrationService
MigrationServiceListResult
MigrationServiceUpdate
MigrationStatusDetails
MongoConnectionInformation
MongoMigrationCollection
MongoMigrationProgressDetails
MongoMigrationStatus
NodeMonitoringData
OfflineConfiguration
OperationListResult
OperationOrigin
OperationsDefinition
OperationsDisplayDefinition
ProvisioningState
ProxyResource
ProxyResourceAutoGenerated
RegenAuthKeys
ResourceAutoGenerated
ResourceType
SourceLocation
SqlBackupFileInfo
SqlBackupSetInfo
SqlConnectionInformation
SqlDbMigrationStatusDetails
SqlDbOfflineConfiguration
SqlFileShare
SqlMigrationListResult
SqlMigrationService
SqlMigrationServiceUpdate
SystemDataAutoGenerated
TargetLocation
TaskType
TrackedResourceAutoGenerated
UserAssignedIdentity
DatabaseMigrationsMongoToCosmosDbRUMongoOperations
DatabaseMigrationsMongoToCosmosDbvCoreMongoOperations
DatabaseMigrationsSqlDbOperations
DatabaseMigrationsSqlMiOperations
DatabaseMigrationsSqlVmOperations
MigrationServicesOperations
SqlMigrationServicesOperations
DataMigrationManagementClient
added operation group database_migrations_mongo_to_cosmos_db_ru_mongo
DataMigrationManagementClient
added operation group database_migrations_mongo_to_cosmos_dbv_core_mongo
DataMigrationManagementClient
added operation group migration_services
AzureBlob
added property auth_type
AzureBlob
added property identity
ProxyResource
added property system_data
Resource
added property system_data
ResourceType
added member MONGO_TO_COSMOS_DB_MONGO
AuthType
DatabaseMigrationBase
DatabaseMigrationBaseListResult
DatabaseMigrationBaseProperties
DatabaseMigrationCosmosDbMongo
DatabaseMigrationCosmosDbMongoListResult
DatabaseMigrationPropertiesCosmosDbMongo
ErrorAdditionalInfo
ErrorDetail
ErrorResponse
ManagedServiceIdentity
ManagedServiceIdentityType
MigrationService
MigrationServiceListResult
MigrationServiceUpdate
MongoConnectionInformation
MongoMigrationCollection
MongoMigrationProgressDetails
MongoMigrationStatus
ProvisioningState
ProxyResourceAutoGenerated
ResourceAutoGenerated
SystemDataAutoGenerated
TrackedResourceAutoGenerated
UserAssignedIdentity
DatabaseMigrationsMongoToCosmosDbRUMongoOperations
DatabaseMigrationsMongoToCosmosDbvCoreMongoOperations
MigrationServicesOperations
location
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 credential
The 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
Add real-time Socket webhook events to your workflows to automatically receive pull request scan results and security alerts in real time.
Research
The Socket Threat Research Team uncovered malicious NuGet packages typosquatting the popular Nethereum project to steal wallet keys.
Product
A single platform for static analysis, secrets detection, container scanning, and CVE checks—built on trusted open source tools, ready to run out of the box.