PowerShell script exchange
Post Reply
Vincentye818
Lurker
Posts: 2
Liked: never
Joined: Nov 28, 2023 1:18 am
Contact:

failover to DR site,but original vm no shutdown

Post by Vincentye818 »

I run below script failover my replicate vm to DR site,but original vm still running can't shutdown,how to solve my issue,thanks.

Code: Select all

Get-VBRReplica -Name TMSWEB01_Test | Get-VBRRestorePoint -Name TMSWEB01  | Sort-Object -Property CreationTime -Descending | Select -First 1 | Start-VBRViReplicaFailover -Reason "Testing 1" -RunAsync -PowerOn -Confirm
Mildur
Product Manager
Posts: 8735
Liked: 2294 times
Joined: May 13, 2017 4:51 pm
Full Name: Fabian K.
Location: Switzerland
Contact:

Re: failover to DR site,but original vm no shutdown

Post by Mildur »

Hi Vincent

Only a planned failover will shutdown the source VM. A normal failover won't shutdown the VM.
Can you confirm that the command was running a planned failover?

If you want to follow our userguide, then please try the following code:

https://helpcenter.veeam.com/docs/backu ... vm-replica

Code: Select all

$restorepoint = Get-VBRRestorePoint -Name "TMSWEB01_Test" | Sort-Object -Property CreationTime -Descending | Select -First 1
Start-VBRViReplicaFailover -RestorePoint $restorepoint -Planned
Best,
Fabian
Product Management Analyst @ Veeam Software
Vincentye818
Lurker
Posts: 2
Liked: never
Joined: Nov 28, 2023 1:18 am
Contact:

Re: failover to DR site,but original vm no shutdown

Post by Vincentye818 »

Hello Mildur,

Added Planned parameter,working fine,thanks.
Post Reply

Who is online

Users browsing this forum: No registered users and 16 guests