Skip to content

Fix Test-AzureVmWorkloadRestoreAsFiles in RecoveryService #11049

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Feb 7, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -619,9 +619,9 @@ function Test-AzureVmWorkloadRestoreAsFiles
-BackupManagementType "AzureWorkload" `
-WorkloadType "MSSQL";

$endtime = get-date -Year 2020 -Month 1 -Day 31 -Minute 35 -Hour 23 -Second 15
[datetime]$endtime = get-date -Year 2020 -Month 1 -Day 31 -Minute 35 -Hour 23 -Second 15 -Format "dddd MM/dd/yyyy HH:mm:ss Z"
$endtime = $endtime.ToUniversalTime()
$starttime = $endtime.AddDays(-30)
[datetime]$starttime = $endtime.AddDays(-30)
$starttime = $starttime.ToUniversalTime()

$rp = Get-AzRecoveryServicesBackupRecoveryPoint -VaultId $vault.ID -Item $item -StartDate $starttime -EndDate $endtime
Expand Down