# msendpointmgr/intuneappfactory architecture

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

- Interactive diagram: https://gitdiagram.com/msendpointmgr/intuneappfactory
- Repository: https://github.com/msendpointmgr/intuneappfactory

## Overview

IntuneAppFactory is a PowerShell-based Azure DevOps workflow for keeping onboarded applications current in Intune: detect versions, download installers, package them as Win32 apps, and publish them. The repository also includes example app definitions, reusable application and framework templates, and the App Deploy Toolkit runtime. The README describes the workflow at a high level, but the workflow scripts were not excerpted, so their internal calls and exact handoffs are not asserted.

Main entry points: [`Templates/Framework/Source/Deploy-Application.ps1`](https://github.com/msendpointmgr/intuneappfactory/blob/main/Templates/Framework/Source/Deploy-Application.ps1) (Framework deployment), [`Scripts/Test-AppList.ps1`](https://github.com/msendpointmgr/intuneappfactory/blob/main/Scripts/Test-AppList.ps1) (Version detection), [`Scripts/Save-Installer.ps1`](https://github.com/msendpointmgr/intuneappfactory/blob/main/Scripts/Save-Installer.ps1) (Installer download), [`Scripts/Prepare-AppPackageFolder.ps1`](https://github.com/msendpointmgr/intuneappfactory/blob/main/Scripts/Prepare-AppPackageFolder.ps1) (Package preparation)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_workflow["Packaging workflow"]
  node_detect["Version detection<br/>[Test-AppList.ps1]"]
  node_download["Installer download<br/>[Save-Installer.ps1]"]
  node_prepare["Package preparation"]
  node_package["Win32 packaging<br/>[New-Win32App.ps1]"]
  node_publish["Intune publishing"]
end

subgraph group_appdata["Apps and templates"]
  node_catalog["App catalog<br/>[appList.json]"]
  node_examples["Onboarded apps"]
  node_app_template["Application template"]
  node_detection_template["Detection template<br/>[Detection.ps1]"]
end

subgraph group_runtime["Deployment runtime"]
  node_framework_deploy["Framework deployment"]
  node_toolkit_main["Toolkit runtime"]
  node_toolkit_config["Toolkit configuration"]
end

node_pipeline(("Azure DevOps pipeline"))
node_intune["Microsoft Intune"]

node_pipeline -.->|"runs workflow"| node_detect
node_examples -.->|"onboards apps"| node_catalog
node_catalog -.->|"guides detection"| node_detect
node_detect -.->|"detects then downloads"| node_download
node_download -.->|"supplies installer"| node_prepare
node_prepare -.->|"prepares package"| node_package
node_package -.->|"creates Win32 app"| node_publish
node_publish -->|"publishes app"| node_intune
node_app_template -.->|"uses framework"| node_framework_deploy
node_detection_template -.->|"supports detection"| node_app_template
node_framework_deploy -.->|"uses toolkit"| node_toolkit_main
node_framework_deploy -.->|"uses configuration"| node_toolkit_config

click node_catalog "https://github.com/msendpointmgr/intuneappfactory/blob/main/appList.json"
click node_examples "https://github.com/msendpointmgr/intuneappfactory/tree/main/Apps"
click node_detect "https://github.com/msendpointmgr/intuneappfactory/blob/main/Scripts/Test-AppList.ps1"
click node_download "https://github.com/msendpointmgr/intuneappfactory/blob/main/Scripts/Save-Installer.ps1"
click node_prepare "https://github.com/msendpointmgr/intuneappfactory/blob/main/Scripts/Prepare-AppPackageFolder.ps1"
click node_package "https://github.com/msendpointmgr/intuneappfactory/blob/main/Scripts/New-Win32App.ps1"
click node_publish "https://github.com/msendpointmgr/intuneappfactory/blob/main/Scripts/New-AppAssignment.ps1"
click node_app_template "https://github.com/msendpointmgr/intuneappfactory/blob/main/Templates/Application/Deploy-Application.ps1"
click node_detection_template "https://github.com/msendpointmgr/intuneappfactory/blob/main/Templates/Application/Detection.ps1"
click node_framework_deploy "https://github.com/msendpointmgr/intuneappfactory/blob/main/Templates/Framework/Source/Deploy-Application.ps1"
click node_toolkit_main "https://github.com/msendpointmgr/intuneappfactory/blob/main/Templates/Framework/Source/AppDeployToolkit/AppDeployToolkitMain.cs"
click node_toolkit_config "https://github.com/msendpointmgr/intuneappfactory/blob/main/Templates/Framework/Source/AppDeployToolkit/AppDeployToolkitConfig.xml"

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_detect,node_download,node_prepare,node_package,node_publish toneBlue
class node_catalog,node_examples,node_app_template,node_detection_template toneAmber
class node_framework_deploy,node_toolkit_main,node_toolkit_config toneMint
class node_pipeline,node_intune toneIndigo
```

## Components

### Packaging workflow

- [Version detection](https://github.com/msendpointmgr/intuneappfactory/blob/main/Scripts/Test-AppList.ps1): `Scripts/Test-AppList.ps1`
- [Installer download](https://github.com/msendpointmgr/intuneappfactory/blob/main/Scripts/Save-Installer.ps1): `Scripts/Save-Installer.ps1`
- [Package preparation](https://github.com/msendpointmgr/intuneappfactory/blob/main/Scripts/Prepare-AppPackageFolder.ps1): `Scripts/Prepare-AppPackageFolder.ps1`
- [Win32 packaging](https://github.com/msendpointmgr/intuneappfactory/blob/main/Scripts/New-Win32App.ps1): `Scripts/New-Win32App.ps1`
- [Intune publishing](https://github.com/msendpointmgr/intuneappfactory/blob/main/Scripts/New-AppAssignment.ps1): `Scripts/New-AppAssignment.ps1`

### Apps and templates

- [App catalog](https://github.com/msendpointmgr/intuneappfactory/blob/main/appList.json): `appList.json`
- [Onboarded apps](https://github.com/msendpointmgr/intuneappfactory/tree/main/Apps): `Apps`
- [Application template](https://github.com/msendpointmgr/intuneappfactory/blob/main/Templates/Application/Deploy-Application.ps1): `Templates/Application/Deploy-Application.ps1`
- [Detection template](https://github.com/msendpointmgr/intuneappfactory/blob/main/Templates/Application/Detection.ps1): `Templates/Application/Detection.ps1`

### Deployment runtime

- [Framework deployment](https://github.com/msendpointmgr/intuneappfactory/blob/main/Templates/Framework/Source/Deploy-Application.ps1): `Templates/Framework/Source/Deploy-Application.ps1`
- [Toolkit runtime](https://github.com/msendpointmgr/intuneappfactory/blob/main/Templates/Framework/Source/AppDeployToolkit/AppDeployToolkitMain.cs): `Templates/Framework/Source/AppDeployToolkit/AppDeployToolkitMain.cs`
- [Toolkit configuration](https://github.com/msendpointmgr/intuneappfactory/blob/main/Templates/Framework/Source/AppDeployToolkit/AppDeployToolkitConfig.xml): `Templates/Framework/Source/AppDeployToolkit/AppDeployToolkitConfig.xml`

### Other components

- **Azure DevOps pipeline**
- **Microsoft Intune**

## Connections

- Azure DevOps pipeline → Version detection: runs workflow
- Onboarded apps → App catalog: onboards apps
- App catalog → Version detection: guides detection
- Version detection → Installer download: detects then downloads
- Installer download → Package preparation: supplies installer
- Package preparation → Win32 packaging: prepares package
- Win32 packaging → Intune publishing: creates Win32 app
- Intune publishing → Microsoft Intune: publishes app (evidence: `README.md`)
- Application template → Framework deployment: uses framework
- Detection template → Application template: supports detection
- Framework deployment → Toolkit runtime: uses toolkit
- Framework deployment → Toolkit configuration: uses configuration
