PowerShell script exchange
Post Reply
tkolstad
Influencer
Posts: 11
Liked: 1 time
Joined: Oct 11, 2011 2:16 pm
Full Name: Terence Kolstad
Contact:

Modify App Group tied to SureBackup job

Post by tkolstad »

I'm going through SureBackup testing to get the right timeouts for a customer. I'd like to be able to do this in PowerShell so I don't have to open every server in the App group and make the changes. The User Guide has been less than helpful and when I opened a ticket, I was told that they can't assist with this.

This is what I was working with:

$startup = New-VBRApplicationGroupStartupOptions -MaximumBootTime 2400 -ApplicationInitializationTimeout 360 -AllocatedMemory 80 -HeartbeatCheck

Set-VBRSureBackupStartupOptions -Options $startup
Mildur
Product Manager
Posts: 10086
Liked: 2688 times
Joined: May 13, 2017 4:51 pm
Full Name: Fabian K.
Location: Switzerland
Contact:

Re: Modify App Group tied to SureBackup job

Post by Mildur »

Hi Tkolstad

Correct, support won't be able to help with custom scripting.

As documented in the user guide, this cmdlet is only used for staged restores. It doesn't configure application group settings for a sure backup job.
I will ask one of my colleagues if we have any unofficial methods for PowerShell to set the options you are looking for.

Best,
Fabian
Product Management Analyst @ Veeam Software
david.domask
Veeam Software
Posts: 2331
Liked: 554 times
Joined: Jun 28, 2016 12:12 pm
Contact:

Re: Modify App Group tied to SureBackup job

Post by david.domask »

Hi @tkolstad, Fabian is correct, those are for staged restores. You will need to write a function to do this process from the User Guide; in v12, you set all this on the New-SureBackupVM object and add those to application groups, or you edit the start-up options on the Surebackup job for linked jobs.

https://helpcenter.veeam.com/docs/backu ... ml?ver=120

Here's a quick shell walk through of what I did:

1. Get the VM CObjectInJob object with Get-VBRJob and Get-VBRJobObject:

Code: Select all

PS C:\Users\Administrator> $job = Get-VBRJob -name 'vmware-ffi-cap-bb'
PS C:\Users\Administrator> $Objs = Get-VBRJobObject -Job $job
PS C:\Users\Administrator> $Objs

Name                      Type       ApproxSize       Location
----                      ----       ----------       --------
ddom-tinyvm               Include    0 B              some-vcenter.local...
2. Set your Startup Options with New-VBRSureBackupStartupOptions:

Code: Select all

 $StartOpts = New-VBRSureBackupStartupOptions -AllocatedMemory 50 -EnableVMHeartbeatCheck -MaximumBootTime 5400 -ApplicationInitializationTimeout 5000 -EnableVMPingCheck:$false -DisableWindowsFirewall
3. Make a new VBRSurebackup VM Object:

Code: Select all

$VerOpts = New-VBRSureBackupVM -VM $Objs -Role DomainControllerNonAuthoritative -StartupOptions $StartOpts
4. Set your application group with Set-VBRApplicationGroup: #Important! The -VM flag will _overwrite_ the existing added VMs to the appgroup, so you will need to re-add all the VMs to the app group

Code: Select all

Set-VBRApplicationGroup -ApplicationGroup $appg -VM $VerOpts
The end result should be something like this:

Image

Play with it in your lab and once you get the workflow, I recommend write a function to create/add these. You will basically build an array of New-SureBackupVM objects to pass to Set-VBRApplicationGroup on the -VM flag.
David Domask | Product Management: Principal Analyst
tkolstad
Influencer
Posts: 11
Liked: 1 time
Joined: Oct 11, 2011 2:16 pm
Full Name: Terence Kolstad
Contact:

Re: Modify App Group tied to SureBackup job

Post by tkolstad »

Thank you all for the feedback. I'll work to test that out!
oleg.feoktistov
Veeam Software
Posts: 2015
Liked: 671 times
Joined: Sep 25, 2019 10:32 am
Full Name: Oleg Feoktistov
Contact:

Re: Modify App Group tied to SureBackup job

Post by oleg.feoktistov »

Hi,

I asked our technical writers to move New-VBRApplicationGroupStartupOptions and Set-VBRApplicationGroupStartupOptions out of SureBackup section of the User Guide lest to confuse anybody as these cmdlets are not directly related to SureBackup.

Best regards,
Oleg
Post Reply

Who is online

Users browsing this forum: No registered users and 22 guests