Last active
February 7, 2018 19:42
-
-
Save ealsur/5dab4f9cfc961ff59fbdca3637c9af94 to your computer and use it in GitHub Desktop.
Azure Cosmos DB + Functions Cookbook - live migration function.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"bindings": [ | |
{ | |
"type": "cosmosDBTrigger", | |
"name": "input", | |
"direction": "in", | |
"databaseName": "<name-of-your-monitored-database>", | |
"collectionName": "<name-of-your-monitored-collection>", | |
"connectionStringSetting": "<name-of-connection-string-setting>", | |
"leaseCollectionName": "leases", | |
"createLeaseCollectionIfNotExists": true | |
}, | |
{ | |
"type": "documentDB", | |
"direction": "out", | |
"name": "docsToSave", | |
"databaseName": "<name-of-your-target-database>", | |
"collectionName": "<name-of-your-target-collection>", | |
"connection": "<name-of-connection-string-setting-to-target-collection>", | |
"createIfNotExists": false | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment