PowerShell script exchange
Post Reply
javiis
Novice
Posts: 4
Liked: never
Joined: Jul 26, 2013 7:38 am
Contact:

Config Backup, Application Group Settings, Dialog Boxes

Post by javiis » Jul 26, 2013 8:27 am

Hi Folks

I am currently in the process of automating surebackup with a powershell script and ran into some issues.

1.) I want to remove old backup repositories and replace it with a new one.
However, veeam stores its config backup in an old one and wants it to be swapped beforehand.
i could not find a way to do this in powershell.
right now i have to pause the script and wait for the user to manually switch the configbackup to the new repository.

2.) I cant figure out how to set roles for VMs in application groups.
when an application group is created in the gui, one can select the VMS and set roles/add scripts.
I cant find a way to do this in powershell.

3.) several cmdlets prompt for user interaction with dialog boxes. i tried to suppress them but it didnt work.
what is the right way to do this?

javiis
Novice
Posts: 4
Liked: never
Joined: Jul 26, 2013 7:38 am
Contact:

Re: Config Backup, Application Group Settings, Dialog Boxes

Post by javiis » Jul 26, 2013 10:05 am

also, it seems one can not configure Virtual Lab settings, like Network

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

Re: Config Backup, Application Group Settings, Dialog Boxes

Post by veremin » Jul 26, 2013 10:40 am

Config backup, Virtual Lab, Linked Jobs
It seems, indeed, that you can’t change any of the abovementioned settings via PS; at least, I don’t the way how it can be achieved.
several cmdlets prompt for user interaction with dialog boxes
I’m wondering about what cmdlets you’re talking about. Thanks.

javiis
Novice
Posts: 4
Liked: never
Joined: Jul 26, 2013 7:38 am
Contact:

Re: Config Backup, Application Group Settings, Dialog Boxes

Post by javiis » Jul 26, 2013 3:02 pm

I’m wondering about what cmdlets you’re talking about. Thanks.

Code: Select all

Remove-VSBApplicationGroup
Remove-VSBJob 
Remove-VSBVirtualLab
Remove-VBRServer
and possibly more... i did not check all of em.
It would be really awesome if it would be possible to automate things without... well.. interaction :)
I am fairly new to powershell and pretty sure i miss something here.
It seems, indeed, that you can’t change any of the abovementioned settings via PS; at least, I don’t the way how it can be achieved.
I don't mind the missing config-backup cmdlet that much, although its annoying..
But not to be able to create Surebackup jobs that actually work... would render half of the Surebackup related cmdlets rather useless.

Could there be any other way? Fiddling with Objects, or importing XML configs?
I refuse to belief that theres no hackish way around. :)

kind regards

ThomasMc
Expert
Posts: 293
Liked: 17 times
Joined: Apr 13, 2011 12:45 pm
Full Name: Thomas McConnell
Contact:

Re: Config Backup, Application Group Settings, Dialog Boxes

Post by ThomasMc » Jul 27, 2013 4:46 pm

The removal ones mostly have confirmations on them because of what your doing, sort of safe gaurd so you don't get caught with your pants down firing bad commands

Code: Select all

Add-VSBViApplicationGroup -Name "Test App Group" -Vm (Find-VBRViEntity -Name "dc01.vPowerCLI.local")
Remove-VSBApplicationGroup -AppGroup (Get-VSBApplicationGroup -Name "Test App Group") -Confirm:$false

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

Re: Config Backup, Application Group Settings, Dialog Boxes

Post by veremin » Jul 29, 2013 9:02 am

Remove-VSBApplicationGroup
Remove-VSBJob
Remove-VSBVirtualLab
Remove-VBRServer
As correctly mentioned, you might want to use -confirm:$false in conjunction with these functions in order to suppress confirmation.

Additionally, there is a very useful WhatIF switch in these commands that allows running a PowerShell script without actually running it. Rather than actually running the commands, the WhatIf switch only displays what the outcome of running the script would be if it were actually run. There are plenty of times when watching the output of a running script can tell you that it is NOT running properly, especially, when you don’t feel confident in PS or performing some irreversible activity, such as deletion job, Application Groups, etc.

Thanks.

javiis
Novice
Posts: 4
Liked: never
Joined: Jul 26, 2013 7:38 am
Contact:

Re: Config Backup, Application Group Settings, Dialog Boxes

Post by javiis » Jul 29, 2013 11:31 am

Remove-VSBApplicationGroup -AppGroup (Get-VSBApplicationGroup -Name "Test App Group") -Confirm:$false
Thank you very much! Works like a charm. I knew i missed something :)

About the Application Group and Virtual Lab configuration options...
will such 'enhancements' be implemented in v7?

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

Re: Config Backup, Application Group Settings, Dialog Boxes

Post by veremin » Jul 29, 2013 11:47 am

While there certainly will be a variety of new cmdlets, ones mentioned by you are likely to stay unchanged in the upcoming version of Veaam Backup and Replication. However, please be aware that these forums are always thoughtfully monitored for potential features.

So, thank you for the feedback; highly appreciated.

Thanks.

StefanSpecht
Influencer
Posts: 16
Liked: never
Joined: Aug 17, 2010 12:21 pm
Full Name: Stefan Specht
Contact:

Re: Config Backup, Application Group Settings, Dialog Boxes

Post by StefanSpecht » Jul 13, 2015 10:34 am

It seems that in v8 there is still no possibility to adjusting maximum allowed boot time or assigning roles to VMs in an Applicationgroup by Powershell.
Is it planned for v9?

Our VMs need about 15 minutes to boot up. So adjusting the max boot time for the VMs is the the last piece, we would need for our automation...

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

Re: Config Backup, Application Group Settings, Dialog Boxes

Post by veremin » Jul 13, 2015 4:35 pm

It seems that in v8 there is still no possibility to adjusting maximum allowed boot time or assigning roles to VMs in an Applicationgroup by Powershell.
You're right, those settings aren't configurable via PowerShell.
Is it planned for v9?
It depends on dev. resource availability and its priority in comparison with other features that are covered in PS yet.

Thanks.

Hans.Leysen
Service Provider
Posts: 1
Liked: 1 time
Joined: Jun 15, 2015 8:40 am
Full Name: Hans Leysen
Contact:

Re: Config Backup, Application Group Settings, Dialog Boxes

Post by Hans.Leysen » Feb 25, 2016 4:05 pm 1 person likes this post

Hello Vladimir

We have sort of the same request.
I'm currently looking at the dynamic surebackup script from your colleague Luca Dell'oca.
(Details: http://www.virtualtothecore.com/en/can- ... urebackup/)
It's really an elegant solution if you want to test +1000 VM backups over a longer period of time.

In order to speed up the process we would like to deselect the "application initialization timeout" option (default 120 sec) from within powershell.
It seems this powershell cmdlet is currently not available. (Please correct me if i'm wrong.)
Since we just boot up the VM from backup to do the heartbeat test, waiting for the application initialization is lost time.
On for example 20 VM's we lose in total 40 minutes per surebackup iteration.

We would also like to have the option to boot up VM's in a parallel fashion in order to speed up the surebackup process.
For example per 2 or 3 VM's concurrently.

Best regards

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

Re: Config Backup, Application Group Settings, Dialog Boxes

Post by veremin » Feb 29, 2016 10:36 am

Please correct me if i'm wrong
Indeed, you cannot change these settings via PowerShell at the moment. Though, we're thinking about adding this functionality down the road. Thanks.

cmerker
Lurker
Posts: 1
Liked: never
Joined: Feb 18, 2011 8:04 am
Full Name: cm
Contact:

[MERGED] create advanced virtual labs with powershel

Post by cmerker » Dec 02, 2016 8:51 am

Case #01992236
Hello together,

we like to use sure backup Jobs. Our Servers are located in many different subnets and vlans. It is necessary, that servers from one subnet can connect to servers in other subnets. So we need to use advanced virtual labs. Building these labs manually is very time consuming and cause errors.
I tried to use powershell, but find out that the cmdlets only support the creation of basic virtual labs.

==> It would be great if the powershell cmdlets would create advanced virtual labs (single and multihost).

Thanks
Conrad

TheMonk
Influencer
Posts: 23
Liked: never
Joined: Jun 17, 2015 3:03 pm
Full Name: Chris Armitage
Contact:

Re: Config Backup, Application Group Settings, Dialog Boxes

Post by TheMonk » Mar 16, 2017 11:33 am

v.Eremin wrote: Indeed, you cannot change these settings via PowerShell at the moment. Though, we're thinking about adding this functionality down the road. Thanks.
Did this get added do we know?

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

Re: Config Backup, Application Group Settings, Dialog Boxes

Post by veremin » Mar 16, 2017 11:58 am

Nope, the said functionality has not been added in Update 1, and honestly I'd not expect it these features to be implemented in product updates (one of the major releases would be a more accurate guess) . Thanks.

mvdhijden
Lurker
Posts: 2
Liked: never
Joined: Apr 11, 2013 1:31 pm
Full Name: Mark van der Hijden

[MERGED] Add restorepoint to Application Group through comma

Post by mvdhijden » Jan 29, 2018 1:34 pm

Hi,

We are creating an SureBackup Application Group by the command Add-VSBViApplicationGroup with the following command:

Code: Select all

Add-VSBViApplicationGroup -Name "Application Group" -RestorePoint (Get-VBRRestorePoint -Name "<VM NAME>")
The Application Group is correctly created, but now I want to add an extra restorepoint to this Application Group by command. Does anyone has an idea how to do this? of which command I should use?

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

Re: Config Backup, Application Group Settings, Dialog Boxes

Post by veremin » Jan 29, 2018 6:45 pm

Unfortunately, you cannot modify these settings via PS currently. Thanks.

mvdhijden
Lurker
Posts: 2
Liked: never
Joined: Apr 11, 2013 1:31 pm
Full Name: Mark van der Hijden

Re: Config Backup, Application Group Settings, Dialog Boxes

Post by mvdhijden » Jan 30, 2018 10:39 am

Any change this feature will be there in the future?

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

Re: Config Backup, Application Group Settings, Dialog Boxes

Post by veremin » Jan 30, 2018 11:36 am

It's tracked internally, but I cannot provide any time frame when it will be implemented. Thanks.

Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests