I am using code for all day 2 operations on a vm. Destroy/Power on etc. However, the scale-in function does not seem to work for me.
I i get the operations for the deployment like this .. but it does not execute a scale in. any ideas ?
var form = vCACCAFERequestsHelper.getRequestFormForResourceAction(operation);
System.log("Expected inputs:");
var fields = vCACCAFERequestsHelper.getFormKeys(form);
System.log(fields.length);
for each (var field in fields) {
System.log( " - " + field);
}
System.log("Creating scale in request...");
var request = vCACCAFERequestsHelper.requestResourceAction(operation, form);
System.log("Scale in request submitted.");
System.log("request.stateName: " + request.stateName);
System.log("request.executionStatus: " + request.executionStatus.value());