Search code examples
jsonazureazure-cosmosdbazure-data-lake

Move JSON Data from DocumentDB (or CosmosDB) to Azure Data Lake


I have a lot of JSON files (in millions) in Cosmos DB (earlier called Document DB) and I want to move it into Azure Data Lake, for cold storage.

I found this document https://learn.microsoft.com/en-us/dotnet/api/microsoft.azure.documents.client.documentclient.readdocumentfeedasync?view=azure-dotnet but it doesnt have any samples to start with.

How should I proceed, any code samples are highly appreciated.

Thanks.


Solution

  • I suggest you using Azure Data Factory to implement your requirement.

    Please refer to this doc about how to export json documents from cosmos db and this doc about how to import data into ADL.

    Hope it helps you.


    Update Answer:

    Please refer to this : Azure Cosmos DB as source, you could create query in pipeline.