Skip to content

Backup and document a Microsoft Intune tenant with GitHub workflows or Azure Pipelines

License

Notifications You must be signed in to change notification settings

aaronparker/intune-backup-template

Repository files navigation

Automated Microsoft Intune backup and as-built

A template repository that you can clone to enable a Microsoft Intune tenant backup and as-built report using IntuneCD and md-to-pdf.

To learn how to use this repository, see these articles:

Example report

The generated as-built documentation will look something like:

As-built documentation screenshot

GitHub

After creating a new repository in GitHub based on this template, you'll need to enable the Actions to run via the repository settings, and add the secrets required by the workflows.

This template repository includes the following workflows:

  • intune-backup.yml - performs the export from the Intune tenant to create a backup, and generates a markdown version of the as-built document, and tags the release
  • intune-release.yml - generates PDF and HTML versions of the markdown document, creates a release, and adds the documents to the release as assets
  • remove-releases.yml - prunes the release assets to keep the last 60 releases

Azure DevOps

Clone this repository into GitHub or Azure DevOps, then import into a project and create a pipeline:

  • intune-backup.yml - performs the export from the Intune tenant to create a backup, and generates a markdown version of the as-built document, and tags the release, generates PDF and HTML versions of the markdown document, creates a release, and adds the documents to the release as assets