Config Backup, Application Group Settings, Dialog Boxes

PowerShell script exchange

Config Backup, Application Group Settings, Dialog Boxes

Veeam Logoby javiis » Fri 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: Fri Jul 26, 2013 7:38 am

Re: Config Backup, Application Group Settings, Dialog Boxes

Veeam Logoby javiis » Fri Jul 26, 2013 10:05 am

also, it seems one can not configure Virtual Lab settings, like Network
javiis
Novice
 
Posts: 4
Liked: never
Joined: Fri Jul 26, 2013 7:38 am

Re: Config Backup, Application Group Settings, Dialog Boxes

Veeam Logoby v.Eremin » Fri 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.
v.Eremin
Veeam Software
 
Posts: 13266
Liked: 968 times
Joined: Fri Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin

Re: Config Backup, Application Group Settings, Dialog Boxes

Veeam Logoby javiis » Fri 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
javiis
Novice
 
Posts: 4
Liked: never
Joined: Fri Jul 26, 2013 7:38 am

Re: Config Backup, Application Group Settings, Dialog Boxes

Veeam Logoby ThomasMc » Sat 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
ThomasMc
Expert
 
Posts: 293
Liked: 17 times
Joined: Wed Apr 13, 2011 12:45 pm
Full Name: Thomas McConnell

Re: Config Backup, Application Group Settings, Dialog Boxes

Veeam Logoby v.Eremin » Mon 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.
v.Eremin
Veeam Software
 
Posts: 13266
Liked: 968 times
Joined: Fri Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin

Re: Config Backup, Application Group Settings, Dialog Boxes

Veeam Logoby javiis » Mon 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?
javiis
Novice
 
Posts: 4
Liked: never
Joined: Fri Jul 26, 2013 7:38 am

Re: Config Backup, Application Group Settings, Dialog Boxes

Veeam Logoby v.Eremin » Mon 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.
v.Eremin
Veeam Software
 
Posts: 13266
Liked: 968 times
Joined: Fri Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin

Re: Config Backup, Application Group Settings, Dialog Boxes

Veeam Logoby StefanSpecht » Mon 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...
StefanSpecht
Influencer
 
Posts: 16
Liked: never
Joined: Tue Aug 17, 2010 12:21 pm
Full Name: Stefan Specht

Re: Config Backup, Application Group Settings, Dialog Boxes

Veeam Logoby v.Eremin » Mon 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.
v.Eremin
Veeam Software
 
Posts: 13266
Liked: 968 times
Joined: Fri Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin

Re: Config Backup, Application Group Settings, Dialog Boxes

Veeam Logoby Hans.Leysen » Thu 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
Hans.Leysen
Service Provider
 
Posts: 1
Liked: 1 time
Joined: Mon Jun 15, 2015 8:40 am
Full Name: Hans Leysen

Re: Config Backup, Application Group Settings, Dialog Boxes

Veeam Logoby v.Eremin » Mon 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.
v.Eremin
Veeam Software
 
Posts: 13266
Liked: 968 times
Joined: Fri Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin

[MERGED] create advanced virtual labs with powershel

Veeam Logoby cmerker » Fri 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
cmerker
Lurker
 
Posts: 1
Liked: never
Joined: Fri Feb 18, 2011 8:04 am
Full Name: cm

Re: Config Backup, Application Group Settings, Dialog Boxes

Veeam Logoby TheMonk » Thu 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?
TheMonk
Influencer
 
Posts: 17
Liked: never
Joined: Wed Jun 17, 2015 3:03 pm
Full Name: Chris Armitage

Re: Config Backup, Application Group Settings, Dialog Boxes

Veeam Logoby v.Eremin » Thu 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.
v.Eremin
Veeam Software
 
Posts: 13266
Liked: 968 times
Joined: Fri Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin


Return to PowerShell



Who is online

Users browsing this forum: No registered users and 5 guests