Skip to content

Commit 3a19aa2

Browse files
committed
Updates samples to use CLI. Mentions Cloud Shell as a method to run the
commands.
1 parent fb5deed commit 3a19aa2

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

articles/cosmos-db/how-to-container-copy.md

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -13,27 +13,27 @@ ms.author: shwetn
1313

1414
[Container copy jobs](intra-account-container-copy.md) help create offline copies of containers within an Azure Cosmos DB account.
1515

16-
This article describes how to create, monitor, and manage intra-account container copy jobs using Azure CLI commands.
16+
This article describes how to create, monitor, and manage intra-account container copy jobs using Azure PowerShell or CLI commands.
1717

1818
## Pre-requisites
1919

20-
* Make sure you have [Azure CLI](/cli/azure/install-azure-cli) downloaded and installed on your machine before trying out container copy.
20+
* You may use the portal [Cloud Shell](../cloud-shell/quickstart-powershell#start-cloud-shell) to run container copy commands. Alternately, you may run the commands locally; make sure you have [Azure CLI](/cli/azure/install-azure-cli) or [Azure PowerShell](/powershell/azure/install-az-ps-msi) downloaded and installed on your machine.
2121
* Currently, container copy is only supported in [these regions](intra-account-container-copy.md#supported-regions). Make sure your account belongs to one of these regions.
2222

2323

24-
## Install the Cosmos DB preview CLI extension
24+
## Install the Cosmos DB preview extension
2525

2626
This extension contains the container copy commands.
2727

28-
```azurecli-interactive
28+
```azurepowershell-interactive
2929
az extension add --name cosmosdb-preview
3030
```
3131

3232
## Set shell variables
3333

3434
First, set all of the variables that each individual script will use.
3535

36-
```azurecli-interactive
36+
```azurepowershell-interactive
3737
$resourceGroup = "<resource-group-name>"
3838
$accountName = "<cosmos-account-name>"
3939
$jobName = ""
@@ -47,7 +47,7 @@ $destinationContainer = ""
4747

4848
Create a job to copy a container within an Azure Cosmos DB SQL API account:
4949

50-
```azurecli-interactive
50+
```azurepowershell-interactive
5151
az cosmosdb dts copy `
5252
--resource-group $resourceGroup `
5353
--account-name $accountName `
@@ -60,7 +60,7 @@ az cosmosdb dts copy `
6060

6161
Create a job to copy a container within an Azure Cosmos DB Cassandra API account:
6262

63-
```azurecli-interactive
63+
```azurepowershell-interactive
6464
az cosmosdb dts copy `
6565
--resource-group $resourceGroup `
6666
--account-name $accountName `
@@ -73,7 +73,7 @@ az cosmosdb dts copy `
7373

7474
View the progress and status of a copy job:
7575

76-
```azurecli-interactive
76+
```azurepowershell-interactive
7777
az cosmosdb dts show `
7878
--resource-group $resourceGroup `
7979
--account-name $accountName `
@@ -84,7 +84,7 @@ az cosmosdb dts show `
8484

8585
To list all the container copy jobs created in an account:
8686

87-
```azurecli-interactive
87+
```azurepowershell-interactive
8888
az cosmosdb dts list `
8989
--resource-group $resourceGroup `
9090
--account-name $accountName
@@ -94,7 +94,7 @@ az cosmosdb dts list `
9494

9595
In order to pause an ongoing container copy job, you may use the command:
9696

97-
```azurecli-interactive
97+
```azurepowershell-interactive
9898
az cosmosdb dts pause `
9999
--resource-group $resourceGroup `
100100
--account-name $accountName `
@@ -105,7 +105,7 @@ az cosmosdb dts pause `
105105

106106
In order to resume an ongoing container copy job, you may use the command:
107107

108-
```azurecli-interactive
108+
```azurepowershell-interactive
109109
az cosmosdb dts resume `
110110
--resource-group $resourceGroup `
111111
--account-name $accountName `

0 commit comments

Comments
 (0)