Open EmilienCourt opened 1 month ago
Hi, I am having the same issues. I tried using the following two methods, but both result in similar errors:
$apiUrl = "https://graph.microsoft.com/beta/security/auditLog/queries/$scanId/records"
$response = Invoke-MgGraphRequest -Method Get -Uri $apiUrl -ContentType 'application/json'
$response.value | ConvertTo-Json -Depth 100 | Out-File -FilePath $filePath -Append
And using the same method you are using: Get-MgBetaSecurityAuditLogQueryRecord -AuditLogQueryId $auditLogQueryId
Describe the bug
Hi,
Please note that this is the same issue as https://github.com/microsoftgraph/msgraph-sdk-powershell/issues/2677 (and https://github.com/microsoftgraph/msgraph-sdk-powershell/issues/2689), which was closed as completed due to author inactivity.
The bug arises when using Get-MgBetaSecurityAuditLogQueryRecord on a production tenant : some of the events in the Purview backend were apparently not ingested correctly, resulting in a bug, preventing the use of that cmdlet.
When this bug arises, it crashes the Purview Web console, the Graph API, the Powershell SDK, etc.
Expected behavior
-Skip
parameter, which could help in working around that bug, should be implementedHow to reproduce
SDK Version
2.20.0
Latest version known to work for scenario above?
None
Known Workarounds
None
Debug output
First example :
Second example :
Configuration
No response
Other information
No response