red-flower-3742005/19/2023, 7:30 PM
with the correct datacenter and cluster names, but I always get
pulumi import vsphere:index/computeCluster:ComputeCluster hampshire_cluster "/DATACENTER/CLUSTER"
My guess is that I'm missing some part of the path to the cluster... Does anybody have any advice on how to figure out how to format the <id> portion of the import command until the documentation is updated?
error: Preview failed: importing /DATACENTER/CLUSTER: error loading cluster: cluster '/DATACENTER/CLUSTER' not found
I figured this out by installing and configuring the vCenter PowerShell module, using Get-Cluster to find the cluster's parent ID, and then tracking that folder down. I think "host" must be a default/hidden folder because I don't see it in vSphere.
pulumi import vsphere:index/computeCluster:ComputeCluster hampshire_cluster "/DATACENTER/host/CLUSTER"