From the course: Microsoft Azure Cosmos DB Developer Specialty (DP-420) Cert Prep: 5 Maintain an Azure Cosmos DB Solution by Microsoft Press

Unlock this course with a free trial

Join today to access over 23,100 courses taught by industry experts.

Configure periodic backup

Configure periodic backup

- [Instructor] Well, we can configure these backup types at account creation, and then after the account is created, you can tweak whatever properties you have depending upon whether you created the account with periodic or continuous backup. I want to show you here, we're doing it, let's see in JSON here. So we've got a backup policy object where we're specifying the type of backup, in this case, periodic. And then we're specifying the properties. So this would be as part of just a JSON document that we could include, say in our bicep or arm deployment templates. And then I also have an example of using Azure CLI code, a AZ Cosmos DB update and we're providing the resource group name, the account name, and then you can just specify the properties as parameters and variables for your periodic backup. When you do a data restore, this is going to be you opening up a support request with Microsoft. There's a good MS Docs…

Contents