VMware Cloud Community
TomHEMC
Contributor
Contributor

Using requestCatalogItemWithProvisioningReqeust; Can't change the size of disk

Hello,

I'm requesting a catalog item using the example in the Request a catalog item with provisioning request which builds a provisioning requests and then modifies the JSON to override values. The example shows setting the number of cpus, which works fine for me, as does setting the memory size. What doesn't work for me is setting the disk size. I'm using these statements

json[CatalogItem.name].data.cpu = 2;

json[CatalogItem.name].data.memory = 8192;

json[CatalogItem.name].data.disks[0].data.capacity = 110;

json[CatalogItem.name].data.description = machineDescription;

The resulting JSON seems correct and I get no errors on deployment but the disk size stays at the default 100 GB of the blueprint. I can change cpu and memory values and they change accordingly but I can't change the disk size.

Any ideas?

Tags (1)
0 Kudos
1 Reply
drummoau
Enthusiast
Enthusiast

You can't change the size of the root volume, you would need to do this after the machine has been provisioned.

0 Kudos