user4093045
user4093045

Reputation:

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

Is there a way to backup a cosmos DB by using an azure function and save the .JSON file in a Azure blob storage

Upvotes: 1

Views: 1162

Answers (2)

Jay Gong
Jay Gong

Reputation: 23782

For sure , you can create a Time-Trigger Azure Function to run your backup job. Just use sdk to get the data from your cosmos db and save them as files into blob storage.

Another choice is Azure Data Factory.

Cosmos DB Output:

enter image description here

Blob Storage Input:

enter image description here

Backup pipeline:

enter image description here

Result:

enter image description here

Hope it helps you.

Upvotes: 3

Olha Shumeliuk
Olha Shumeliuk

Reputation: 740

check out Azure Data Factory. I think it's pretty good and easy to use it for backup functionality.

Upvotes: 0

Related Questions