Welcome to my site. I started this site as an online archive for me and all things virtual. I kept getting requests for help around some of the more standard issues we all hit in dealing with Cloud automation, particularly around the VMware vCloud Stack so I decided to make my forum public...and here we are.

My name is Lee Friend and I'm based in London, UK. I am a Cloud orchestration specialist in the end to end management, automation and integration of virtualisation stacks covering all pieces of the puzzle from IPAM (InfoBlox / QIP / IP Control), DNS, AD, resiliency & DR (SRM automation), management system integration (including ServiceNow, BMC Remedy, ticketing systems) and on and on.

Having worked since the very early days of virtualisation, I specialise in the vRealize suite (vRO,vRA,vCD,vR OPs,vCloudClient,SRM,and on) with the aim of orchestrating wherever it's needed. I have helped out large financials, global exchanges and cloud service providers at an architecture level all the way through to workflow engineering.

Search found 18 matches

Go to advanced search

by leefriend
Thu Dec 01, 2016 9:06 am
Forum: Everything vCO / vRO
Topic: vCD query service
Replies: 0
Views: 2588

vCD query service

Find objects in vCD using the query service. Get all storage profiles for a given vCDHost: inputs: vCDHost var queryService = vCDHost.getQueryService(); var expression = new VclExpression(VclQueryProviderVdcStorageProfileField.NAME, "*", VclExpressionType.EQUALS); var filter = new VclQuery...
by leefriend
Thu Dec 01, 2016 8:47 am
Forum: Everything vCO / vRO
Topic: Get unique values from 2 arrays
Replies: 0
Views: 1780

Get unique values from 2 arrays

Compare two arrays and return a single sorted array of unique values

Code: Select all

var uniqueArray = array1.reduce(
    function(a,b){
        if(a.indexOf(b) < 0) a.push(b);
        return a;
    },[]);
return uniqueArray.sort();
by leefriend
Wed Nov 02, 2016 1:30 pm
Forum: Everything vCO / vRO
Topic: vRO and RegEx
Replies: 0
Views: 4094

vRO and RegEx

Using RegEx to find matching expressions: Check a string for match: var myString = "some text to find the expression"; var regexp = new RegExp("find", 'i'); // i means it is case-insensitive if(myString.match(regexp)){ return "found a match"; }else{ return "no matc...
by leefriend
Wed Oct 12, 2016 10:32 am
Forum: Everything vCO / vRO
Topic: Using JSON in vRO
Replies: 0
Views: 3503

Using JSON in vRO

JSON is lightweight, simple and quick and can fit well in some use cases in vRO for storing all sorts of information. I find it quickest to use one of the many online JSON editors (www.jsoneditoronline.org). These validate the format so we know we have a valid file. { "builds": { "win...
by leefriend
Fri Oct 07, 2016 11:32 am
Forum: Everything vCO / vRO
Topic: Get VC VM by name
Replies: 0
Views: 3079

Get VC VM by name

Find a VM by name. vms = new Array(); var sdkConnections = VcPlugin.allSdkConnections; for(var i in sdkConnections){ var host = sdkConnections[i]; var found = host.getAllVirtualMachines(null, "xpath:matches(name, '" + vmName + "')"); for(var j in found){ vms.push(found[j]); } }
by leefriend
Wed Aug 17, 2016 10:05 am
Forum: Everything vCO / vRO
Topic: Call a Microsoft SQL stored procedure fron vRO
Replies: 0
Views: 4223

Call a Microsoft SQL stored procedure fron vRO

SQL SP used for example: CREATE PROCEDURE sp_GetAuthorDetails @AuthorName varchar(250) AS BEGIN SET NOCOUNT ON; SELECT name [AuthorName], age [Age], city [City], books [Books] FROM Authors WHERE name = @AuthorName END GO And the workflow to call the SP: // input parameter(s) Input = name (string) v...
by leefriend
Mon Mar 21, 2016 2:18 pm
Forum: Everything vCO / vRO
Topic: Edit library worflows and actions
Replies: 0
Views: 4352

Edit library worflows and actions

Before we start, editing library workflows and actions should only be undertaken as a last resort as these may potentially get updated with later releases from the plug-in vendor. The preferred approach is to duplicate the workflow / action and reference the duplicate from your workflows. As such, w...
by leefriend
Fri Jan 08, 2016 6:41 pm
Forum: Other stuff
Topic: Postgres database ui
Replies: 0
Views: 5998

Postgres database ui

VMware postgres database UI...
https://<hostname>:8443/vpgdbem/

Simple.
by leefriend
Wed Dec 16, 2015 10:53 am
Forum: Everything vCO / vRO
Topic: Set configuration attribute value
Replies: 0
Views: 5333

Set configuration attribute value

Use to hold data in vRO configuration attributes. // Get the element Either set the configuration element as a workflow attribute OR var configurationElement; var elements = (Server.getConfigurationElementCategoryWithPath("<path to element>")).configurationElements; for(var i=0; i<elements...
by leefriend
Tue Dec 01, 2015 2:39 pm
Forum: Everything vCAC / vRA
Topic: vRA get vSphere VM from vCAC VM
Replies: 0
Views: 6325

vRA get vSphere VM from vCAC VM

Often the need arises to interact with a vRA VM through the vSphere layer. This code finds the vSphere VM from the vCAC VM object. Input parameters: - vCACVm type vCAC:VirtualMachine Output parameters: - vSphereVm type VC:VirtualMachine var sdkConnections = VcPlugin.allSdkConnections; for(var i in s...

Go to advanced search



cron