PowerShell script exchange
Post Reply
dcd62
Enthusiast
Posts: 39
Liked: 4 times
Joined: Aug 20, 2014 1:00 pm
Contact:

Do not power on vm after failover

Post by dcd62 »

I'm running a script to perform the failover but I don't want the replicated vm to power up after it has failed over. Is there an option to set for that or does it have to be powered down in a post script?

Get-VBRRestorePoint -Name $VM | Sort-Object $_.creationtime -Descending | Select -First 1 | Start-VBRViReplicaFailover -Reason "Configuration recovery" -RunAsync -Definite -Confirm: $true

thanks
Dima P.
Product Manager
Posts: 14726
Liked: 1706 times
Joined: Feb 04, 2013 2:07 pm
Full Name: Dmitry Popov
Location: Prague
Contact:

Re: Do not power on vm after failover

Post by Dima P. »

Hi dcd62,
It might be a silly question but why you need a replication then? I’d use a combination of backup and instant recovery operations for a case like yours.
dcd62
Enthusiast
Posts: 39
Liked: 4 times
Joined: Aug 20, 2014 1:00 pm
Contact:

Re: Do not power on vm after failover

Post by dcd62 »

Hi, We are replicating VMware VM build templates to different locations and do not want the vm in a powered on state.
thanks
veremin
Product Manager
Posts: 20415
Liked: 2302 times
Joined: Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin
Contact:

Re: Do not power on vm after failover

Post by veremin »

But if you're just replicating templates, why do you want to failover them? Thanks.
Post Reply

Who is online

Users browsing this forum: No registered users and 12 guests