PowerShell script exchange
Post Reply
Brad-Translucent
Service Provider
Posts: 13
Liked: never
Joined: Jun 14, 2017 8:06 pm
Full Name: Brad Morris
Contact:

Powershell script to failover Replica.

Post by Brad-Translucent »

I am trying to get the PS script:

Code: Select all

Get-VBRRestorePoint -Name "MGT01-Brad" | Sort-Object $_.creationtime -Descending | Select-Object -First 1 | Start-VBRViReplicaFailover -Reason "Configuration recovery" -RunAsync
to fail over a replica.  But I get
Start-VBRViReplicaFailover : Failed to process RestorePoint e1f1ddd3-51b6-4345-a1d4-e4d31a3e8411. Platform type
EHyperV is not supported
At line:1 char:109
+ ...  -First 1 | Start-VBRViReplicaFailover -Reason "Configuration recover ...
+                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [Start-VBRViReplicaFailover], Exception
    + FullyQualifiedErrorId : System.Exception,Veeam.Backup.PowerShell.Cmdlets.StartVBRViReplicaFailover
I see mention of HyperV which is the platform I am running. I cannot work out what I am missing.
HannesK
Product Manager
Posts: 14837
Liked: 3083 times
Joined: Sep 01, 2014 11:46 am
Full Name: Hannes Kasparick
Location: Austria
Contact:

Re: Powershell script to failover Replica.

Post by HannesK »

Hello,
and welcome to the forums.

Start-VBRViReplicaFailover is for VMware https://helpcenter.veeam.com/docs/backu ... ml?ver=110

Did you try Start-VBRHvReplicaFailover https://helpcenter.veeam.com/docs/backu ... ml?ver=110 ?

Best regards,
Hannes
Post Reply

Who is online

Users browsing this forum: No registered users and 18 guests