I can’t create a deliberate failure in a Packer script using a Docker builder and a Powershell provisioner. All the provisioner contains is an inline “exit 1” call. I’m trying to get a simple example so I can understand how to get a more complex example to fail when the more complex Powershell calls fail.
Related topics
| Topic | Replies | Views | Activity | |
|---|---|---|---|---|
| Letting Packer fail during provision | 3 | 1626 | October 1, 2022 | |
| Packer file get Stuck during the execution of certain provisioning steps | 0 | 163 | February 19, 2025 | |
| PowerShell provisioner not fail on disconnect? | 1 | 549 | October 20, 2021 | |
| Azure-ARM Packer powershell provisioner doesn't work for me | 3 | 1192 | January 20, 2026 | |
| PowerShell Provisioning step had errors | 0 | 2243 | June 15, 2020 |