Admin-first: always run orchestrated capture when adding policies to a backup set so backups reflect current Intune state. Still avoids redundant PolicyVersion growth via orchestrator snapshot-hash reuse. Adds feature tests and updates spec/plan/tasks.
783 B
783 B
Plan: Backup Version Reuse (016)
Branch: 016-backup-version-reuse
Date: 2026-01-02
Input: spec.md
Goal
Reduce unnecessary PolicyVersion creation when policies are added to backup sets by reusing an existing suitable latest version where safe.
Approach
- Always capture from Intune when a policy is added to a backup set (admin expectation: "backup = current state").
- Rely on
PolicyCaptureOrchestratorsnapshot-hash reuse to avoid redundantPolicyVersioncreation when nothing changed. - Still respect capture options (assignments / scope tags) via orchestrator backfill behavior.
- Add tests for both reuse and capture paths.
Out of scope
- UI toggles/config flags unless required.
- Cross-policy dedup or historical compaction.