PowerShell script exchange
Post Reply
skewthordon86
Lurker
Posts: 1
Liked: never
Joined: Mar 31, 2020 6:15 am
Contact:

Veeam 10 - get-vbrjob obsolete ?

Post by skewthordon86 »

hello,

i have a script that well run from Veeam V9.x to get status of nightly jobs.
The cmdlet "get-vbrjob" now (from V10) returns the warning: This cmdlet is obsolete and no longer supported. To get computer backup job use "Get-VBRComputerBackupJob" instead.

I saw nothing about that in the doc https://helpcenter.veeam.com/docs/backu ... ml?ver=100

So far it works, but for how much longer?
jhoughes
Veeam Vanguard
Posts: 279
Liked: 112 times
Joined: Apr 20, 2017 4:19 pm
Full Name: Joe Houghes
Location: Castle Rock, CO
Contact:

Re: Veeam 10 - get-vbrjob obsolete ?

Post by jhoughes »

It's an issue only when run against agent jobs, you can add '-ErrorAction SilentlyContinue' for now, it will be resolved in a future version.
Husband, Father, Solutions Architect, Geek Extraordinaire | @DenverVMUG, @AustinVMUG & @ATXPowerShell leader | VMware vExpert | Cisco Champion
masonit
Service Provider
Posts: 325
Liked: 23 times
Joined: Oct 09, 2012 2:30 pm
Full Name: Maso
Contact:

Re: Veeam 10 - get-vbrjob obsolete ?

Post by masonit »

Hi!

I struggle to understand why Get-VBRComputerBackupJob is implemented. As you say get-vbrjob says obsolete only on vbr servers with agent jobs. It becomes strange when you have both ex vmware jobs and agent jobs on same vbr. Then get-vbrjob now collects all jobs but Get-VBRComputerBackupJob only agent jobs. Will agent jobs not be collected with get-vbrjob in future updates?

\Maso
oleg.feoktistov
Veeam Software
Posts: 1918
Liked: 636 times
Joined: Sep 25, 2019 10:32 am
Full Name: Oleg Feoktistov
Contact:

Re: Veeam 10 - get-vbrjob obsolete ?

Post by oleg.feoktistov » 1 person likes this post

Hi Magnus,

That's unlikely at least in the foreseeable future as then we would break backward compatibility with numerous scripts our customers use regardless the VBR version.
If you want to prevent Get-VBRJob from displaying agent-related jobs, use property filtering:

Code: Select all

$jobs = Get-VBRJob -WarningAction SilentlyContinue | where {$_.BackupPlatform.Platform -ne 'ELinuxPhysical' -and $_.BackupPlatform.Platform -ne 'EEndPoint'}
Thanks,
Oleg
sdv
Influencer
Posts: 15
Liked: 2 times
Joined: Jan 09, 2018 8:12 am
Full Name: Stefan
Contact:

Re: Veeam 10 - get-vbrjob obsolete ?

Post by sdv »

jhoughes wrote: Mar 31, 2020 7:59 am It's an issue only when run against agent jobs, you can add '-ErrorAction SilentlyContinue' for now, it will be resolved in a future version.
The message it generates is quite confusing thinking the whole command will be obsolete in future versions, but it is only for agent jobs due to the parsing it does. You mentioned it will be resolved in a future version. The alert message is still there in V11.

Can you tell if this still on the radar to be fixed or atleast have the warningtext improved anytime soon?
oleg.feoktistov
Veeam Software
Posts: 1918
Liked: 636 times
Joined: Sep 25, 2019 10:32 am
Full Name: Oleg Feoktistov
Contact:

Re: Veeam 10 - get-vbrjob obsolete ?

Post by oleg.feoktistov » 1 person likes this post

Hi Stefan,

Yes, in v11 GA we changed this warning message to the following one:
WARNING: This cmdlet is no longer supported for computer backup jobs. Use "Get-VBRComputerBackupJob" instead.
Please check and let me know if it is clearer now.

Thanks,
Oleg
sdv
Influencer
Posts: 15
Liked: 2 times
Joined: Jan 09, 2018 8:12 am
Full Name: Stefan
Contact:

Re: Veeam 10 - get-vbrjob obsolete ?

Post by sdv »

oleg.feoktistov wrote: Jun 16, 2021 3:56 pm Hi Stefan,
Yes, in v11 GA we changed this warning message to the following one:
Please check and let me know if it is clearer now.
Thanks, Oleg
*confirmed*
Post Reply

Who is online

Users browsing this forum: No registered users and 10 guests