Anyone know if it is possible to change the Archive Days (and in turn the Destroy Date) tied to a Deployment and its' Resources (VMs) in vRA 7.3? We were able to do this in 6.2.X (for single VM Blueprints), using the following:
var modelName = 'ManagementModelEntities.svc';
var vCACEntity = vcacVm.getEntity();
var updateProperties = {ExpireDays: expireDays};
var links = {};
System.getModule("com.vmware.library.vcac").updateVCACEntity(vCACHost.id, modelName, "VirtualMachines", vCACEntity.keyString, updateProperties, links, null);
The code still runs, and the vCAC:VirtualMachine is updated as expected but the changes never show up on the Catalog Resource. I assume that this is because of the deployment element being added. Any ideas?
configure to run an event broker subscription which automatically sets lease days and archive days on the deployment / VMs based on the current date + the lease time required.
How would you do this? , and would this be able to change the archive days from 0 to say 7 instead?
(as my issue is that some of our VM's got built with an achive days of 0, and I need to change these to have an archive days of 7 )
Thanks in advance.