PowerShell script exchange
Post Reply
mdrzik
Lurker
Posts: 2
Liked: never
Joined: Feb 26, 2019 6:58 am
Contact:

Set-VBRApplicationGroupStartupOptions

Post by mdrzik »

How can I associate startup options from command Set-VBRApplicationGroupStartupOptions with Application Group? This new command has missing parameter for Application Group.
wishr
Veteran
Posts: 3077
Liked: 455 times
Joined: Aug 07, 2018 3:11 pm
Full Name: Fedor Maslov
Contact:

Re: Set-VBRApplicationGroupStartupOptions

Post by wishr »

Hi Mdrzik,

Welcome to Veeam Community Forums and thanks for posting!

We'll re-validate this article section to see what can be improved/changed. I'll share more details once done.

Regards,
Fedor
veremin
Product Manager
Posts: 20406
Liked: 2298 times
Joined: Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin
Contact:

Re: Set-VBRApplicationGroupStartupOptions

Post by veremin »

The cmdlet modifies VM startup settings for staged restore, thus, it does not have any association with Application Group object. Thanks!
mdrzik
Lurker
Posts: 2
Liked: never
Joined: Feb 26, 2019 6:58 am
Contact:

Re: Set-VBRApplicationGroupStartupOptions

Post by mdrzik »

This command is on your page: https://helpcenter.veeam.com/docs/backu ... l?ver=95u4 listed under SureBackup Application Groups.
But could you post some example with commands:

Code: Select all

Set-VBRApplicationGroupStartupOptions 
and
Start-VBRRestoreVM -EnableStagedRestore 
together.
Thanks
wishr
Veteran
Posts: 3077
Liked: 455 times
Joined: Aug 07, 2018 3:11 pm
Full Name: Fedor Maslov
Contact:

Re: Set-VBRApplicationGroupStartupOptions

Post by wishr »

Hi mdrzik,

We are aware of the discrepancy in the documentation and will fix soon as a part of the complex CMDlets documentation review - this particular CMDlet is designed for staged restore, as v.Eremin mentioned above.

Regards,
Fedor
veremin
Product Manager
Posts: 20406
Liked: 2298 times
Joined: Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin
Contact:

Re: Set-VBRApplicationGroupStartupOptions

Post by veremin »

To enable staged restore you need to add the corresponding switch -EnableStagedRestore, then, you will need to pass an application group and application group startup options for it.

Startup options can be created at the beginning on the script.

Say, you want to have 700 seconds as maximum boot time, 140 seconds as application initialization timeout and memory allocation percent as 15:

Code: Select all

$ApplicationGroup = Get-VSBApplicationGroup -name "Name of your application group"
$StartupOptions = New-VBRApplicationGroupStartupOptions -MaximumBootTime "700" -ApplicationInitializationTimeout "140" -MemoryAllocationPercent "15"
Start-VBRRestoreVM <> -EnableStagedRestore -StagingApplicationGroup $ApplicationGroup -StagingStartupOptions $StartupOptions
Thanks!
Post Reply

Who is online

Users browsing this forum: No registered users and 14 guests