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
Question: But if I need to import more than 1 vm? I need to manually\script set index for each import? Or terraform can somehow import multiple vms at once?
Community Guidelines
Terraform
v1.7.5 on linux_amd64
Terraform Provider
registry.terraform.io/hashicorp/vsphere v2.7.0
VMware vSphere
6.7.0 Update 3 (Build 16773714)
Description
I have a problem with importing existing vm's into my state. When I try to do
govc output:
Affected Resources or Data Sources
resource vsphere_virtual_machine
Terraform Configuration
My tf project structure:
main.tf: https://gist.github.com/Amonlol/8810fde6be99546c181004b53a11e127
variables.tf: https://gist.github.com/Amonlol/13147494384b3f407c0a6b0d94f8fdb0
Debug Output
https://gist.github.com/Amonlol/3938d6fa4d9f8608f2d03b0b6c405169
However importing an existing folder works fine:
https://gist.github.com/Amonlol/484ec07a41ccb87c1a6e0e3dec385549
Panic Output
No response
Expected Behavior
Terraform should import my existing vm into it's state
Actual Behavior
Error
Steps to Reproduce
Environment Details
No response
Screenshots
No response
References
No response
The text was updated successfully, but these errors were encountered: