PowerShell script exchange
Post Reply
datacomm
Service Provider
Posts: 14
Liked: never
Joined: Aug 29, 2017 4:44 pm
Full Name: Tim Steffens
Contact:

Instant VM Recovery Issue

Post by datacomm »

I am trying to use the following code to perform an instant VM recover:

Code: Select all

$restorepoint = Get-VBRRestorePoint -name "MyServer01" | Sort-Object $_.creationtime -Descending | Select -First 1; $server = Get-VBRServer -Name "hyperV01" | Where-Object {$_.Type -eq "HvServer"};Start-VBRInstantRecovery –RestorePoint $restorepoint -Server $server -PowerUp -Reason "Test recovery";
I am getting an error of this:

Code: Select all

Start-VBRInstantRecovery : Failed to process RestorePoint 5f295b2e-4ae9-4c69-96f6-9ea8b66e0ae2. Platform type EHyperV
is not supported
At line:1 char:196
+ ... "HvServer"};Start-VBRInstantRecovery –RestorePoint $restorepoint -Ser ...
+                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [Start-VBRInstantRecovery], Exception
    + FullyQualifiedErrorId : System.Exception,Veeam.Backup.PowerShell.Cmdlets.StartVBRInstantRecovery
Any ideas why I would get this?
veremin
Product Manager
Posts: 20415
Liked: 2302 times
Joined: Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin
Contact:

Re: Instant VM Recovery Issue

Post by veremin »

Try the Hyper-V cmdlet instead and see whether it helps: Start-VBRHvInstantRecovery. Thanks.
datacomm
Service Provider
Posts: 14
Liked: never
Joined: Aug 29, 2017 4:44 pm
Full Name: Tim Steffens
Contact:

Re: Instant VM Recovery Issue

Post by datacomm »

That worked thanks!
veremin
Product Manager
Posts: 20415
Liked: 2302 times
Joined: Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin
Contact:

Re: Instant VM Recovery Issue

Post by veremin »

You're welcome, some cmdlets work differently for Hyper-V and vSphere platforms, because of that they are separated with specific prefixes: HV, VI. So, keep an eye on that. Thanks.
Post Reply

Who is online

Users browsing this forum: No registered users and 4 guests