PowerShell script exchange
Post Reply
RubinCompServ
Service Provider
Posts: 326
Liked: 78 times
Joined: Mar 16, 2015 4:00 pm
Full Name: David Rubin
Contact:

BEM creates jobs differently than VBR

Post by RubinCompServ »

I've been noticing differences in jobs created in the Enterprise Manager Self-Service portal versus those created directly in VBR since 9.5, but now I have something that I have reproduced in multiple environments. When you use the "Get-VBRBackup" PowerShell cmdlet on a VBR, it will only return jobs that have been created directly within the VBR console; jobs that have been created via the Self-Service portal do not get returned. It doesn't matter whether the jobs are vCD jobs or vSphere jobs.
PetrM
Veeam Software
Posts: 3625
Liked: 608 times
Joined: Aug 28, 2013 8:23 am
Full Name: Petr Makarov
Location: Prague, Czech Republic
Contact:

Re: BEM creates jobs differently than VBR

Post by PetrM »

Hi David,

The mentioned cmdlet returns backups but not backup jobs, did you try "Get-VBRJob"?

Thanks!
RubinCompServ
Service Provider
Posts: 326
Liked: 78 times
Joined: Mar 16, 2015 4:00 pm
Full Name: David Rubin
Contact:

Re: BEM creates jobs differently than VBR

Post by RubinCompServ »

The documentation here says to use Get-VBRBackup, but Get-VBRJob seems to be more appropriate to my needs (and works properly). That doesn't negate the above oddity, though.
PetrM
Veeam Software
Posts: 3625
Liked: 608 times
Joined: Aug 28, 2013 8:23 am
Full Name: Petr Makarov
Location: Prague, Czech Republic
Contact:

Re: BEM creates jobs differently than VBR

Post by PetrM » 1 person likes this post

I think that wording on this page is not 100 % accurate and needs to be corrected. I'm glad to hear that another cmdlet works fine, but anyway we'll have a closer look at the discrepancy with "Get-VBRBackup", your feedback is highly appreciated!

Thanks!
RubinCompServ
Service Provider
Posts: 326
Liked: 78 times
Joined: Mar 16, 2015 4:00 pm
Full Name: David Rubin
Contact:

Re: BEM creates jobs differently than VBR

Post by RubinCompServ » 1 person likes this post

Thanks @PetrM! I'm not sure what Get-VBRBackup is supposed to do, but it doesn't seem to be doing it properly.
oleg.feoktistov
Veeam Software
Posts: 2010
Liked: 670 times
Joined: Sep 25, 2019 10:32 am
Full Name: Oleg Feoktistov
Contact:

Re: BEM creates jobs differently than VBR

Post by oleg.feoktistov »

Hi David,

Tested Get-VBRBackup in my lab, it does reflect backups in VBR created with self-service backup jobs.
Are you still experiencing the aforementioned oddity?

Thanks,
Oleg
RubinCompServ
Service Provider
Posts: 326
Liked: 78 times
Joined: Mar 16, 2015 4:00 pm
Full Name: David Rubin
Contact:

Re: BEM creates jobs differently than VBR

Post by RubinCompServ »

Hi Oleg,

Yes, it is still only showing me the jobs that I created directly within VBR, and none of the jobs created via the self-service portal.
oleg.feoktistov
Veeam Software
Posts: 2010
Liked: 670 times
Joined: Sep 25, 2019 10:32 am
Full Name: Oleg Feoktistov
Contact:

Re: BEM creates jobs differently than VBR

Post by oleg.feoktistov »

Just to be certain - do you already have backups made by these self-service backup portal jobs? Are they visible in VBR console? I just want to make sure we are talking about the same thing as if the jobs you created haven’t run yet, there will be nothing for Get-VBRBackup to show. Thanks!
RubinCompServ
Service Provider
Posts: 326
Liked: 78 times
Joined: Mar 16, 2015 4:00 pm
Full Name: David Rubin
Contact:

Re: BEM creates jobs differently than VBR

Post by RubinCompServ »

Yes, all of these jobs have been running for a couple of weeks now, have associated backup points, and are all visible in the VBR console.
oleg.feoktistov
Veeam Software
Posts: 2010
Liked: 670 times
Joined: Sep 25, 2019 10:32 am
Full Name: Oleg Feoktistov
Contact:

Re: BEM creates jobs differently than VBR

Post by oleg.feoktistov »

Doesn't look right. Are any of those backups reflected upon execution of this method?

Code: Select all

[Veeam.Backup.Core.CBackup]::GetAll()
It would also help to know your VBR version.

Thanks!
RubinCompServ
Service Provider
Posts: 326
Liked: 78 times
Joined: Mar 16, 2015 4:00 pm
Full Name: David Rubin
Contact:

Re: BEM creates jobs differently than VBR

Post by RubinCompServ »

[Veeam.Backup.Core.CBackup]::GetAll() returns a list of all my backups, and is a much longer list than I get from Get-VBRBackup.

I'm running VBR 11.0.0.837 P20210525
oleg.feoktistov
Veeam Software
Posts: 2010
Liked: 670 times
Joined: Sep 25, 2019 10:32 am
Full Name: Oleg Feoktistov
Contact:

Re: BEM creates jobs differently than VBR

Post by oleg.feoktistov » 1 person likes this post

Hi David,

Thanks, checked on the same build and also encountered this issue. Looks like this bug is specific to v11 and has been fixed in v11a.
The workaround for v11 would be to use GetAll() method I mentioned above.

Best regards,
Oleg
RubinCompServ
Service Provider
Posts: 326
Liked: 78 times
Joined: Mar 16, 2015 4:00 pm
Full Name: David Rubin
Contact:

Re: BEM creates jobs differently than VBR

Post by RubinCompServ »

Thanks Oleg! I'll add this to my list of "Reasons to patch".
Post Reply

Who is online

Users browsing this forum: No registered users and 7 guests