Restoring Azure Cosmos DB Containers to a Different Cloud Account

Updated

On this page

You can restore Azure Cosmos DB database containers to a Cosmos DB account on a different Azure subscription. You can also restore the database and containers with the same name or a different name.

Procedure

  1. From the navigation page, click Protect> Databases >Cosmos DB instance.

  2. In the Backup History section, select a date that contains a backup, and then click Restore.

    Dates with a grey circle indicate that a backup exists for that day. You can also select the time range or a specific time of the backup.

    The Backup content page appears.

  3. Select the backups to restore.

    • To use the latest backup, in the upper-right corner of the page, click Show latest backups.

    • To use a backup from a specific date, in the upper-right corner of the page, click Show backups as of a specific date, and then select the backup.

    • To use a backup from a specific date range, in the upper-right corner of the page, click Show backup for a date range, and then select the backup.

  4. Select the data that you want to restore

    • To restore all of the data, select the check box next to instance name.

    • To restore individual containers, click the instance name > database name, and then select the check box next to each container that you want to restore.

  5. Click Restore.

    The Restore options page appears.

  6. From the Destination account list, select the Azure cloud account where you want to restore the Cosmos DB containers.

  7. To redirect the selected containers to a different Cosmos DB account in Azure, move the Redirect all containers toggle key to the right, and then select a destination Cosmos DB account.

    By default, redirect is enabled. If you are restoring to a Cosmos DB account with the same name as in the source cloud account, move the Redirect all containers toggle key to the left.

  8. Optional: To increase the throughput of thecontainer and increase the restore performance, move the Adjust write capacity toggle to the right, and then select the number of Request Units (RUs).

    Notes:

    • The software will increase the throughput or Request Units (RUs) of the container, only if the given value is higher than the original throughput of the container at the time of backup.

    • If the containers have autoscaling enabled, the software will increase the throughput during the restore only if the given value is more than the maximum Request Units (RUs).

    • If you want to restore containers that had shared throughput during the backup, do not enable the Adjust write capacity setting for the restore. For more information on shared throughput, refer to Microsoft article (https://docs.microsoft.com/en-us/azure/cosmos-db/set-throughput#set-throughput-on-a-database).

  9. In the Number of parallel writers box, type the number of streams to be used by the restore operation.

  10. If you want to restore containers that already exist on the destination, move the Overwrite destination containers toggle key to the right.

    If you do not enable this option and a container already exists on the destination, the restore jobs may fail.

  11. To restore a container with a different name, under Content, in the Actions column, click the Edit icon for the container that you want to change the name.

  12. The Edit dialog box appears.

  13. To change the database name, in the Destination database box, type a new name.

  14. To change the container name, in the Destination container box, type a new name.

  15. Click Submit.