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

Repository that contains sample notebooks for container copy capability

Notifications You must be signed in to change notification settings

AzureCosmosDB/Intra-Account-Container-Copy

Repository files navigation

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.

About

Repository that contains sample notebooks for container copy capability

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published