PowerShell script exchange
Post Reply
ksl28
Enthusiast
Posts: 60
Liked: 11 times
Joined: Sep 21, 2016 8:31 am
Full Name: Kristian Leth
Contact:

How to add VSS Guest Credentials by vSphere Tags

Post by ksl28 »

Hi,

Im trying to add a new tag to our Application-aware & Guest indexing settings, in all our Veeam jobs.
The idea is that our backup jobs are 100% tag based from VMware, and then based on tags, VSS and Guest indexing will be enabled.

Example - VM1:
Job tag: BackupJob#1
AAP Tag: Aap_Enabled
Guest Tag: Guest_Indexing_Enabled

For all our jobs, that backup tags defining the VM list to process, will be set to disabled in VSS and Guest file indexing.
If an VM is assigned the tag Aap_enabled, then AAP will then be enabled, and so on.

This is doable through the GUI, and ive managed to disable the VM tag from VSS and guest processing, but i cant seem to find a way to add the Aap_enabled & Guest_indexing_enabled tags.

Code: Select all

$AapTag = Get-Tag -Name "aap_enabled" -Category "Backup_aap_settings"
$AapEntity = Find-VBRViEntity -Name $AapTag.Name -Tags
Add-VBRViJobObject -Job $NewTagName -Entities $AapEntity
If i execute this code, the tag is added to the job & the VSS entiti list, but i only need it in the VSS entiti list.

The "best solution" ive came accross, is to remove the tag again

Code: Select all

Get-VBRJob -Name $NewTagName | Get-VBRJobObject -Name $AapEntity.name | Where-Object {$_.Type -ne "VssChild"} | Remove-VBRJobObject -Completely
But is this really the best way to do this, or have i missed something?
oleg.feoktistov
Veeam Software
Posts: 2010
Liked: 669 times
Joined: Sep 25, 2019 10:32 am
Full Name: Oleg Feoktistov
Contact:

Re: How to add VSS Guest Credentials by vSphere Tags

Post by oleg.feoktistov »

Hi,

I'm afraid that's not possible with current public api implementation in VBR module. .NET methods also don't implement such addition.
There is a possibility to add a Tag as a VssChild only if it has been added to a job previously as an include.
However, I noted this feature as the point to consider in the future product versions.

Best regards,
Oleg
ksl28
Enthusiast
Posts: 60
Liked: 11 times
Joined: Sep 21, 2016 8:31 am
Full Name: Kristian Leth
Contact:

Re: How to add VSS Guest Credentials by vSphere Tags

Post by ksl28 »

Hi Oleg,

That would be very much appreciated!
It seems that the VSS module, could also use an helping hand :) powershell-f26/vss-options-and-credenti ... 19952.html

We utilize all our VBR jobs with 3 tags.
The Include / Job tag itself
An "global" Guest indexing tag (backup_indexing_enabled)
An "global" VSS tag (backup_vss_enabled)

The Job tag itself is then set to disabled in both VSS and Guest indexing.
If we want to enable VSS or Guest file indexing, we simply add an tag in VMware, and then Veeam handles it from there.

We have managed to auto configure our VBR jobs through Powershell, and are using the link above, to configure the VSS tag.
But we are left with one manual task - to configure the Guest Indexing tag.

I hope this gives you an understanding, of how much we would appreciate, if we could get this option :)
oleg.feoktistov
Veeam Software
Posts: 2010
Liked: 669 times
Joined: Sep 25, 2019 10:32 am
Full Name: Oleg Feoktistov
Contact:

Re: How to add VSS Guest Credentials by vSphere Tags

Post by oleg.feoktistov »

Hi,

Yes, I do agree that these cmdlets need an upgrade. I elaborated on the reasons in this post.
But, in the end, it will likely be a completely new set of cmdlets with fixed api like Veeam Agent Cmdlets have.

Thanks,
Oleg
ksl28
Enthusiast
Posts: 60
Liked: 11 times
Joined: Sep 21, 2016 8:31 am
Full Name: Kristian Leth
Contact:

Re: How to add VSS Guest Credentials by vSphere Tags

Post by ksl28 »

Hi,

That would be much appreciated! :)
Post Reply

Who is online

Users browsing this forum: No registered users and 16 guests