Skip to content

Commit 25336dc

Browse files
authored
Merge pull request #112154 from PeterDeThier-MSFT/patch-8
Update manage-restore-points.md
2 parents fd64839 + da945ab commit 25336dc

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

articles/virtual-machines/manage-restore-points.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,15 +23,37 @@ Use the following steps:
2323

2424
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).
2525

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+
2634
### Step 2: Create the destination VM restore point
2735

2836
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.
2937
See the [Restore Points - Create](/rest/api/compute/restore-points/create) API documentation to create a `RestorePoint`.
3038

39+
```azurepowershell-interactive
40+
New-AzRestorePoint `
41+
-ResourceGroupName 'myResourceGroup' `
42+
-RestorePointCollectionName 'myRPCollection'
43+
-Name 'myRestorePoint'
44+
```
45+
3146
### Step 3: Track copy status
3247

3348
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.
3449

50+
```azurepowershell-interactive
51+
Get-AzRestorePoint `
52+
-ResourceGroupName 'myResourceGroup' `
53+
-RestorePointCollectionName 'myRPCollection'
54+
-Name 'myRestorePoint'
55+
```
56+
3557
## Get restore point copy or replication status
3658

3759
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

Comments
 (0)