File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
articles/virtual-machines Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ description: Learn how to copy an incremental snapshot of a managed disk to a di
4
4
author : roygara
5
5
ms.service : storage
6
6
ms.topic : how-to
7
- ms.date : 04/11 /2022
7
+ ms.date : 05/13 /2022
8
8
ms.author : rogarana
9
9
ms.subservice : disks
10
10
ms.custom : devx-track-azurepowershell, devx-track-azurecli
@@ -35,13 +35,13 @@ The following script will copy an incremental snapshot from one region to anothe
35
35
``` azurecli
36
36
subscriptionId=<yourSubscriptionID>
37
37
resourceGroupName=<yourResourceGroupName>
38
- name=<targetSnapshotName >
38
+ targetSnapshotName=<name >
39
39
sourceSnapshotResourceId=<sourceSnapshotResourceId>
40
40
targetRegion=<validRegion>
41
41
42
42
sourceSnapshotId=$(az snapshot show -n $sourceSnapshotName -g $resourceGroupName --query [id] -o tsv)
43
43
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
45
45
46
46
az snapshot show -n $sourceSnapshotName -g $resourceGroupName --query [completionPercent] -o tsv
47
47
```
You can’t perform that action at this time.
0 commit comments