You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/cosmos-db/how-to-container-copy.md
+11-11Lines changed: 11 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -13,27 +13,27 @@ ms.author: shwetn
13
13
14
14
[Container copy jobs](intra-account-container-copy.md) help create offline copies of containers within an Azure Cosmos DB account.
15
15
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.
17
17
18
18
## Pre-requisites
19
19
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.
21
21
* 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.
22
22
23
23
24
-
## Install the Cosmos DB preview CLI extension
24
+
## Install the Cosmos DB preview extension
25
25
26
26
This extension contains the container copy commands.
27
27
28
-
```azurecli-interactive
28
+
```azurepowershell-interactive
29
29
az extension add --name cosmosdb-preview
30
30
```
31
31
32
32
## Set shell variables
33
33
34
34
First, set all of the variables that each individual script will use.
35
35
36
-
```azurecli-interactive
36
+
```azurepowershell-interactive
37
37
$resourceGroup = "<resource-group-name>"
38
38
$accountName = "<cosmos-account-name>"
39
39
$jobName = ""
@@ -47,7 +47,7 @@ $destinationContainer = ""
47
47
48
48
Create a job to copy a container within an Azure Cosmos DB SQL API account:
49
49
50
-
```azurecli-interactive
50
+
```azurepowershell-interactive
51
51
az cosmosdb dts copy `
52
52
--resource-group $resourceGroup `
53
53
--account-name $accountName `
@@ -60,7 +60,7 @@ az cosmosdb dts copy `
60
60
61
61
Create a job to copy a container within an Azure Cosmos DB Cassandra API account:
62
62
63
-
```azurecli-interactive
63
+
```azurepowershell-interactive
64
64
az cosmosdb dts copy `
65
65
--resource-group $resourceGroup `
66
66
--account-name $accountName `
@@ -73,7 +73,7 @@ az cosmosdb dts copy `
73
73
74
74
View the progress and status of a copy job:
75
75
76
-
```azurecli-interactive
76
+
```azurepowershell-interactive
77
77
az cosmosdb dts show `
78
78
--resource-group $resourceGroup `
79
79
--account-name $accountName `
@@ -84,7 +84,7 @@ az cosmosdb dts show `
84
84
85
85
To list all the container copy jobs created in an account:
86
86
87
-
```azurecli-interactive
87
+
```azurepowershell-interactive
88
88
az cosmosdb dts list `
89
89
--resource-group $resourceGroup `
90
90
--account-name $accountName
@@ -94,7 +94,7 @@ az cosmosdb dts list `
94
94
95
95
In order to pause an ongoing container copy job, you may use the command:
96
96
97
-
```azurecli-interactive
97
+
```azurepowershell-interactive
98
98
az cosmosdb dts pause `
99
99
--resource-group $resourceGroup `
100
100
--account-name $accountName `
@@ -105,7 +105,7 @@ az cosmosdb dts pause `
105
105
106
106
In order to resume an ongoing container copy job, you may use the command:
0 commit comments