https://pulumi.com logo
#general
Title
# general
s

stale-minister-93676

04/15/2020, 1:26 PM
I'm trying to clone a VM in vSphere and add an extra disk to it. Everything works except for adding the disk using
disks: [{ label: 'backups', size: 100 }]
which gives me the following error
vsphere:index/virtualMachine:VirtualMachine resource 'NFS1P' has a problem: "disk.0.attach": conflicts with datastore_cluster_id
Ok looks like that's coming from the VirtualMachineArgs datastoreClusterId property....
So it seems like I can't clone a template, get its disks AND add a disk when creating a new VirtualMachine
Is there a way to add a disk to a vm outside of the constructor?
3 Views