Posts

Showing posts from 2019

vRealize Automation Datacenter Locations

Image
This post will walk through defining datacenter locations for VMware vRealize Automation 7.x. The primary two use cases for additional datacenter locations are to allow users to select a datacenter for service deployments, or for the administrator to specify a set datacenter when configuring a blueprint. We will cover both scenarios below. Adding Datacenter Locations Go  t o C:\Program Files(x86)\VMware\vCAC\Server\Website\XmlData, or replace with the installation directory as appropriate. Edit the  DataCenterLocations.xml  file, entering your datacenter names in the  CustomDataType  body, in place of London and Boston. Save and close the file, then restart the VMware vCloud Automation Center Service .   If you removed the IaaS from the load balancer remember to add it back in, you’ll then need to repeat the process for each instance. Once the change has been made on each IaaS node we can assign the locations to compute resourc...

VRO USING TELNET TO TEST PORT CONNECTVITIY

Image
vRealize Orchestrator has a TelnetClient scripting class that you can use to test port connectivity. This is far easier to use than dropping to a telnet client on a cli and test connectivity that way. Together with using the TelnetClient scripting class and a workflow that would loop and wait for the port to be open, fail gracefully or continue the workflow but notify that connectivity wasn’t available, the options the TelnetClient scripting class gives you are very handy. Here a screenshot of what the scripting class looks like in the API browser: The constructor looks like this: var telnet = new TelnetClient(string) The parameter is a string and takes a terminal type, which be default is VT100. Other terminal types would be ANSI, VT52, VT102, VTNT and so on. VVT stands for video terminal so mostly you can use the default value of VT100. Here is some simple code to test telnet connectivity: var port = 22; // number var target = ...

FINDING ALL ITEMS IN A BUSINESS GROUP

I recently needed to figure out how many items are deployed for a specific vRA Business Group. Items include virtual machines but also anything else a user can deploy. That seemed an easy task but finding all items in a business group turned out to be a bit harder than expected. So to save others the trouble of figuring out how this works I’ll share my code here. You can copy-paste the code below directly to a vRO action. var cafeHost = vCACCAFEEntitiesFinder.getHostForEntity(businessGroup); service = cafeHost.createCatalogClient().getCatalogConsumerResourceService(); var filter = new Array(); filter[0] = vCACCAFEFilterParam.substringOf( "organization/subTenant/id" , vCACCAFEFilterParam.string(businessGroup.id)); var query = vCACCAFEOdataQuery.query().addFilter(filter); var odataRequest = new vCACCAFEPageOdataRequest(1, 10000, query); resources = service.getResourcesList(odataRequest); return resources;