PowerShell script exchange
Vincentye818
Lurker
Posts: 2 Liked: never
Joined: Nov 28, 2023 1:18 am
Contact:
Post
by Vincentye818 » Nov 28, 2023 1:25 am
this post
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: 10099 Liked: 2696 times
Joined: May 13, 2017 4:51 pm
Full Name: Fabian K.
Location: Switzerland
Contact:
Post
by Mildur » Nov 28, 2023 8:11 am
this post
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:
Post
by Vincentye818 » Nov 29, 2023 8:46 am
this post
Hello Mildur,
Added Planned parameter,working fine,thanks.
Users browsing this forum: No registered users and 11 guests