is there an option in Azure to export an existing collection from DocumentDB?
I could only seen an Import option.
Create an export job in your source storage account in Azure portal. Specify source blobs or container paths for the data to be exported. Provide the return address and carrier account number for shipping the drives back to you. Ship the disk drives to the shipping address provided during job creation.
Import from a SQL API collectionThe Azure Cosmos DB source importer option allows you to import data from one or more Azure Cosmos containers and optionally filter documents using a query. Use the Verify command to ensure that the Azure Cosmos DB instance specified in the connection string field can be accessed.
The quickest one is to use Document DB / Cosmos DB Migration Tool. This is a tool provided by Microsoft to migrate data TO/FROM various sources such as MongoDB, JSON, csv and SQL Server to Cosmos DB.
There is no built-in export option in the database service itself. However, the DocumentDB Data Migration Tool, published by the DocumentDB team, is available and provides both import and export capabilities (export is to JSON). Everything is documented on the DocumentDB area of the Azure site, specifically here.
This isn't your only option, as you can write your own export app based on one of the existing language SDKs or direct REST API calls.
There may be other tools available, but getting into a which is the best tool for this discussion is off-topic. I'm only pointing out the Data Migration tool because the DocumentDB team provides it, along with official documentation.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With