Skip to content

Commit 61339a7

Browse files
Merge pull request #6766 from NikCharlebois/Fix-EXOPlace
Fix EXOPlace
2 parents c1b1036 + fc8e560 commit 61339a7

File tree

3 files changed

+13
-3
lines changed

3 files changed

+13
-3
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
# Change log for Microsoft365DSC
22

3+
# UNRELEASED
4+
5+
* EXOPlace
6+
* Fixes an issue with the export where it was trying to export RoomList.
7+
38
# 1.25.1203.2
9+
410
* DEPENDENCIES
511
* Updated MSCloudLoginAssistant to version 1.1.56.
612

Modules/Microsoft365DSC/DSCResources/MSFT_EXOPlace/MSFT_EXOPlace.psm1

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -607,7 +607,8 @@ function Export-TargetResource
607607
#endregion
608608
try
609609
{
610-
[array]$places = Get-Place -ResultSize 'Unlimited' -ErrorAction Stop
610+
[array]$places = Get-Place -ResultSize 'Unlimited' -ErrorAction Stop | `
611+
Where-Object -FilterScript { $_.PlaceType -ne 'RoomList'}
611612
$dscContent = ''
612613

613614
if ($places.Length -eq 0)

Modules/Microsoft365DSC/Modules/M365DSCReverse.psm1

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -197,8 +197,11 @@ function Start-M365DSCConfigurationExtract
197197
$ComponentsToSkip += $ExcludeComponents
198198
}
199199

200-
$resourcesInBothIncludeAndExclude = Compare-Object -ReferenceObject $Components `
201-
-DifferenceObject $ComponentsToSkip -ExcludeDifferent -IncludeEqual
200+
if ($null -ne $Components)
201+
{
202+
$resourcesInBothIncludeAndExclude = Compare-Object -ReferenceObject $Components `
203+
-DifferenceObject $ComponentsToSkip -ExcludeDifferent -IncludeEqual
204+
}
202205
if ($resourcesInBothIncludeAndExclude.Count -gt 0)
203206
{
204207
foreach ($resource in $resourcesInBothIncludeAndExclude)

0 commit comments

Comments
 (0)