The default behavior in vCAC when destroying a vSphere virtual machine is to delete it completely and permanently. In some environments and use cases, this may not be desired. Luckily, vCAC allows you to change this behavior. Instead of deleting them when they are destroyed, you can configure vCAC to power off virtual machines and move them to a folder called VRMDeleted in the vSphere Datacenter root (if this folder doesn’t exist, vCAC will create it on first use). This can be especially helpful if you are troubleshooting post-provisioning or guest customization problems, as you will be able to investigate inside the guest operating system after the failure.
This setting is changed on the vSphere Proxy Agent for each vCenter you would like to affect. To “turn off doDeletes”, perform the following steps:
- Login to the vSphere Proxy Agent system, open a command prompt, and change directories into the program folder for the appropriate vSphere Proxy Agent (%SystemDrive%\Program Files (x86)\DynamicOps\DCAC Agents\agentName by default).
- Run this command:
DynamicOps.Vrm.VRMencrypt.exe VRMAgent.exe.config set doDeletes false
- Restart the proxy agent service