Hi jsobell,
There isn't a dedicated *Session cmdlet for EntraID, but we can fetch this with
Get-VBRSession and the -Type parameter. Just a side note, Get-VBRSession has become my go-to for session reporting as it's a lot faster than Get-VBRBackupSession typically and you can filter with -Type for type of session or pass a CJob object from Get-VBRJob on -Job parameter.
The downside to Get-VBRSession is they return a "lite" version of the session data (see below example). We can work around this and get a normal CBackupSession object from Get-VBRBackupSession as shown below. One of these two methods ought work for your reporting needs.
Example code:
Code: Select all
$entraSess = Get-VBRSession -Type EntraIdItemBackup
$entraSess[0]
Progress : 100
RunManually : False
Log : {Id: 25394583, Usn: 4096434276, Title: Job started at 17.06.2025 11:00:19, Cookie: , Description: ,
Time: 17.06.2025 11:00:25, StartTime: 17.06.2025 11:00:25, Status: Succeeded, Id: 25394584, Usn:
4096434279, Title: The tenant 5w5g0n has been added to processing, Cookie: , Description: , Time:
17.06.2025 11:00:26, StartTime: 17.06.2025 11:00:26, Status: Succeeded, Id: 25394586, Usn: 4096434588,
Title: Processing 5w5g0n, Cookie: 9094569c-592c-45df-8584-9d885e23ab2a, Description: , Time: 17.06.2025
11:02:59, StartTime: 17.06.2025 11:00:27, Status: Succeeded, Id: 25394622, Usn: 4096434596, Title: Job
finished at 17.06.2025 11:03:00, Cookie: , Description: , Time: 17.06.2025 11:03:00, StartTime:
17.06.2025 11:03:00, Status: Succeeded}
Name : EntraID-FK-5w5g0n
CreationTime : 17.06.2025 11:00:19
EndTime : 17.06.2025 11:03:00
JobId : cea57d0d-83c4-4c59-a8b8-3853ee781cd5
Result : Success
State : Stopped
Id : 0a8dfce2-d482-48a8-b2cc-93ec595b68b9
$fullEntraSess = Get-VBRBackupSession -Id $entraSess.id #passes Ids from $entraSess here as an array of Ids so we get full sessions for everything
$fullEntraSess[0]
Job Name State Start Time End Time Result
-------- ----- ---------- -------- ------
EntraID-FK-5w5g0n... Stopped 17.06.2025 11:00:19 17.06.2025 11:03:00 Success