
Setting Maximum Limit to Add additional disks in vRA 8.x for User inputs.
Create a new vRO action like DiskLimits
// VMware vRealize Orchestrator action sample
//
// Limits for Additional Disks
//
// For vRO/VRA 8.0+
//
// Action Inputs:
// Gridv – Array/CompositeType – Gridv is Name of the Disk grid and CompositeType create custom inputs.
//
// Return type: strings – “Message”var count =5;
if(Gridv == null || Gridv == “”)
return null;
if(Gridv.length!= count)
return “Maximum 5 disks allowed”
return null;
Step 1: Login to vRA Service Broker
Go to Content & Policies –> Content –> Select the Catalog item, Example “Windows-2012”
Step 2: Edit Customize form
Go to Validations tab
Step 3: Drag and drop the Orchestrator validation to canvas
Give a custom name for External validation, Example “Disk validation”
Select the Define validation, Select the external vRO action & below highlighted properties:
Step 4:
Now go to Catalog tab in vRA Service Broker then submit a new request and validate the disks limits