In VMware Aria Automation 8.x, the snapshotLimit property defines the maximum number of snapshots allowed for a deployed virtual machine. Once a deployment is created, snapshotLimit becomes a read-only property, preventing modification via API or UI.
This article provides a workaround for increasing snapshotLimit post-deployment when the limit needs to be raised.
VMware Aria Automation 8.x
vracli dev psql provisioning-dbUPDATE compute_state SET custom_properties = jsonb_set(custom_properties, '{snapshotLimit}', '"2"') WHERE custom_properties->>'snapshotLimit' IS NOT NULL AND name = 'Cloud_vSphere_Machine_1-mcm849-289474512219';
SELECT name, custom_properties FROM compute_state WHERE name = 'Cloud_vSphere_Machine_1-mcm849-289474512219';