I have code that looks like this which used to work in v11 and now returns nothing. Unfortunately there is also no other unique attribute that allows for matching.
Why on earth would anyone at Veeam commit those breaking changes?
Code: Select all
function Get-XVBRBackupSession {
Param(
[Parameter(Mandatory=$true, Position=0)]
[string] $JobId
)
return Get-VBRBackupSession | `
Where-Object { $_.JobId -eq $JobId -And $_.State -eq "Stopped" } | `
Sort-Object EndTime;
};
$Sessions = Get-VBRBackupCopyJob | ForEach-Object { Get-XVBRBackupSession -JobId $_.Id };
Code: Select all
Get-VBRBackupSession | Where-Object { $_.JobName -Match "^$($JobName)(?:\\.*)?$" }