blog for Ubuntu20: https://fabianlee.org/2021/08/16/terraform-creating-an-ubuntu-focal-template-and-then-guest-vm-in-vcenter/
blog for Ubuntu22: https://fabianlee.org/2022/10/12/terraform-creating-an-ubuntu-22-template-and-then-guest-vm-in-vcenter/
Blog describes how to create vCenter template for Ubuntu, then run terraform to create vCenter VM using template.