-
Notifications
You must be signed in to change notification settings - Fork 211
Description
Describe the bug
#2961 describes removing assorted Get-MgBetaSecurityAuditLog* commands with a comment to use the methods listed here:
https://learn.microsoft.com/en-us/graph/api/resources/security-auditlogquery?view=graph-rest-beta
which is just standard http api documentation for the graph. I would expect that the powershell graph api would have full coverage for the auditLogQuery endpoint. As of now these commands do exist:
> get-command *-MgBetaSecurityAuditLog*
CommandType Name Version Source
----------- ---- ------- ------
Function New-MgBetaSecurityAuditLogQuery 2.25.0 Microsoft.Graph.Beta.Security
Function New-MgBetaSecurityAuditLogQueryRecord 2.25.0 Microsoft.Graph.Beta.Security
Function Remove-MgBetaSecurityAuditLog 2.25.0 Microsoft.Graph.Beta.Security
Function Remove-MgBetaSecurityAuditLogQuery 2.25.0 Microsoft.Graph.Beta.Security
Function Remove-MgBetaSecurityAuditLogQueryRecord 2.25.0 Microsoft.Graph.Beta.Security
Function Update-MgBetaSecurityAuditLog 2.25.0 Microsoft.Graph.Beta.Security
Function Update-MgBetaSecurityAuditLogQuery 2.25.0 Microsoft.Graph.Beta.Security
Function Update-MgBetaSecurityAuditLogQueryRecord 2.25.0 Microsoft.Graph.Beta.Security/
The Get-* commands are missing. Also the examples remain in the repo:
https://github.com/search?q=repo%3Amicrosoftgraph%2Fmsgraph-sdk-powershell+Get-MgBetaSecurityAuditLogQuery&type=code
Expected behavior
I would expect full fidelity with all the other commands i.e. New-xxx to create a query, Get-xxx to see the status of the inflight query jobs and Get-xxx to retrieve the actual records produced by the audit log query
How to reproduce
Install the latest beta.
Note that the Get-MgBetaSecurityAuditLog* commands are missing
SDK Version
2.25.0 beta
Latest version known to work for scenario above?
this was in a previous version
Known Workarounds
Invoke-MgGraphRequest?
Debug output
Click to expand log
```</details>
### Configuration
_No response_
### Other information
_No response_