You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Error applying plan:
1 error(s) occurred:
* vsphere_virtual_machine.test: Error converting TimeZone: strconv.ParseInt: parsing "New Zealand Standard Time": invalid syntax
Terraform does not automatically rollback in the face of errors.
Instead, your Terraform state file has been partially updated with
any resources that successfully completed. Please address the error
above and apply again to incrementally change your infrastructure.
Expected Behavior
Should have ended up with a windows VM with time_zone set to New Zealand time.
Actual Behavior
Created a VM with no network adapter. Apply finished with the error above and terraform state didn't register that it created the VM. Resulting in manual deletion of the VM.
I tried without the time_zone config then it defaults to "Etc/UTC" which also produces the same error/behaviour. terraform plan indicates that it will create the same VM again "Plan: 1 to add, 0 to change, 0 to destroy."
Steps to Reproduce
terraform apply
This is my first time creating windows VM with terraform. Any help is much appreciated.
The text was updated successfully, but these errors were encountered:
thanks @billyfoss. I will try that.
It should detect windows install and set default time_zone to "085" instead of the linux format. That should prevent the broken state where terraform isn't aware that it has created a VM.
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.
If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.
ghost
locked and limited conversation to collaborators
Apr 4, 2020
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Hi,
I am having trouble creating a windows VM via vsphere. apply finishes with an error (see below).
Terraform Version
Terraform v0.7.0
Affected Resource(s)
Terraform Configuration Files
Error reported:
Expected Behavior
Should have ended up with a windows VM with time_zone set to New Zealand time.
Actual Behavior
Created a VM with no network adapter. Apply finished with the error above and terraform state didn't register that it created the VM. Resulting in manual deletion of the VM.
I tried without the time_zone config then it defaults to "Etc/UTC" which also produces the same error/behaviour. terraform plan indicates that it will create the same VM again "Plan: 1 to add, 0 to change, 0 to destroy."
Steps to Reproduce
terraform apply
This is my first time creating windows VM with terraform. Any help is much appreciated.
The text was updated successfully, but these errors were encountered: