3
votes

I have Downloaded the Azure Cosmos DB Data Migration Tool from here. i'm Migrating the Sql Data to Cosmos DB. while Using the Migration Tool. Source Information Target Information

What Should i provide in the partition Key Field ?

2

2 Answers

2
votes

In cosmosdb, The PartitionKey is a property that will exist on every single object that is best used to group similar objects together.

According to docs,

Specify the document property you wish to use as the Partition Key (if Partition Key is left blank, documents are sharded randomly across the target collections).

Collections over 10GB, partition key is required.

In order to understand more on PartionKey read here.

0
votes

It depends if you migrating one table or multiple tables into a single collection?

I recommend using an Unique index that is exists in all the tables.

Alternately you can create a new partition key