Hi
I am trying to create a rather complex Workflow in vRealize Orchestrator.
The purpose of this workflow is to Clone an existing/earlier vRealize Automation MultiMachine deployment, and mark the new clones as templates, and then update an "Ad-hoc" Multi-Machine Blueprint in vRA with these new vCenter Templates.
Right now I have figured out how to map the individuel Ad-hoc Single-Machine blueprint prints, to clone from the new vCenter Templates.
This is done in the "VirtualMachineTemplateProperties" part of each Single-Machine blueprint.
Thanks to some borrowed code from Christiaan Roeleveld's createiaasblueprintfortemplate package
But because components of the original MultiMachine deployment might have been scaled up in regards to CPU and Memory, I need to update the Entity for the SingleMachine component blueprints.
I an trying to use the default workflow "Update a vCAC model entity" for this.
The below code is just hardcoded sample code.
I create a set of Properties:
theBlueprintEntityProperties = { CPUCount : "2", MemoryGB : "4096", DiskSize0GB : "20" };
I then try to run the "Update a vCAC model entity" workflow (inside my wrapper workflow of cause), with the following inputs:
entity = theBlueprintEntity inputProperties = theBlueprintEntityProperties links = null headers = null
But I just gets "java.lang.NullPointerException" back.
That properly mean that I need to include some links and/or headers.
I have tried with some links, again using code from Christiaan Roeleveld's createiaasblueprintfortemplate package
But even if I include the following links:
var links = { "InterfaceType": [ interfaceType ] // The vCAC Entity for the vSphere interface, "HostReservationPolicy": [ reservationPolicy ] // The vCAC Entity for my Reservation Policy, "ProvisioningGroup": [ provisioningGroup ] // The vCAC Entity for my Procisioning Group / Business Group, "WorkflowInfo": [ cloneWorkflow ] // The vCAC Entity for the Clone Workflow, "GlobalProfiles": buildProfiles // Array of build profiles, in this case just a array of one build profile, }
I still just gets "java.lang.NullPointerException" back.
Anyone have some inputs on how to update the vCAC Entity of a Blueprint, in regards to CPU, Memory and/or Disk?
Information about the environment:
vRealize Orchestrator = 6.0.3 Build 3000581
vCAC/vRA Pluging in vRO = 6.2.2
vRealize Automation = 6.2.2 Build 2754020