Repository navigation
fix(intune): name the Trellix connector in MT.1098 - #2753
Conversation
The ID table had 4873197-ffec-4dfc-9816-db65f34c7cb9, with seven hex characters in its first block, so a Trellix connector was shown by its raw ID. A Trellix Mobile Security connector created in the Intune admin center gets 74873197-ffec-4dfc-9816-db65f34c7cb9.
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
Up to standards ✅🟢 Issues
|
merill
left a comment
There was a problem hiding this comment.
Perfect. Thanks a lot @julien-ly!
📑 Description
MT.1098 maps Mobile Threat Defense connector IDs to partner names. The Trellix Mobile Security entry was
4873197-ffec-4dfc-9816-db65f34c7cb9, with seven hex characters in its first block, so it never matched and a Trellix connector was shown by its raw ID. Microsoft365DSC carries the same value.To get the real IDs, I created the Trellix Mobile Security and Windows Security Center connectors in the Intune admin center, with no platform toggle, and read them back from
beta/deviceManagement/mobileThreatDefenseConnectors:74873197-ffec-4dfc-9816-db65f34c7cb9c2b688fe-48c0-464b-a89c-67041aa8fcb2, the value already in the table (Microsoft365DSC hase6f777f8-e4c2-4a5b-be01-50b5c124bc7f)Both came back as
notSetUpwith a0001-01-01heartbeat.This change restores the missing leading
7. It follows up on my comment on the ID table in #2736.Tests
powershell/tests/functions/Test-MtMobileThreatDefenseConnectors.Tests.ps1: new case, a connector with the Trellix ID is named "Trellix Mobile Security" in the report and its ID isn't shown.FileEncoding,PSScriptAnalyzer,Help,RepositoryLayout,NativeTest*,MaesterTestTagsandLegacyIds, and./build/Build-MaesterModule.ps1pass. With main'sTest.MT.1098.ps1, the new case fails.✅ Checks
/powershell/tests/pester.ps1locally.ℹ️ Additional Information
Bug fix: only the connector name in the report changes; the verdict logic is untouched.
Summary by CodeRabbit