Skip to content

Commit

Permalink
New test record
Browse files Browse the repository at this point in the history
  • Loading branch information
siddharth7 committed Nov 29, 2018
1 parent 32784e0 commit bb2c3dc
Show file tree
Hide file tree
Showing 3 changed files with 168,166 additions and 131,893 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -385,8 +385,12 @@ function Test-AzureVMSetVaultContext
-Container $container `
-WorkloadType AzureVM

$backupJob = Backup-AzureRmRecoveryServicesBackupItem `
-Item $item | Wait-AzureRmRecoveryServicesBackupJob;
$job = Backup-AzureRmRecoveryServicesBackupItem `
-Item $item

Wait-AzureRmRecoveryServicesBackupJob -Job $job

$backupJob = Get-AzureRmRecoveryServicesBackupJobDetails -Job $job

# Get Recovery Point
$backupStartTime = $backupJob.StartTime.AddMinutes(-1);
Expand All @@ -400,8 +404,9 @@ function Test-AzureVMSetVaultContext
$restoreJob1 = Restore-AzureRmRecoveryServicesBackupItem `
-RecoveryPoint $rps[0] `
-StorageAccountName $saName `
-StorageAccountResourceGroupName $resourceGroupName | `
Wait-AzureRmRecoveryServicesBackupJob
-StorageAccountResourceGroupName $resourceGroupName

Wait-AzureRmRecoveryServicesBackupJob -Job $restoreJob1

# Disable protection
Disable-AzureRmRecoveryServicesBackupProtection `
Expand Down
Loading

0 comments on commit bb2c3dc

Please sign in to comment.