CmdID / az / az datamigration
az datamigration tde-migration
Migrate TDE certificate from source SQL Server to the target Azure SQL Server. Azure CLI extensions reference
1 example 9 options Its page in the Azure CLI extensions reference
Examples
Migrate TDE certificate from source SQL Server to the target Azure SQL Server.
az datamigration tde-migration --source-sql-connection-string "data source=servername;user id=userid;password=;initial catalog=master;TrustServerCertificate=True" --target-subscription-id "00000000-0000-0000-0000-000000000000" --target-resource-group-name "ResourceGroupName" --target-managed-instance-name "TargetManagedInstanceName" --network-share-path "\NetworkShare\Folder" --network-share-domain "NetworkShare" --network-share-user-name "NetworkShareUserName" --network-share-password "" --database-name "TdeDb_0" "TdeDb_1" "TdeDb_2"Identify--source-sql-connection-stringConnection string for the source SQL instance, using the formal connection string format.--target-subscription-idSubscription Id of the target Azure SQL server.--target-resource-group-nameResource group name of the target Azure SQL server.--target-managed-instance-nameName of the Azure SQL Server.--network-share-pathNetwork share path.--network-share-domainNetwork share domain.--network-share-user-nameNetwork share user name.--network-share-passwordNetwork share password.--database-nameSource database name.Options
--database-name, --dbnameSource database name.--network-share-domain, --networkdomainNetwork share domain.--network-share-password, --networkpwNetwork share password.--network-share-path, --networkpathNetwork share path.--network-share-user-name, --networkuserNetwork share user name.--source-sql-connection-string, --srcsqlcsConnection string for the source SQL instance, using the formal connection string format.--target-managed-instance-name, --tgtnameName of the Azure SQL Server.--target-resource-group-name, --tgtrgResource group name of the target Azure SQL server.--target-subscription-id, --tgtsubscriptionSubscription Id of the target Azure SQL server.