Skip to content

Instantly share code, notes, and snippets.

@ealsur
Last active February 7, 2018 19:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ealsur/5dab4f9cfc961ff59fbdca3637c9af94 to your computer and use it in GitHub Desktop.
Save ealsur/5dab4f9cfc961ff59fbdca3637c9af94 to your computer and use it in GitHub Desktop.
Azure Cosmos DB + Functions Cookbook - live migration function.json
{
"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