Skip to content

Comments

Update Module to 5.1.0#94

Open
UMD-PRE wants to merge 8 commits intojseerden:masterfrom
UMD-PRE:master
Open

Update Module to 5.1.0#94
UMD-PRE wants to merge 8 commits intojseerden:masterfrom
UMD-PRE:master

Conversation

@UMD-PRE
Copy link

@UMD-PRE UMD-PRE commented Jan 7, 2026

[5.1.0] - 2025-12-05

  • Fixed Invoke-IntuneBackupPolicySet to handle API limitation where $expand is not supported on collection queries. Now queries each policy set individually with expand.
  • Fixed Invoke-IntuneRestoreDeviceEnrollmentConfiguration to use Beta API endpoint (required by Microsoft Graph).
  • Fixed Invoke-IntuneRestoreDeviceEnrollmentConfiguration priority conflict handling with automatic priority increment.
  • Fixed Invoke-IntuneRestoreDeviceEnrollmentConfiguration to correctly include deviceEnrollmentConfigurationType property.
  • Fixed Invoke-IntuneRestoreDeviceEnrollmentConfiguration to add [int] casting for priority values to prevent type conversion errors.
  • Fixed Invoke-IntuneRestoreNotificationTemplate to use two-step process: create template first, then add localized messages separately.
  • Fixed Invoke-IntuneRestoreNotificationTemplate to remove defaultLocale and description properties during creation (causes BadRequest errors).
  • Fixed Invoke-IntuneBackupConfigurationPolicyAssignment to use pagination so more than 25 assignments are returned.
  • Fixed Invoke-IntuneRestoreConditionalAccessPolicy and Invoke-IntuneRestoreNamedLocation to use Beta API and require Policy.ReadWrite.ConditionalAccess scope.
  • Fixed scope validation in Start-IntuneBackup and Start-IntuneRestoreConfig to include all 8 required scopes including Policy.ReadWrite.ConditionalAccess.
  • Added comprehensive verbose logging throughout restore functions for debugging.
  • Updated Start-IntuneBackup scope validation from 4 scopes to 8 scopes (added DeviceManagementScripts, Policy.Read.All, Policy.ReadWrite.ConditionalAccess).
  • Updated Start-IntuneRestoreConfig scope validation to match backup requirements.
  • Improved error handling to continue restore operations even when individual policy types fail.

[5.0.0] - 2025-12-01

  • Added function Invoke-IntuneBackupAssignmentFilter.
  • Added function Invoke-IntuneRestoreAssignmentFilter.
  • Added function Invoke-IntuneBackupRoleScopeTag.
  • Added function Invoke-IntuneRestoreRoleScopeTag.
  • Added function Invoke-IntuneBackupDeviceEnrollmentConfiguration.
  • Added function Invoke-IntuneRestoreDeviceEnrollmentConfiguration.
  • Added function Invoke-IntuneBackupNamedLocation.
  • Added function Invoke-IntuneRestoreNamedLocation.
  • Added function Invoke-IntuneBackupConditionalAccessPolicy.
  • Added function Invoke-IntuneRestoreConditionalAccessPolicy.
  • Added function Invoke-IntuneBackupWindowsFeatureUpdateProfile.
  • Added function Invoke-IntuneRestoreWindowsFeatureUpdateProfile.
  • Added function Invoke-IntuneBackupWindowsQualityUpdateProfile.
  • Added function Invoke-IntuneRestoreWindowsQualityUpdateProfile.
  • Added function Invoke-IntuneBackupWindowsDriverUpdateProfile.
  • Added function Invoke-IntuneRestoreWindowsDriverUpdateProfile.
  • Added function Invoke-IntuneBackupMobileAppConfiguration.
  • Added function Invoke-IntuneRestoreMobileAppConfiguration.
  • Added function Invoke-IntuneBackupTargetedManagedAppConfiguration.
  • Added function Invoke-IntuneRestoreTargetedManagedAppConfiguration.
  • Added function Invoke-IntuneBackupNotificationTemplate.
  • Added function Invoke-IntuneRestoreNotificationTemplate.
  • Added function Invoke-IntuneBackupIntuneBrandingProfile.
  • Added function Invoke-IntuneRestoreIntuneBrandingProfile.
  • Added function Invoke-IntuneBackupTermsAndConditions.
  • Added function Invoke-IntuneRestoreTermsAndConditions.
  • Added function Invoke-IntuneBackupRoleDefinition.
  • Added function Invoke-IntuneRestoreRoleDefinition.
  • Added function Invoke-IntuneBackupPolicySet.
  • Added function Invoke-IntuneRestorePolicySet.
  • Added function Invoke-IntuneBackupDeviceManagementIntentAssignment.
  • Embedded all new backup functions in the Start-IntuneBackup cmdlet.
  • Embedded all new restore functions in the Start-IntuneRestoreConfig cmdlet.
  • Updated Start-IntuneBackup and Start-IntuneRestoreConfig with try-catch error handling for all function calls.
  • Updated required permissions to include DeviceManagementRBAC.ReadWrite.All and Policy.Read.All.
  • Fixed issue where Graph API terminating errors would stop the entire backup/restore process.
  • Backup and restore operations now continue even if individual policy types fail due to permissions or API errors.

  - Added error handling with -ErrorAction Continue
  - Fixed scope validation case-sensitivity issue
  - Added null handling for Group Policy and App Protection Policies
  - Removed unnecessary EntitlementManagement scope
  - Added DeviceManagementScripts.ReadWrite.All for future compliance
  - Removed duplicate DeviceHealthScript calls
  ## Configuration Restore Fixes

  ### Policy Sets
  - Fixed Invoke-IntuneBackupPolicySet to handle API limitation where $expand is not supported on collection queries
  - Now queries each policy set individually with $expand parameter

  ### Device Enrollment Configurations
  - Changed to use Beta API endpoint (required by Microsoft Graph)
  - Fixed to include deviceEnrollmentConfigurationType property during restore
  - Implemented automatic priority conflict resolution with priority increment
  - Added [int] casting for priority values to prevent type conversion errors

  ### Notification Templates
  - Implemented two-step restore process: create template first, then add localized messages separately
  - Fixed property handling: removed defaultLocale and description during creation (causes BadRequest errors)
  - Properly handles comma-separated brandingOptions string format

  ### Conditional Access
  - Updated Invoke-IntuneRestoreConditionalAccessPolicy to use Beta API
  - Updated Invoke-IntuneRestoreNamedLocation to use Beta API
  - Added Policy.ReadWrite.ConditionalAccess scope requirement

  ## Scope Validation Updates
  - Updated Start-IntuneBackup scope validation from 4 to 8 scopes
  - Updated Start-IntuneRestoreConfig scope validation to match backup requirements
  - Added: DeviceManagementScripts.ReadWrite.All, Policy.Read.All, Policy.ReadWrite.ConditionalAccess

  ## Error Handling
  - Improved error handling to continue restore operations even when individual policy types fail
  - Added comprehensive verbose logging throughout restore functions for debugging

  ## Documentation
  - Updated CHANGELOG.md with version 5.1.0 changes
  - Updated README.md with complete permission requirements including Policy.ReadWrite.ConditionalAccess
  - Created CURRENTSTATUS.md with comprehensive implementation status for all 16 new policy types
  - Documented implementation nuances, API quirks, and next steps for assignment restore development

All configuration backup and restore functions are now fully functional. Assignment restore for 9 new policy types remains as the next phase of work.
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.

1 participant