Migrating data
This section discusses how to use a tool to migrate data from an existing data source to DocumentDB. For this scenario, we assume that we already have a large datastore containing existing devices and their registration information (Event Hub connection information). In this section, we will see how to migrate an existing data store to our new DocumentDB environment. We use the DocumentDB Data Migration Tool for this.
You can download this tool from the Microsoft Download Center (http://www.microsoft.com/en-us/download/details.aspx?id=46436) or from GitHub if you want to check the code.
The tool is intuitive and enables us to migrate from several data sources:
JSON files
MongoDB
SQL Server
CSV files
Azure Table storage
Amazon DynamoDB
HBase
DocumentDB collections
To demonstrate its use, we migrate our existing Netherlands collection to our United Kingdom collection.
Start the tool and enter the right connection string to our DocumentDB database. We do this for both our source and target...