Skip to content

Commit f9aaa95

Browse files
author
Sambit Rath
committed
updated help text
1 parent e15e000 commit f9aaa95

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/RecoveryServices/RecoveryServices/help/Restore-AzRecoveryServicesBackupItem.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ Restore-AzRecoveryServicesBackupItem [-VaultLocation <String>] [-WLRecoveryConfi
4242
The **Restore-AzRecoveryServicesBackupItem** cmdlet restores the data and configuration for an Azure Backup item to a specified recovery point.
4343
This cmdlet starts the restore from the Recovery Services vault to customer's storage account.
4444
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
4646
After the restore operation is finished, you must create the virtual machine and start it.
4747
Set the vault context by using the -VaultId parameter.
4848

@@ -54,12 +54,12 @@ Note: To successfully execute this cmdlet in addition to -VaultId parameter -Vau
5454

5555
```powershell
5656
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
5858
PS C:\> $BackupItem = Get-AzRecoveryServicesBackupItem -ContainerType AzureVM -WorkloadType AzureVM -VaultId $vault.ID
5959
PS C:\> $StartDate = (Get-Date).AddDays(-7)
6060
PS C:\> $EndDate = Get-Date
6161
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
6363
WorkloadName Operation Status StartTime EndTime
6464
------------ --------- ------ --------- -------
6565
V2VM Restore InProgress 26-Apr-16 1:14:01 PM 01-Jan-01 12:00:00 AM

0 commit comments

Comments
 (0)