Instant VM Recovery from PowerShell

PowerShell script exchange

Instant VM Recovery from PowerShell

Veeam Logoby rickyelqasem » Mon Sep 05, 2011 6:17 pm

I thought I'd share this with you this script to first start an Instant VM recovery then stop one:

Starting
Code: Select all
$rp = Get-VBRBackup | where {$_.JobName -eq "WebServer"} | Get-VBRRestorePoint
$server = Get-VBRServer | where {$_.Name -eq "192.168.5.80"}
$res = Find-VBRResourcePool -Server ($server) | where {$_.Name -eq "Resources"}

Start-VBRInstantRecovery -ResotePoint $rp -VMName web-srv2a -Server $server -ResourcePool $res -PowerUp $true -NICsEnabled $true


Stopping
Code: Select all
$IR = Get-VBRInstantRecovery | where {$_.VMName -eq "web-srv2a"}
Stop-VBRInstantRecovery $IR
rickyelqasem
Novice
 
Posts: 6
Liked: never
Joined: Sun Jan 01, 2006 1:01 am

Re: Instant VM Recovery from PowerShell

Veeam Logoby Bunce » Mon Sep 05, 2011 11:49 pm

"-ResotePoint" Typo?
Bunce
Expert
 
Posts: 254
Liked: 8 times
Joined: Fri Sep 18, 2009 9:56 am
Location: Adelaide, Australia
Full Name: Andrew

Re: Instant VM Recovery from PowerShell

Veeam Logoby Sethbartlett » Tue Sep 06, 2011 1:00 am

It's a typo in the source code, not in the script Rickey wrote:)
Skype: Sethbartlett88 - Make sure to label who you are and why you want to add me ;)
Twitter: @sethbartlett
If my post was helpful, please like it. Sometimes twitter is quicker to hit me up if you need me.
Sethbartlett
Expert
 
Posts: 282
Liked: 25 times
Joined: Wed Nov 10, 2010 6:51 pm
Full Name: Seth Bartlett

Re: Instant VM Recovery from PowerShell

Veeam Logoby Gostev » Tue Sep 06, 2011 9:24 pm

Ah, this is embarrassing... gotta make sure this gets fixed!
Gostev
Veeam Software
 
Posts: 21390
Liked: 2349 times
Joined: Sun Jan 01, 2006 1:01 am
Location: Baar, Switzerland


Return to PowerShell



Who is online

Users browsing this forum: No registered users and 5 guests