-
- Lurker
- Posts: 1
- Liked: never
- Joined: Mar 31, 2020 6:15 am
- Contact:
Veeam 10 - get-vbrjob obsolete ?
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?
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?
-
- Veeam Vanguard
- Posts: 282
- Liked: 113 times
- Joined: Apr 20, 2017 4:19 pm
- Full Name: Joe Houghes
- Location: Castle Rock, CO
- Contact:
Re: Veeam 10 - get-vbrjob obsolete ?
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 | @DenverVMUG & @DenverPSUG leader | International Speaker | Veeam Vanguard | vExpert (PRO) | Cisco Champion
-
- Service Provider
- Posts: 327
- Liked: 23 times
- Joined: Oct 09, 2012 2:30 pm
- Full Name: Maso
- Contact:
Re: Veeam 10 - get-vbrjob obsolete ?
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
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
-
- Veeam Software
- Posts: 2010
- Liked: 670 times
- Joined: Sep 25, 2019 10:32 am
- Full Name: Oleg Feoktistov
- Contact:
Re: Veeam 10 - get-vbrjob obsolete ?
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:
Thanks,
Oleg
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'}
Oleg
-
- Influencer
- Posts: 22
- Liked: 5 times
- Joined: Jan 09, 2018 8:12 am
- Full Name: Stefan
- Contact:
Re: Veeam 10 - get-vbrjob obsolete ?
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?
-
- Veeam Software
- Posts: 2010
- Liked: 670 times
- Joined: Sep 25, 2019 10:32 am
- Full Name: Oleg Feoktistov
- Contact:
Re: Veeam 10 - get-vbrjob obsolete ?
Hi Stefan,
Yes, in v11 GA we changed this warning message to the following one:
Thanks,
Oleg
Yes, in v11 GA we changed this warning message to the following one:
Please check and let me know if it is clearer now.WARNING: This cmdlet is no longer supported for computer backup jobs. Use "Get-VBRComputerBackupJob" instead.
Thanks,
Oleg
-
- Influencer
- Posts: 22
- Liked: 5 times
- Joined: Jan 09, 2018 8:12 am
- Full Name: Stefan
- Contact:
Re: Veeam 10 - get-vbrjob obsolete ?
*confirmed*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
Who is online
Users browsing this forum: No registered users and 17 guests