How to copy CosmosDb docs to Blob storage (each doc in single json file) with Azure Data Factory

后端 未结 4 1443
清歌不尽
清歌不尽 2021-01-21 05:12

I\'m trying to backup my Cosmos Db storage using Azure Data Factory(v2). In general, it\'s doing its job, but I want to have each doc in Cosmos collection to correspond new json

4条回答
  •  温柔的废话
    2021-01-21 05:31

    Have you considered implementing this in a different way using Azure Functions? ADF is designed for moving data in bulk from one place to another and only generates a single file per collection.

    You could consider having an Azure Function that is triggered when documents are added / updated in your collection and have the Azure Function output the document to blob storage. This should scale well and would be relatively easy to implement.

提交回复
热议问题