@@ -42,7 +42,7 @@ Restore-AzRecoveryServicesBackupItem [-VaultLocation <String>] [-WLRecoveryConfi
42
42
The ** Restore-AzRecoveryServicesBackupItem** cmdlet restores the data and configuration for an Azure Backup item to a specified recovery point.
43
43
This cmdlet starts the restore from the Recovery Services vault to customer's storage account.
44
44
The restore operation does not restore the full virtual machine.
45
- It restores the disk data and configuration information.
45
+ It restores the managed disks to a target resource group and configuration information to customer storage account
46
46
After the restore operation is finished, you must create the virtual machine and start it.
47
47
Set the vault context by using the -VaultId parameter.
48
48
@@ -54,12 +54,12 @@ Note: To successfully execute this cmdlet in addition to -VaultId parameter -Vau
54
54
55
55
``` powershell
56
56
PS C:\> $vault = Get-AzRecoveryServicesVault -ResourceGroupName "resourceGroup" -Name "vaultName"
57
- PS C:\>$Container = Get-AzRecoveryServicesBackupContainer -ContainerType AzureVM -Status Registered -Name "V2VM" -VaultId $vault.ID
57
+ PS C:\> $Container = Get-AzRecoveryServicesBackupContainer -ContainerType AzureVM -Status Registered -Name "V2VM" -VaultId $vault.ID
58
58
PS C:\> $BackupItem = Get-AzRecoveryServicesBackupItem -ContainerType AzureVM -WorkloadType AzureVM -VaultId $vault.ID
59
59
PS C:\> $StartDate = (Get-Date).AddDays(-7)
60
60
PS C:\> $EndDate = Get-Date
61
61
PS C:\> $RP = Get-AzRecoveryServicesBackupRecoveryPoint -Item $BackupItem -StartDate $StartDate.ToUniversalTime() -EndDate $EndDate.ToUniversalTime() -VaultId $vault.ID
62
- PS C:\> $RestoreJob = Restore-AzRecoveryServicesBackupItem -RecoveryPoint $RP[0] -StorageAccountName "DestAccount" -StorageAccountResourceGroupName "DestRG" -VaultId $vault.ID -VaultLocation $vault.Location
62
+ PS C:\> $RestoreJob = Restore-AzRecoveryServicesBackupItem -RecoveryPoint $RP[0] -TargetRG $ManagedDiskRG - StorageAccountName "DestAccount" -StorageAccountResourceGroupName "DestRG" -VaultId $vault.ID -VaultLocation $vault.Location
63
63
WorkloadName Operation Status StartTime EndTime
64
64
------------ --------- ------ --------- -------
65
65
V2VM Restore InProgress 26-Apr-16 1:14:01 PM 01-Jan-01 12:00:00 AM
0 commit comments