I have packer creating a template, and pushing into a content library (VCF4.1, vSphere 7).
The firmware is set to efi-secure.
Downloading the OVF that results and opening in Notepad++ shows that this is correct in the template in the content library:
Deploying a VM from the template results in a VM which wont boot due to BIOS firmware being selected. Manually changing this back to EFI and Secure means the VM boots fine.
This is true for Windows 10, Windows Server 2016 and 2019.
What am I doing wrong?