-
Notifications
You must be signed in to change notification settings - Fork 6
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
Vsphere Docs: No import sections are provided. #254
Comments
FYI: Import for VM looks like:
Fixed typo as per @JCBlouin comment below. |
Thanks @MitchellGerdisch. We have added this to our docs quality epic. |
Any progress on this? I want to bring our VMWare environment under Pulumi control but not being able to import existing resources is hampering that effort. |
Ah, I found the problem with the command @MitchellGerdisch posted - it needs to be: I figured that out by creating a test VM and looking at the resulting URN in Pulumi. |
@JCBlouin Sorry about the typo and thanks for providing the corrected version. |
Another thing is importing resources that require information about other resources. Like trying to import a Distributed Virtual Switch requires providing a datacenter
The ID for each resource is different too. Some take a UID, some a folder location. |
I suspect that this will be fixed by #597. I'll add needs-triage as a reminder to check after vsphere has been published with new docs. |
What happened?
Other providers include a
pulumi import
section for each resource.The vSphere docs are missing this.
It's not intuitively obvious what the resource type is (appears to be of the form
vsphere:index/ResourceType:resourcetype
and it's not clear what correct vsphere IDs look like.
So having this documentation would be very helpful.
Expected Behavior
Have
import
sections for he resources.Steps to reproduce
Go to the vsphere provider docs and pick a resource, e.g. https://www.pulumi.com/registry/packages/vsphere/api-docs/virtualmachine/
Look for an
import
section like seen else where (e.g. https://www.pulumi.com/registry/packages/aws/api-docs/iot/thing/#import).Output of
pulumi about
N/A
Additional context
No response
Contributing
Vote on this issue by adding a 👍 reaction.
To contribute a fix for this issue, leave a comment (and link to your pull request, if you've opened one already).
The text was updated successfully, but these errors were encountered: