Quantcast
Channel: VMware Communities : Unanswered Discussions - vRealize Automation Tools
Viewing all articles
Browse latest Browse all 6792

How to change Archive Days of a VM/Deployment

$
0
0

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?


Viewing all articles
Browse latest Browse all 6792

Trending Articles