PowerShell script exchange
Post Reply
y1008946
Enthusiast
Posts: 93
Liked: never
Joined: Sep 23, 2013 3:56 pm
Contact:

Powershell to set App Group Startup Options

Post by y1008946 »

Hi, I have a powershell script to add VMs to an App Group.

Code: Select all

Add-PSSnapin VeeamPSSnapin

$ibfOibs = (Get-VBRRestorePoint -Name "DOMCNTRL01")

Add-VSBViApplicationGroup –Name “App Group - Offsite Backups” –RestorePoint $ibfOibs
Is it possible to change the startup up options when adding the VM to the app group?

I would like to change 'maximum allowed boot time' when adding the VM

Thanks
veremin
Product Manager
Posts: 20270
Liked: 2252 times
Joined: Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin
Contact:

Re: Powershell to set App Group Startup Options

Post by veremin »

If my memory serves me well, the startup , as well as, other App Group options can't be currently changed via PS. However, I will doublecheck it on Monday, once I'm in the office. Thanks.
veremin
Product Manager
Posts: 20270
Liked: 2252 times
Joined: Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin
Contact:

Re: Powershell to set App Group Startup Options

Post by veremin »

Yep, I was right. Currently, there is no way to specify/change VM start-up options of Application Group. Thanks.
y1008946
Enthusiast
Posts: 93
Liked: never
Joined: Sep 23, 2013 3:56 pm
Contact:

[MERGED] : Application Group Settings

Post by y1008946 »

Hi, I've got a powershell script which creates an application group and add some VMs.

Is there a way I can set the VMs to have different start up times to the default ones given?

Also is it possible to give roles to the VMs through Powershell?

Many Thanks


This is my Powershell script:

Code: Select all

Add-PSSnapin VeeamPSSnapin

Sync-VBRBackupRepository -Repository (Get-VBRBackupRepository -Name "BackupData")

$ibfOibs = (Get-VBRRestorePoint -Name "DOM01")
$ibfOibs += (Get-VBRRestorePoint -Name "APP01")
$ibfOibs += (Get-VBRRestorePoint -Name "EXCH01")

Add-VSBViApplicationGroup –Name “App Group - Offsite Backups” –RestorePoint $ibfOibs
veremin
Product Manager
Posts: 20270
Liked: 2252 times
Joined: Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin
Contact:

Re: Powershell to set App Group Startup Options

Post by veremin »

Currently, the mentioned settings aren't configurable via PowerShell. Thanks.
dustinherm
Lurker
Posts: 2
Liked: never
Joined: Sep 29, 2017 3:05 pm
Contact:

[MERGED] Feature Request

Post by dustinherm »

Allow us to change the default startup options - specifically maximum allowed boot time. Or at least let us change it per job via powershell.

Trying to do automatic sure backup jobs from powershell and I have certain vm's that fail because they do not boot in the 10 min time window, would like to be able to change that value via script or default settings so I don't have to create and run the jobs manually.
dustinherm
Lurker
Posts: 2
Liked: never
Joined: Sep 29, 2017 3:05 pm
Contact:

Re: Powershell to set App Group Startup Options

Post by dustinherm »

v.Eremin wrote:Currently, the mentioned settings aren't configurable via PowerShell. Thanks.

Anyway we can get these settings configurable via Powershell?
veremin
Product Manager
Posts: 20270
Liked: 2252 times
Joined: Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin
Contact:

Re: Powershell to set App Group Startup Options

Post by veremin »

We're considering this feature for one of the next product releases. Thanks.
DomBros
Influencer
Posts: 10
Liked: 1 time
Joined: Mar 17, 2017 12:30 pm
Full Name: Tomasz Dabrowski
Contact:

Re: Powershell to set App Group Startup Options

Post by DomBros »

little refresh
has such functionality been added?
i can't find any clues
DomBros
Influencer
Posts: 10
Liked: 1 time
Joined: Mar 17, 2017 12:30 pm
Full Name: Tomasz Dabrowski
Contact:

Re: Powershell to set App Group Startup Options

Post by DomBros »

i've give up to fast
there is solution :)
https://helpcenter.veeam.com/docs/backu ... l?ver=95u4
DomBros
Influencer
Posts: 10
Liked: 1 time
Joined: Mar 17, 2017 12:30 pm
Full Name: Tomasz Dabrowski
Contact:

Re: Powershell to set App Group Startup Options

Post by DomBros »

I do not understand
how to use New-VBRApplicationGroupStartupOptions (https://helpcenter.veeam.com/docs/backu ... l?ver=95u4)
to create Application Group with specify Bootup Options ?
veremin
Product Manager
Posts: 20270
Liked: 2252 times
Joined: Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin
Contact:

Re: Powershell to set App Group Startup Options

Post by veremin »

The cmdlet creates VM startup settings for staged restore and does not have any association with Application Group object. Thanks!
Pollmann_M
Influencer
Posts: 11
Liked: never
Joined: Nov 23, 2017 1:39 pm
Full Name: Martijn Pollmann
Location: The Netherlands
Contact:

Re: Powershell to set App Group Startup Options

Post by Pollmann_M »

v.eremin wrote: Oct 24, 2017 6:00 pm We're considering this feature for one of the next product releases. Thanks.
Is this option going to be available in a future release?
veremin
Product Manager
Posts: 20270
Liked: 2252 times
Joined: Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin
Contact:

Re: Powershell to set App Group Startup Options

Post by veremin » 1 person likes this post

It will be available in one of the next future releases - timeframe for its support will be determined later. Thanks!
Simpleacc
Influencer
Posts: 12
Liked: never
Joined: Nov 13, 2017 10:02 am
Full Name: Javier
Contact:

Re: Powershell to set App Group Startup Options

Post by Simpleacc »

Hello,

Do you have any news about this topic? I have the same problem :D
I am trying to configure Application Group via powershell (it works well) but when I start the surebackup job some VMs have a time out because the boot time.

regards
veremin
Product Manager
Posts: 20270
Liked: 2252 times
Joined: Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin
Contact:

Re: Powershell to set App Group Startup Options

Post by veremin »

As mentioned, support for it is planned for one of the next product releases. Thanks!
Post Reply

Who is online

Users browsing this forum: No registered users and 19 guests