You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When specifying an AADGroup resource without specifying members and owners, existing members are retained but owners are removed for groups that already exist.
For members a check is done on the $PSBoundParameters
if ($MembershipRuleProcessingState -ne 'On' -and $PSBoundParameters.ContainsKey('Members'))
Description of the issue
When specifying an AADGroup resource without specifying members and owners, existing members are retained but owners are removed for groups that already exist.
For members a check is done on the $PSBoundParameters
if ($MembershipRuleProcessingState -ne 'On' -and $PSBoundParameters.ContainsKey('Members'))
Microsoft365DSC/Modules/Microsoft365DSC/DSCResources/MSFT_AADGroup/MSFT_AADGroup.psm1
Lines 665 to 670 in bc58574
For owners this check is missing on line 620:
Microsoft365DSC/Modules/Microsoft365DSC/DSCResources/MSFT_AADGroup/MSFT_AADGroup.psm1
Lines 620 to 623 in bc58574
I would expect
if ($PSBoundParameters.ContainsKey('Owners'))
just below line 621
Microsoft 365 DSC Version
1.24.228.1
Which workloads are affected
Azure Active Directory
The DSC configuration
Verbose logs showing the problem
No response
Environment Information + PowerShell Version
No response
The text was updated successfully, but these errors were encountered: