Skip to content

Commit

Permalink
Fix enrollment platform restriction comparison during report creation
Browse files Browse the repository at this point in the history
  • Loading branch information
Fabien Tschanz authored and FabienTschanz committed Jan 15, 2024
1 parent d8e620a commit 71295a4
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Change log for Microsoft365DSC

# UNRELEASED

* M365DSCReport
* Fix nested change detection for CIMInstances
* Fix IntuneDeviceEnrolllmentPlatformRestriction comparison in report

# 1.24.110.1

* AADAdministrativeUnit
Expand Down
4 changes: 4 additions & 0 deletions Modules/Microsoft365DSC/Modules/M365DSCReport.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -1155,6 +1155,10 @@ function Get-M365DSCResourceKey
{
return @('Id')
}
if ($Resource.ResourceName -eq 'IntuneDeviceEnrollmentPlatformRestriction' -and $Resource.Keys.Where({ $_ -like "*Restriction"}))
{
return @('ResourceInstanceName')
}
if ($Resource.ResourceName -eq 'TeamsChannel' -and -not [System.String]::IsNullOrEmpty($Resource.TeamName))
{
# Teams Channel displaynames are not tenant-unique (e.g. "General" is almost in every team), but should be unique per team
Expand Down

0 comments on commit 71295a4

Please sign in to comment.