Skip to content

Instantly share code, notes, and snippets.

@sqldeployhelmet
Last active October 2, 2019 04:32
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 sqldeployhelmet/ce3e0366137a0517941789e8704253aa to your computer and use it in GitHub Desktop.
Save sqldeployhelmet/ce3e0366137a0517941789e8704253aa to your computer and use it in GitHub Desktop.
Cosmos DB backup settings
[
{
"_comment" : ["This is a sample object that should be modified for deployment.",
"Connect strings will need to be inserted and correct service, database and collection",
"names included as well as setting the database backup flag to true as needed."],
"service" : {
"name" : "<name of your cosmos db service>",
"connectString" : "<read-only connect string here>",
"databases" : [ {"name" : "database1",
"backupFlag" : true,
"collections" : [{"name" : "collection1"},
{"name" : "collection2"}]
}
, {"name" : "database2",
"backupFlag" : false,
"collections" : [{"name" : "collection1"}]
},
{"name" : "database2",
"backupFlag" : true,
"collections" : [{"name" : "collection1"}]
}
]
}
},
{
"service" : {
"name" : "<second cosmos db service>",
"connectString" : "<second service read-only key>",
"databases" : [ {"name" : "database1",
"backupFlag" : false,
"collections" : [{"name" : "collection1"}]
}
]
}
}]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment