Quantcast
Channel: VMware Communities : All Content - vRealize Automation Tools
Viewing all articles
Browse latest Browse all 9859

Simple vRO workflow to change AD description not working in multiple domain scenario

$
0
0

Hi,

 

Running vRA v6.2.3 and vRO v6.03. The AD plugin (v2.03) is configured with three Active Directory in the same forest, for example corp.local, dev.corp.local and pre.corp.local. All three are registered with the AD plugin and can be browsed from vRO AD Plugin.

 

I have an 'AD description' vRO workflow which updates the virtual machines description in AD. This works fine for corp.local but when attempted with systems from the other domains it fails with a 'TypeError: Cannot call method "getAttribute" of null'

 

The relevant IN parameters are the description, the computers AD description vCACVm (vCAC:VirtualMachine) and computerAD (AD:ComputerAD).

 

The code as follows...

 

computerAD=ActiveDirectory.getComputerAD(vCACVm.virtualMachineName);

System.log("Old computer account description is :"+computerAD.getAttribute("description"));

System.log("Setting new description as :"+description);

computerAD.setAttribute("description",description);

 

I can't figure out what I'm missing?

 

Cheers


Viewing all articles
Browse latest Browse all 9859

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>