VMware Cloud Community
Franck999
Enthusiast
Enthusiast
Jump to solution

dynamic custom properties from external data

Hi,

I would like to create a blueprint with a dynamic dropdownlist based on an external data (vco workflwlow , database, or other).

I think it's not possible, but can I, at least, create a vco workflow associated to an advanced service which could update the values of a property attribute ?

I didn't find this with the vcac plugin in vco.

Thanks for your help

Vcac version : 6.1

external vco version : 5.5.2.1

Reply
0 Kudos
1 Solution

Accepted Solutions
cdecanini_
VMware Employee
VMware Employee
Jump to solution

It is possible:

Create vCO actions to get the an array of strings from a querry to a DB (SQL plug-in), API (REST or SOAP),

Create a vCO workflow that has input parameters using these actions as presentation properties / predefined list of elements

In your workflow add the Request a catalog item" workflow as described in this article How to use and extend the workflow "Request a catalog item" from the vCAC plug-in for vCO

Add in your workflow the necessary input needed for this sub workflow.

Add this workflow in ASD.

If my answer resolved or helped you, please mark it as Correct or Helpful to award points. Thank you! Visit http://www.vcoteam.info & http://blogs.vmware.com/orchestrator for vCenter Orchestrator tips and tutorials - @vCOTeam on Twitter

View solution in original post

Reply
0 Kudos
5 Replies
sbeaver
Leadership
Leadership
Jump to solution

That is the dream we all have that is just not possible currently. Now what I have done is I use the building workflowstub to perform all the logic processing that I need and from there I update the entity.  Most of my logic scripts and workflows are dependent on what is done ahead of it.  For example the first script of the stub will grab properties and do some logic and then update the virtual machine properties so when the second script runs the add or update properties are there and it can apply logic with the new values and so on.  You will not be able to run scripts to apply value to a blueprint that has not been submitted but you can create custom properties with value expressions using xml files that will present logical steps that will be presented in the blue print.  The first list might be datacenters and the next step OS and so on using the xml files with parent child relationships.

Really depend on what kind of logic you are doing and how many choices you want the user to have.  I have a mixture of both and the building workflow stub processes information so I do not have to present as many questions in the blueprint

Steve Beaver
VMware Communities User Moderator
VMware vExpert 2009 - 2020
VMware NSX vExpert - 2019 - 2020
====
Co-Author of "VMware ESX Essentials in the Virtual Data Center"
(ISBN:1420070274) from Auerbach
Come check out my blog: [www.virtualizationpractice.com/blog|http://www.virtualizationpractice.com/blog/]
Come follow me on twitter http://www.twitter.com/sbeaver

**The Cloud is a journey, not a project.**
cdecanini_
VMware Employee
VMware Employee
Jump to solution

It is possible:

Create vCO actions to get the an array of strings from a querry to a DB (SQL plug-in), API (REST or SOAP),

Create a vCO workflow that has input parameters using these actions as presentation properties / predefined list of elements

In your workflow add the Request a catalog item" workflow as described in this article How to use and extend the workflow "Request a catalog item" from the vCAC plug-in for vCO

Add in your workflow the necessary input needed for this sub workflow.

Add this workflow in ASD.

If my answer resolved or helped you, please mark it as Correct or Helpful to award points. Thank you! Visit http://www.vcoteam.info & http://blogs.vmware.com/orchestrator for vCenter Orchestrator tips and tutorials - @vCOTeam on Twitter
Reply
0 Kudos
Franck999
Enthusiast
Enthusiast
Jump to solution

Thanks for your answer.

The problem is that it is possible to do it with ASD but I'm talking about IaaS blueprint.

Perharps made ASD for building VM? But I like the way IaaS blueprint is doint it.

Reply
0 Kudos
cdecanini_
VMware Employee
VMware Employee
Jump to solution

You can make your ASD service blueprint leverage your IaaS blueprint / IaaS lifecycle. You just need to run the workflow as in hte blog article I linked above.

This for sure require some work to copy / modify necessary input parameters but also allows any kind of customization / dynamic input presentation you may need.

If my answer resolved or helped you, please mark it as Correct or Helpful to award points. Thank you! Visit http://www.vcoteam.info & http://blogs.vmware.com/orchestrator for vCenter Orchestrator tips and tutorials - @vCOTeam on Twitter
Franck999
Enthusiast
Enthusiast
Jump to solution

Thanks,

I will try to do it this way.

It seems to be the solution.

Reply
0 Kudos