mbomb67
Contributor
Contributor

How to change Archive Days of a VM/Deployment

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?

0 Kudos
2 Replies
parmarr
VMware Employee
VMware Employee

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.

Sincerely, Rahul Parmar VMware Support Moderator
0 Kudos
raptorirl
Enthusiast
Enthusiast

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.

0 Kudos