diff --git a/CHANGELOG.md b/CHANGELOG.md index 36b789c6df..2d714c0c00 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -15,6 +15,8 @@ FIXES [#2866](https://github.com/microsoft/Microsoft365DSC/issues/2866) * Added filter to Update-M365DSCAzureAdApplication to be more specific. FIXES [2565](https://github.com/microsoft/Microsoft365DSC/issues/2565) + * Fixed the JSON conversion depth for the New-M365DSCConfigurationToJSON cmdlet. + FIXES [#2891](https://github.com/microsoft/Microsoft365DSC/issues/2891) # 1.23.208.1 diff --git a/Modules/Microsoft365DSC/Modules/M365DSCReport.psm1 b/Modules/Microsoft365DSC/Modules/M365DSCReport.psm1 index f5bfd35d34..a3a8c6a37a 100644 --- a/Modules/Microsoft365DSC/Modules/M365DSCReport.psm1 +++ b/Modules/Microsoft365DSC/Modules/M365DSCReport.psm1 @@ -162,7 +162,7 @@ function New-M365DSCConfigurationToJSON $OutputPath ) - $jsonContent = $ParsedContent | ConvertTo-Json + $jsonContent = $ParsedContent | ConvertTo-Json -Depth 25 $jsonContent | Out-File -FilePath $OutputPath }