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/virtual-machines/manage-restore-points.md
+22Lines changed: 22 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -23,15 +23,37 @@ Use the following steps:
23
23
24
24
To copy an existing VM restore point from one region to another, your first step is to create a restore point collection in the target or destination region. To do this, reference the restore point collection from the source region as detailed in [Create a VM restore point collection](create-restore-points.md#step-1-create-a-vm-restore-point-collection).
25
25
26
+
```azurepowershell-interactive
27
+
New-AzRestorePointCollection `
28
+
-ResourceGroupName 'myResourceGroup' `
29
+
-Name 'myRPCollection' `
30
+
-Location 'WestUS' `
31
+
-RestorePointCollectionId '/subscriptions/<SUBSCRIPTION ID>/resourceGroups/<RG>/providers/Microsoft.Compute/restorePointCollections/<SOURCE RESTORE POINT COLLECTION>'
32
+
```
33
+
26
34
### Step 2: Create the destination VM restore point
27
35
28
36
After the restore point collection is created, trigger the creation of a restore point in the target restore point collection. Ensure that you've referenced the restore point in the source region that you want to copy and specified the source restore point's identifier in the request body. The source VM's location is inferred from the target restore point collection in which the restore point is being created.
29
37
See the [Restore Points - Create](/rest/api/compute/restore-points/create) API documentation to create a `RestorePoint`.
30
38
39
+
```azurepowershell-interactive
40
+
New-AzRestorePoint `
41
+
-ResourceGroupName 'myResourceGroup' `
42
+
-RestorePointCollectionName 'myRPCollection'
43
+
-Name 'myRestorePoint'
44
+
```
45
+
31
46
### Step 3: Track copy status
32
47
33
48
To track the status of the copy operation, follow the guidance in the [Get restore point copy or replication status](#get-restore-point-copy-or-replication-status) section below. This is only applicable for scenarios where the restore points are copied to a different region than the source VM.
34
49
50
+
```azurepowershell-interactive
51
+
Get-AzRestorePoint `
52
+
-ResourceGroupName 'myResourceGroup' `
53
+
-RestorePointCollectionName 'myRPCollection'
54
+
-Name 'myRestorePoint'
55
+
```
56
+
35
57
## Get restore point copy or replication status
36
58
37
59
Copying the first VM restore point to another region is a long running operation. The VM restore point can be used to restore a VM only after the operation is completed for all disk restore points. To track the operation's status, call the [Restore Point - Get](/rest/api/compute/restore-points/get) API on the target VM restore point and include the `instanceView` parameter. The return will include the percentage of data that has been copied at the time of the request.
0 commit comments