Do not power on vm after failover

PowerShell script exchange

Do not power on vm after failover

Veeam Logoby dcd62 » Mon Sep 21, 2015 10:16 pm

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
dcd62
Enthusiast
 
Posts: 29
Liked: 4 times
Joined: Wed Aug 20, 2014 1:00 pm

Re: Do not power on vm after failover

Veeam Logoby Dima P. » Tue Sep 22, 2015 4:58 pm

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.
Dima P.
Veeam Software
 
Posts: 6261
Liked: 441 times
Joined: Mon Feb 04, 2013 2:07 pm
Location: SPb
Full Name: Dmitry Popov

Re: Do not power on vm after failover

Veeam Logoby dcd62 » Wed Sep 23, 2015 6:17 pm

Hi, We are replicating VMware VM build templates to different locations and do not want the vm in a powered on state.
thanks
dcd62
Enthusiast
 
Posts: 29
Liked: 4 times
Joined: Wed Aug 20, 2014 1:00 pm

Re: Do not power on vm after failover

Veeam Logoby v.Eremin » Mon Sep 28, 2015 2:35 pm

But if you're just replicating templates, why do you want to failover them? Thanks.
v.Eremin
Veeam Software
 
Posts: 13296
Liked: 973 times
Joined: Fri Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin


Return to PowerShell



Who is online

Users browsing this forum: No registered users and 5 guests