diff --git a/CHANGELOG.md b/CHANGELOG.md index 2ca09d72d2..a5a5112d19 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -14,6 +14,9 @@ * DEPENDENCIES * Updated MicrosoftTeams to version 5.6.0. FIXES [#3671](https://github.com/microsoft/Microsoft365DSC/issues/3671) +* MISC + * M365DSCUtil: Fix problem naming similar resources + FIXES [#3700](https://github.com/microsoft/Microsoft365DSC/issues/3700) # 1.23.913.2 diff --git a/Modules/Microsoft365DSC/Modules/M365DSCUtil.psm1 b/Modules/Microsoft365DSC/Modules/M365DSCUtil.psm1 index 2e5e8b653f..aa55e9021c 100644 --- a/Modules/Microsoft365DSC/Modules/M365DSCUtil.psm1 +++ b/Modules/Microsoft365DSC/Modules/M365DSCUtil.psm1 @@ -3301,7 +3301,7 @@ function Get-M365DSCExportContentForResource $i++ } $instanceName = $tempName - $Global:M365DSCExportedResourceInstancesNames += $tempName + [string[]]$Global:M365DSCExportedResourceInstancesNames += $tempName $content = [System.Text.StringBuilder]::New() [void]$content.Append(" $ResourceName `"$instanceName`"`r`n")