diff --git a/CHANGELOG.md b/CHANGELOG.md index 5336717..14ac356 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,6 +10,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - New Test-IfModulesInBlobStorage that tests if a package exists in the Azure Blob Storage for the specified Microsoft365DSC version +### Fixed + +- Fixed issue in Convert-M365DSCExportToPowerShellDataFile where parameter in ConvertTo-Expression + has been removed + ## [0.2.8] - 2024-04-05 ### Changed diff --git a/source/Public/Convert-M365DSCExportToPowerShellDataFile.ps1 b/source/Public/Convert-M365DSCExportToPowerShellDataFile.ps1 index daa86cf..0affd97 100644 --- a/source/Public/Convert-M365DSCExportToPowerShellDataFile.ps1 +++ b/source/Public/Convert-M365DSCExportToPowerShellDataFile.ps1 @@ -158,7 +158,7 @@ function Convert-M365DSCExportToPowerShellDataFile # Check if data is available if ($Obj_Result.NonNodeData.$Workload) { - $Obj_Result | ConvertTo-Expression -Depth 20 -Expand 20 -IndentSize 4 | Out-File $Path_CompositeConfig -Force -Confirm:$false -Encoding ascii + $Obj_Result | ConvertTo-Expression -Depth 20 -Expand 20 | Out-File $Path_CompositeConfig -Force -Confirm:$false -Encoding ascii 'Result Composite config created: {0}' -f $Path_CompositeConfig | Write-Log } else