Deployment orchestrator
This page is a technical deep dive. It describes the internal Foundry Deploy execution pipeline for maintainers and advanced readers.
Foundry Deploy runs in WinPE after Foundry Connect completes successfully. Deployment execution is handled by ordered IDeploymentStep instances. The orchestrator sorts steps by IDeploymentStep.Order, verifies that the registered step names match the expected workflow, and executes each step against a shared runtime state.
Ordered steps
The deployment pipeline runs in this order:
- Gather deployment variables
- Initialize deployment workspace
- Validate target configuration
- Resolve cache strategy
- Prepare target disk layout
- Download operating system image
- Apply operating system image
- Configure target computer name and time zone through
Windows\Panther\unattend.xml - Configure recovery environment
- Download driver pack
- Extract driver pack
- Apply driver pack or stage deferred first-boot execution
- Download firmware update
- Apply firmware update
- Seal recovery partition
- Stage Autopilot configuration
- Finalize deployment and write logs
Runtime state
Each step reads and updates the deployment runtime state. Runtime state carries target partition paths, selected operating system metadata, driver-pack strategy, firmware update paths, Autopilot staging details, pre-OOBE script paths, completed steps, and final artifact locations.
Offline Windows staging
Foundry Deploy writes several artifacts into the applied Windows image before reboot:
Windows\Panther\unattend.xmlfor specialize-pass settings such as computer name and time zone.Windows\Setup\Scripts\SetupComplete.cmdfor post-WinPE first-boot execution.Windows\Provisioning\Autopilot\AutopilotConfigurationFile.jsonwhen offline Autopilot profile staging is enabled.Windows\Temp\Foundryfor deployment logs, summaries, staged packages, and pre-OOBE assets.
Failure behavior
If a step fails, orchestration stops, the failure is logged, and Foundry Deploy reports the failed step to the operator. Logs are rebound to the final Windows target location when the Windows partition is available.