Closed gitmopp closed 3 years ago
@gitmopp - I was able to upload a bulk document with no issues. Let me know if you need any help on this.
I'm using Powershell and @PlagueHO tools to upload the documents to Cosmos Container. Thank you.
@gitmopp - I was able to upload a bulk document with no issues. Let me know if you need any help on this.
I'm using Powershell and @PlagueHO tools to upload the documents to Cosmos Container. Thank you.
Which command did you use? For myself I created a workaround with a 3rd party application.
@gitmopp - I was able to upload a bulk document with no issues. Let me know if you need any help on this. I'm using Powershell and @PlagueHO tools to upload the documents to Cosmos Container. Thank you.
Which command did you use? For myself I created a workaround with a 3rd party application.
Good to know.
Here are the commands which I have used.
$document = $getHandler | ConvertTo-Json -Depth 50
New-CosmosDbDocument -Context $cosmosDbContext -CollectionId $containerName -DocumentBody $document -PartitionKey $getHandler.partitionKey
$document = $getHandler | ConvertTo-Json -Depth 50 New-CosmosDbDocument -Context $cosmosDbContext -CollectionId $containerName -DocumentBody $document -PartitionKey $getHandler.partitionKey
Thank you
New-CosmosDbDocument can only store a single document, e.g.
New-CosmosDbDocument -Context $cosmosDbContext -CollectionId $container -DocumentBody $document -PartitionKey $id
The Azure portal allows the upload of a JSON file which is much faster then creating a single document. I checked the body and it uses the "operationType: Create" to bulk upload multiple documents at once (limit is 100?)
Is it possible to add a bulk upload function?