With the current build 22458 Microsoft has started enforcing vTPM in virtual machines for Windows 11. Previous prerelease builds were fine in our infrastructure.
We already have updated our ESXi hosts and vCenter to 7.0.2, so we do use hardware version 19. We also have the DB backend in place and can manually add vTPM to an existing (and powered off) VM.
Is there a way to execute local code after creation of the VM but before it is powered on to execute some powerCLI like
New-VTpm -VM $VM
Or is there a way with configuration_parameters?
"configuration_parameters": [
{
"vtpm.present": true
}
],
does not throw an error, but also it does not add a vTPM to the VM.
Or do we really need to request adding this a a feature to the vsphere-iso builder?
best regards
Chris