Error: one of windows_options or windows_sysprep_text must exist in VM customization options for Windows operating systems
with module.example-server-linuxvm.vsphere_virtual_machine.vm[1],
on .terraform/modules/example-server-linuxvm/main.tf line 79, in resource "vsphere_virtual_machine" "vm":
79: resource "vsphere_virtual_machine" "vm" {
In my main.tf, I have a code block as follows:
# Deploy 2 linux VMs
module "example-server-linuxvm" {
source = "Terraform-VMWare-Modules/vm/vsphere"
version = "3.5.0"
vmtemp = "Ubuntu 22.04 LTS"
instances = 2
vmname = "example-server-linux"
vmrp = ""
network = {
"VLAN136" = ["", ""] # To use DHCP create Empty list ["",""]; You can also use a CIDR annotation;
}
vmgateway = "172.22.136.1"
dc = ""
datastore = ""
}
Steps tried:
- Adding a "is_windows_image = false" boolean in the module
- Also tried adding "is_windows_image = false" boolean in my variables.tf file, but same error.