Hi All,
is it possible to use more than 1 customization file against same blueprint because we are having 2 domains and machines need to be deploy in both the environment from same blueprint ?/
Hello vmitra,
I use only one blueprint for all types of VM (linux, windows).
I'm not sure to understand what is "customization file". I assert that's Customization Specifications.
During the Build event (in lifecycle event broker), I update the custom spec attribute with the correct value.
And in the blueprint, I just save it with empty value.
virtualMachineAddOrUpdateProperties = new Properties();
virtualMachineAddOrUpdateProperties.put("CloneSpec", "MyCustomizationName");
Is it what you need ?
Emmanuel.
Hi Eservent,
Thanks for quick reply !!
Yes we are talking about customization spec , will you please share few steps with us for same so we can understand how to do that ? - if possible
Hello,
If you don't know Event Broker Life Cycle, it will be a bit hard too explain all stuff.
You first need to read the documentation like this pdf
https://docs.vmware.com/en/vRealize-Automation/7.4/vrealize-automation-74-extensibility.pdf
And some tutorials like this one
https://virtualviking.net/2016/01/07/exploring-the-vrealize-automate-7-0-event-broker-service/
In few words, you have to configure VRA Subscription event to send event at each steps of the blueprint iaas request (request, building, provisioning, etc.).
The event call a VRO workflow.
And in this workflow you can check and edit some properties like the CloneSpec property.
Emmanuel.
Although you can certainly use EBS + custom vRO code for this, a much easier solution which I've used to call as many as 9 templates/customization specs from a single blueprint that doesn't involve either is the SovLabs Property Toolkit. You can build essentially if/when statements to switch to a different customization spec all within vRA without writing any JavaScript.
Hello eservent
I am trying to use your method to set the custom spec, can you advise:
What are the settings for: "virtualMachineAddOrUpdateProperties"
I have the payload being sent etc 'PRE' 'BuildingMachine'
Any other info would be greatly appreciated.
Thanks
Jono
Hello Jono!
"virtualMachineAddOrUpdateProperties" is just an Output Parameter (Type: Properties) of the Workflow:
Robert
Thank you Robert ¯\_ツ_/¯
I still seem to be missing something, to make the selected customization spec be applied to the VM.
I can see the selected spec in the POST provisioning payload, with "CloneSpec Windows - DEV Domain" (the spec name) but it hasnt run it...
Have figured out the problem. Realised it was running the spec, but the user trying to join the domain in the spec didn't have enough permissions... :smileysilly: