Skip to content

Commit 8b157a6

Browse files
authored
Merge pull request #198264 from roygara/fixMoveScript
Fixing script.
2 parents 73bda2f + 3a82ef4 commit 8b157a6

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

articles/virtual-machines/disks-copy-incremental-snapshot-across-regions.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ description: Learn how to copy an incremental snapshot of a managed disk to a di
44
author: roygara
55
ms.service: storage
66
ms.topic: how-to
7-
ms.date: 04/11/2022
7+
ms.date: 05/13/2022
88
ms.author: rogarana
99
ms.subservice: disks
1010
ms.custom: devx-track-azurepowershell, devx-track-azurecli
@@ -28,20 +28,20 @@ This article covers copying an incremental snapshot from one region to another.
2828

2929
# [Azure CLI](#tab/azure-cli)
3030

31-
You can use the Azure CLI to copy an incremental snapshot. You will need the latest version of the Azure CLI. See the following articles to learn how to either [install](/cli/azure/install-azure-cli) or [update](/cli/azure/update-azure-cli) the Azure CLI.
31+
You can use the Azure CLI to copy an incremental snapshot. You need the latest version of the Azure CLI. See the following articles to learn how to either [install](/cli/azure/install-azure-cli) or [update](/cli/azure/update-azure-cli) the Azure CLI.
3232

33-
The following script will copy an incremental snapshot from one region to another:
33+
The following script copies an incremental snapshot from one region to another:
3434

3535
```azurecli
3636
subscriptionId=<yourSubscriptionID>
3737
resourceGroupName=<yourResourceGroupName>
38-
name=<targetSnapshotName>
38+
targetSnapshotName=<name>
3939
sourceSnapshotResourceId=<sourceSnapshotResourceId>
4040
targetRegion=<validRegion>
4141
4242
sourceSnapshotId=$(az snapshot show -n $sourceSnapshotName -g $resourceGroupName --query [id] -o tsv)
4343
44-
az snapshot create -g $resourceGroupName -n $targetSnapshotName --source $sourceSnapshotId --incremental --copy-start
44+
az snapshot create -g $resourceGroupName -n $targetSnapshotName -l $targetRegion --source $sourceSnapshotId --incremental --copy-start
4545
4646
az snapshot show -n $sourceSnapshotName -g $resourceGroupName --query [completionPercent] -o tsv
4747
```

0 commit comments

Comments
 (0)