New Features
- A new argument for retrieving audit data and creating commits based on the user UPN and action has been added. By just including `--audit` when running a backup, IntuneCD will check the Intune audit log for who made the change, set the UPN as the git user and commit the change in that users name. Additionally, if you want to get audit data further back than the default 24h, an env key can be set to the number of days you'd like to grab, `AUDIT_DAYS_BACK`.
Payloads that supports audit checks are:
- Apple Push Notification
- App Configuration
- Apple Enrolment Profiles
- Autopilot profiles
- Applications
- App Protection
- Filters
- Compliance policies
- Settings Catalog
- Custom Attributes
- Device Categories
- Device Management Settings
- Enrolment Configurations
- Custom ADMX template profiles
- Managed Google Play
- Management Intents
- Partner Device Management
- Configuration Profiles
- Notification templates
- Powershell Scripts
- Proactive Remediation
- Remote Assistance Partner
- Roles
- Scope Tags
- Shell Scripts
- VPP tokens
- Windows Driver Updates
- Windows Feature Updates
- Windows Quality Updates
- Example commit message:
<img width="755" alt="icd_audit" src="https://github.com/almenscorner/IntuneCD/assets/78877636/26a96ec2-906d-4508-a9dd-45f627df1f3f">
- Scope Tags is now backed up with the name instead of ID and compared using the name when updating minimising the risk of conflicts between tenants.
- Backup, update and remove custom compliance scripts for Linux and Windows
- Backup, update and remove compliance polices for Linux
Fixes
- Updates of Conditional Access and Roles failed in some cases due to keys that should be removed before performing an update.
- Creating Scope Tags failed due to incorrect response code configured.
Other updates
- Updated unit tests for better coverage.
Notes
Be aware that this update will cause commits in your repo as the scope tags on payloads will change from the ID to the name instead.
If you are planning to use `--audit` and do not want that the last user from the audit log is committing changed to documentation and other files not included in the audit run, make sure to configure your git user and email _after_ IntuneCD has run the backup. Also remove `--global` from the `git config` to make sure it's set locally for the repo.
**Full Changelog**: https://github.com/almenscorner/IntuneCD/compare/v2.1.2...v2.2.0