diff --git a/CHANGELOG.md b/CHANGELOG.md index 564e894bd8..06bc0841ca 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -55,6 +55,9 @@ Fix Update-DeviceConfigurationPolicyAssignment so that if the group cannot be found by its Id it tries to search it by display name FIXES [#4467](https://github.com/microsoft/Microsoft365DSC/issues/4467) + * M365DSCReport + Fix issue when asserting TeamsGroupPolicyAssignment configurations by + returning its both mandatory parameters in Get-M365DSCResourceKey * Fix broken links to integration tests in README.md # 1.24.313.1 diff --git a/Modules/Microsoft365DSC/Modules/M365DSCReport.psm1 b/Modules/Microsoft365DSC/Modules/M365DSCReport.psm1 index aae0be8993..c70fc07579 100644 --- a/Modules/Microsoft365DSC/Modules/M365DSCReport.psm1 +++ b/Modules/Microsoft365DSC/Modules/M365DSCReport.psm1 @@ -1256,6 +1256,10 @@ function Get-M365DSCResourceKey { return @('OrgWideAccount') } + elseif ($Resource.ResourceName -eq 'TeamsGroupPolicyAssignment') + { + return @('GroupDisplayName', 'PolicyType') + } elseif ($mandatoryParameters.count -eq 1) { # returning the only mandatory parameter name