Cosmos DB Migration Tool written in .NET
To use run this query with you connection string and json file:
dotnet run -- --connection-string "CosmosConnectionString" --file filelocation
{
"id": "Databasename",
"throughput": 400,
"containers": [
{
"id": "table",
"indexingPolicy": {
"indexingMode": "consistent",
"automatic": true,
"includedPaths": [
{
"path": "/*",
"indexes": [
{
"kind": "Range",
"dataType": "Number",
"precision": -1
},
{
"kind": "Hash",
"dataType": "String",
"precision": 3
}
]
}
]
},
"partitionKey": "/partitionKey",
"defaultTimeToLive": 1000,
"storedProcedures": [],
"userDefinedFunctions": []
}
]
}