Skip to content

Fix Autopilot Deployment Profile variable bug and add missing device …#99

Merged
ugurkocde merged 1 commit intougurkocde:mainfrom
markorr321:fix/autopilot-deployment-profile-bug
Feb 18, 2026
Merged

Fix Autopilot Deployment Profile variable bug and add missing device …#99
ugurkocde merged 1 commit intougurkocde:mainfrom
markorr321:fix/autopilot-deployment-profile-bug

Conversation

@markorr321
Copy link
Contributor

Fix Autopilot Deployment Profile bugs in Group and Device checks

Summary

Fixes issues with Autopilot Deployment Profiles not displaying correctly in Group check (option 2) and Device check (option 3).

Changes

  1. Fixed variable name bug - Changed $profile to $policyProfile in multiple locations where Autopilot Deployment Profiles were being processed. The undefined $profile variable caused empty policy names/IDs in output and CSV exports.

  2. Added missing collections for Device check - Added DeploymentProfiles and ESPProfiles to the $relevantPolicies initialization in the device check flow, which was causing a crash with error: Item has already been added. Key in dictionary: 'installQualityUpdates'

  3. Added display and export sections - Added the missing output tables and CSV export entries for Autopilot Deployment Profiles and Enrollment Status Page Profiles in device check.

Fixes

  • Fixes empty Autopilot Deployment Profile entries in CSV export
  • Fixes crash when running device check (option 3)
  • Adds missing Autopilot and ESP sections to device check output

@ugurkocde ugurkocde merged commit 539b195 into ugurkocde:main Feb 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

Comments