Skip to content

Graph API Audit Log Output #3220

@marbaugh

Description

@marbaugh

Describe the bug

In running the Invoke-MgGraphRequest that returns what is said to be a .json file.

I am attempting to load that json file into Powershell and get the following error.

$jsonContent = Get-Content -Path .\test.json -raw
$jsonContent | ConvertFrom-Json

ConvertFrom-Json: Conversion from JSON failed with error: Additional text encountered after finished reading JSON content: [. Path '', line 15161, position 0...

I believe the json file is some type of array but it is not formatted properly.

When will this be updated/resolved so the output can be used properly?

Expected behavior

The output should be a properly formatted JSON file.

How to reproduce

Invoke-MgGraphRequest with the output being json

SDK Version

No response

Latest version known to work for scenario above?

No response

Known Workarounds

No response

Debug output

Click to expand log ```
</details>


### Configuration

_No response_

### Other information

_No response_

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions