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: src/RecoveryServices/RecoveryServices.Backup/ParamHelpMsgs.cs
+2Lines changed: 2 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -181,6 +181,8 @@ internal static class RestoreVM
181
181
publicconststringTargetVNetResourceGroup="Name of the resource group which contains the target VNet, in the case of Alternate Location restore to a new VM";
182
182
publicconststringTargetSubnetName="Name of the subnet in which the target VM should be created, in the case of Alternate Location restore to a new VM";
183
183
publicconststringTargetSubscriptionId="ID of the target subscription to which the resource should be restored. Use this parameter for Cross subscription restore";
184
+
publicconststringDiskAccessOption="Specifies the disk access option for target disks";
185
+
publicconststringTargetDiskAccessId="Specifies the target disk access ID when DiskAccessOption set to EnablePrivateAccessForAllDisks";
In this example, we use RestoreToEdgeZone parameter to trigger a restore to new edge zone vm in alternate location. For Original location restore (OLR), restore will implicitly be an edge zone restore if the source VM is an edge zone VM.
331
332
333
+
### Example 12: Restore a Managed AzureVM using DiskAccessOption
V2VM Restore InProgress 26-Jul-24 1:14:01 PM 01-Jan-01 12:00:00 AM
346
+
```
347
+
348
+
In this example, we use DiskAccessOption parameter to trigger a restore to new VM with private access enabled for all disks. DiskAccessOption parameter can be used to specify the disk access option for target disks. The acceptable values for this parameter are: SameAsOnSourceDisks, EnablePrivateAccessForAllDisks, EnablePublicAccessForAllDisks. TargetDiskAccessId parameter is used to specify the disk access id for the target disks. This parameter is required when DiskAccessOption is set to EnablePrivateAccessForAllDisks.
0 commit comments