# sasstu/intune-backup architecture

> Architecture diagram of the GitHub repository sasstu/intune-backup, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-15). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/sasstu/intune-backup
- Repository: https://github.com/sasstu/intune-backup

## Overview

This repository automates daily Microsoft Intune configuration backups: GitHub Actions runs the backup workflow, which uses the documented IntuneManagement tool to export selected configuration. The setup script prepares Entra ID app registration credentials for the workflow, and the JSON file defines export settings. The tool implementation is not present in the supplied tree, and workflow source was not available, so links are limited to relationships stated in the README.

Main entry points: [`.github/workflows/Backup-And-Release.yml`](https://github.com/sasstu/intune-backup/blob/main/.github/workflows/Backup-And-Release.yml) (Scheduled backup), [`config/BulkExport.json`](https://github.com/sasstu/intune-backup/blob/main/config/BulkExport.json) (Export settings), [`setup/New-IntuneBackupAppRegistration.ps1`](https://github.com/sasstu/intune-backup/blob/main/setup/New-IntuneBackupAppRegistration.ps1) (App registration setup)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_automation["Backup automation"]
  node_backup_workflow["Scheduled backup"]
  node_intune_tool["IntuneManagement"]
end

subgraph group_export["Export configuration"]
  node_export_config["Export settings<br/>[BulkExport.json]"]
  node_backup_output["Exported backup"]
end

subgraph group_identity["Identity setup"]
  node_setup_script["App registration setup"]
end

node_github(("GitHub Actions"))
node_entra["Entra ID / Graph"]

node_github -->|"runs daily"| node_backup_workflow
node_backup_workflow -->|"uses tool"| node_intune_tool
node_intune_tool -->|"exports configuration"| node_backup_output
node_setup_script -->|"creates registration"| node_entra
node_export_config -->|"controls exports"| node_intune_tool

click node_backup_workflow "https://github.com/sasstu/intune-backup/blob/main/.github/workflows/Backup-And-Release.yml"
click node_export_config "https://github.com/sasstu/intune-backup/blob/main/config/BulkExport.json"
click node_setup_script "https://github.com/sasstu/intune-backup/blob/main/setup/New-IntuneBackupAppRegistration.ps1"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_backup_workflow,node_intune_tool toneBlue
class node_export_config,node_backup_output toneAmber
class node_setup_script toneMint
class node_github,node_entra toneIndigo
```

## Components

### Backup automation

- [Scheduled backup](https://github.com/sasstu/intune-backup/blob/main/.github/workflows/Backup-And-Release.yml): `.github/workflows/Backup-And-Release.yml`
- **IntuneManagement**

### Export configuration

- [Export settings](https://github.com/sasstu/intune-backup/blob/main/config/BulkExport.json): `config/BulkExport.json`
- **Exported backup**

### Identity setup

- [App registration setup](https://github.com/sasstu/intune-backup/blob/main/setup/New-IntuneBackupAppRegistration.ps1): `setup/New-IntuneBackupAppRegistration.ps1`

### Other components

- **GitHub Actions**
- **Entra ID / Graph**

## Connections

- GitHub Actions → Scheduled backup: runs daily (evidence: `README.md`)
- Scheduled backup → IntuneManagement: uses tool (evidence: `README.md`)
- IntuneManagement → Exported backup: exports configuration (evidence: `README.md`)
- App registration setup → Entra ID / Graph: creates registration (evidence: `README.md`)
- Export settings → IntuneManagement: controls exports (evidence: `README.md`)
