Create template.json with mandatory builder parameters.
Include provisioners as shown below
execute packer validate template.json. This is successful
execute packer build template.json
Expected Result:
Build should get successful and the build artifacts should get created.
Actual Result:
Executin packer build template.json mounts a new vm in hyper-v, installs the OS, Enables the guest services, fetches the ip, executes inline provisioning commands.
Prompts for a message to execute external .ps1 “Do you want to run ‘C:...\probe.ps1’? With option [Do not run]D, [Run Once]R, [Suspend]S [?]Help (default is “D”): “
For any input D/R/S, the execution stops and doesn’t show any message.
Repo Steps:
Expected Result:
Actual Result: