Skip to content

Commit

Permalink
Update ItemTests.ps1
Browse files Browse the repository at this point in the history
  • Loading branch information
hiaga authored Jun 26, 2023
1 parent 477dfed commit a10b567
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,7 @@ function Test-AzureVmWorkloadCrossRegionRestore
$overwrite = "Yes"

try
{ # | Wait-AzureRmRecoveryServicesBackupJob -VaultId $vault.ID

{
$secvault = Get-AzRecoveryServicesVault -ResourceGroupName $targetResourceGroup -Name $targetVault
$item = Get-AzRecoveryServicesBackupItem -BackupManagementType AzureWorkload -WorkloadType MSSQL -VaultId $vaultId -UseSecondaryRegion | Where-Object { $_.Name -match "model" }
$rp = Get-AzRecoveryServicesBackupRecoveryPoint -Item $item[0] -VaultId $vaultId -UseSecondaryRegion -RecoveryPointId $recoveryPointId
Expand Down Expand Up @@ -723,4 +722,4 @@ function Test-AzureVmWorkloadRestoreAsFiles

Assert-True { $restorejob3.Status -eq "Completed" }

}
}

0 comments on commit a10b567

Please sign in to comment.