Skip to content

Commit 7bf22d8

Browse files
Merge pull request #6464 from microsoft/Dev
Release 1.25.827.1
2 parents 939fba2 + 71da36a commit 7bf22d8

File tree

16 files changed

+639
-56
lines changed

16 files changed

+639
-56
lines changed

CHANGELOG.md

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

3+
# 1.25.827.1
4+
5+
* EXODistributionGroup
6+
* Fixed an error when removing distribution groups.
7+
FIXES [#6435](https://github.com/microsoft/Microsoft365DSC/issues/6435)
8+
* Fix regression with distribution group members where RecipientType is 'User'.
9+
FIXES [#6426](https://github.com/microsoft/Microsoft365DSC/issues/6426)
10+
* EXOIRMCOnfiguration
11+
* Fixes an export issue where the LicensingLocation parameter wasn't properly
12+
captured.
13+
* M365DSCGraphAPIRuleEvaluation
14+
* Initial release.
15+
* MISC
16+
* Modified the drift logging logic to include the MFT_ prefix
17+
in the resource name and add back the LCMState parameter.
18+
* DEPENDENCIES
19+
* Updated MicrosoftTeams to version 7.3.1.
20+
321
# 1.25.806.1
422

523
* AADApplication
24+
* Fixes an issue where the Get-TargetResource no longer returned
25+
values for AppRoles.
626
* Fixed an issue where not all properties were exported.
727
* AADAuthenticationMethodPolicyFido2
828
* Fixed an issue where the policy was not updated properly.

Modules/Microsoft365DSC/DSCResources/MSFT_EXODistributionGroup/MSFT_EXODistributionGroup.psm1

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,15 @@ function Get-TargetResource
280280
$distributionMembersValue = @()
281281
foreach ($member in $distributionGroupMembers)
282282
{
283-
$distributionMembersValue += $member.PrimarySmtpAddress
283+
if (-not [System.String]::IsNullOrEmpty($member.PrimarySmtpAddress))
284+
{
285+
$distributionMembersValue += $member.PrimarySmtpAddress
286+
}
287+
else
288+
{
289+
# For RecipientType 'User', PrimarySmtpAddress is unavailable, but WindowsLiveID is, and works with Add-DistributionGroupMember
290+
$distributionMembersValue += $member.WindowsLiveID
291+
}
284292
}
285293

286294
Write-Verbose -Message "Found existing Distribution Group {$Identity}."
@@ -692,7 +700,9 @@ function Set-TargetResource
692700
{
693701
Write-Verbose -Message "The Distribution Group {$Identity} exists but shouldn't. Removing it."
694702
# Use the group identity value retrieved from Get-TargetResource, in case we got the group using PrimarySmtpAddress
695-
Remove-DistributionGroup -Identity $currentDistributionGroup.Identity -Confirm:$false
703+
Remove-DistributionGroup -Identity $currentDistributionGroup.Identity `
704+
-BypassSecurityGroupManagerCheck `
705+
-Confirm:$false
696706
}
697707
# Update even if we just created the group. There are properties that can only be set with the set- cmdlet.
698708
if ($Ensure -eq 'Present')

Modules/Microsoft365DSC/DSCResources/MSFT_EXOIRMConfiguration/MSFT_EXOIRMConfiguration.psm1

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,13 @@ function Get-TargetResource
147147
{
148148
$RMSOnlineKeySharingLocationValue = $IRMConfiguration.RMSOnlineKeySharingLocation.ToString()
149149
}
150+
151+
$LicensingLocationValue = $null
152+
if ($IRMConfiguration.LicensingLocation)
153+
{
154+
$LicensingLocationValue = $IRMConfiguration.LicensingLocation.ToString()
155+
}
156+
150157
$result = @{
151158
IsSingleInstance = 'Yes'
152159
AutomaticServiceUpdateEnabled = $IRMConfiguration.AutomaticServiceUpdateEnabled
@@ -156,7 +163,7 @@ function Get-TargetResource
156163
EnablePdfEncryption = $IRMConfiguration.EnablePdfEncryption
157164
InternalLicensingEnabled = $IRMConfiguration.InternalLicensingEnabled
158165
JournalReportDecryptionEnabled = $IRMConfiguration.JournalReportDecryptionEnabled
159-
LicensingLocation = $IRMConfiguration.LicensingLocation
166+
LicensingLocation = $LicensingLocationValue
160167
RejectIfRecipientHasNoRights = $IRMConfiguration.RejectIfRecipientHasNoRights
161168
RMSOnlineKeySharingLocation = $RMSOnlineKeySharingLocationValue
162169
SearchEnabled = $IRMConfiguration.SearchEnabled

0 commit comments

Comments
 (0)