简体   繁体   English

通过Azure函数导出cosmosDB并将文件保存在Blob存储中

[英]Export cosmosDB by an azure function and save the file in a blob storage

有没有一种方法可以通过使用azure函数备份cosmos数据库并将.JSON文件保存在Azure blob存储中

For sure , you can create a Time-Trigger Azure Function to run your backup job. 当然,您可以创建一个Time-Trigger Azure函数来运行备份作业。 Just use sdk to get the data from your cosmos db and save them as files into blob storage. 只需使用sdk从cosmos db中获取数据,然后将它们作为文件保存到blob存储中即可。

Another choice is Azure Data Factory . 另一个选择是Azure Data Factory

Cosmos DB Output: Cosmos DB输出:

在此处输入图片说明

Blob Storage Input: Blob存储输入:

在此处输入图片说明

Backup pipeline: 备用管道:

在此处输入图片说明

Result: 结果:

在此处输入图片说明

Hope it helps you. 希望对您有帮助。

check out Azure Data Factory . 查看Azure数据工厂 I think it's pretty good and easy to use it for backup functionality. 我认为将其用于备份功能非常好且容易。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何将 Azure 函数输出作为 csv 文件保存到 Blob 存储 - How to save a Azure Function output as csv file to Blob storage 将.txt文件保存到Azure Blob存储中 - Save .txt file into a Azure Blob storage 将 excel 文件 stream 保存到 azure blob 存储 - save excel file stream to azure blob storage Azure 函数 blob 存储文件名 - Azure function blob storage file name 如何使用Azure数据工厂将CosmosDb文档复制到Blob存储(单个json文件中的每个文档) - How to copy CosmosDb docs to Blob storage (each doc in single json file) with Azure Data Factory 自动将 SQL 查询结果导出为 txt 文件到 Azure blob 存储 - Export SQL query result as a txt file to Azure blob storage automatically 如何将 Azure CosmosDB 容器复制(备份)到 Azure Blob 存储? - How to copy(backup) Azure CosmosDB container to Azure blob storage? 每当将Blob添加到容器中时,从Blob存储向CosmosDB发送数据时,Azure App-Function绑定类型的问题 - Problem with the binding type of azure app-function when sending data from blob storage to cosmosDB whenever a blob is added into a container 将 RData 保存到 Azure Blob 存储 - Save RData to Azure Blob Storage Azure function 和 Azure Blob 存储 - Azure function and Azure Blob Storage
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM