Skip to content
This repository was archived by the owner on Jun 30, 2024. It is now read-only.

Latest commit

 

History

History
46 lines (30 loc) · 2.97 KB

File metadata and controls

46 lines (30 loc) · 2.97 KB

Azure Cosmos DB Intra-account container copy (Private preview)

Note: This capability is now available to use by signing up for the Preview from the Azure Portal. Please refer to https://aka.ms/azurecosmosdb-containercopy to learn more. This repo is outdated and is not managed any longer.

You can perform offline container copy within an Azure Cosmos DB account using container copy jobs.

This functionality is currently available for Azure Cosmos DB Cassandra API and SQL API accounts.

If you have not signed-up for this Preview yet, please do so using this link.

You may need to copy data within your Azure Cosmos DB account if you want to achieve either of these scenarios:

Overview of steps needed to do a container copy

  1. Create the target Cosmos DB container with the required settings (partition key, throughput granularity, RUs, unique key, etc.).
  2. Stop the operations on the source container by pausing the application instances or any clients connecting to it.
  3. Create the container copy job.
  4. Monitor the progress of the container copy job and wait until it's completed.
  5. Resume the operations by appropriately pointing the application or client to the source or target container copy as intended.

Pre-requisites

  • Make sure you have Azure CLI downloaded and installed on your machine before trying out container copy.
  • Currently, container copy is only supported in these regions. Make sure your account is in one of these regions.

Try out container copy jobs

Through Azure Data Studio notebooks

Through Azure CLI

To learn more about intra-account container copy jobs, refer to this doc.