Drift detection (CLI)¶
Intune Commander includes CLI commands for file-based drift detection workflows:
ic export --output ./baseline --normalize
ic diff \
--baseline ./baseline \
--current ./current \
--format json \
--output drift-report.json \
--min-severity medium \
--fail-on-drift
ic alert teams --webhook "$TEAMS_WEBHOOK" --report drift-report.json
Commands¶
ic export --normalizenormalizes exported JSON in the target folder (volatile fields removed, keys/arrays sorted).ic diffcompares two export folders and produces a drift report (json, text, or markdown).ic alertsupportsteams,slack,github, andemailproviders.