-
Notifications
You must be signed in to change notification settings - Fork 454
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Configuration for import target does not exist #2158
Comments
Hello, Amonlol! 🖐 Thank you for submitting an issue for this provider. The issue will now enter into the issue lifecycle. If you want to contribute to this project, please review the contributing guidelines and information on submitting pull requests. |
Terraform vsphere docs show importing as
But in my case I should set index for my vm as
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?
|
Hi @Amonlol 👋 , Could you please verify if this issue exists on vSphere 7.0 and later since vSphere 6.7 is no longer supported. Ryan Johnson |
No response from OP. |
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. |
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: