Migrating Microsoft Azure Cosmos DB collections between different Azure subscriptions

This article will help migrating the azure cosmos db data between different accounts and subscription.

3 Simple steps:

  1. Download dt.exe https://cosmosdbportalstorage.blob.core.windows.net/datamigrationtool/2018.02.28-1.8.1/dt-1.8.1.zip
  2. Replace appropriate values in the below script
  3. Run the script and check the results

The dt.exe can handle different types of sources

JSON files
MongoDB
SQL Server
CSV files
Azure Table storage
Amazon DynamoDB
HBase

Note: Please make sure you carry over the indexing policy from the source database to the target database.

 

Happy Migration.

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.