Quantcast
Channel: VMware Communities: Message List
Viewing all articles
Browse latest Browse all 258290

Possible to use custom properties in property definition dropdown?

$
0
0

We have migrated from vRA 6 to 7.3 and thus lost our XML file for drop down. The new system with its binding and script actions is great, however, I would really like to know if we can do one thing :

 

When defining the value in the input parameters area of a Dropdown (which I can pass to a script action), can I use a property that I have already defined and attached to the blueprint?

 

Normally I would bind another property definition to it, but then that property has to be defined in a text area, drop down, etc. I want it to be defined in a property group that is attached to a blueprint.

 

For example each property group is associated with their own blueprint:

 

------

Property group - AAA Datacenter Environment Prod"

Hard set "VM.Guest.Datacenter.Network.Pulldown" value to AAA-prod.

 

Property group - BBB Datacenter Environment Prod"

Hard set "VM.Guest.Datacenter.Network.Pulldown" value to BBB-prod.

 

Property group - AAA Datacenter Environment Stage"

Hard set "VM.Guest.Datacenter.Network.Pulldown" value to AAA-stage.

 

Property group - BBB Datacenter Environment Stage"

Hard set "VM.Guest.Datacenter.Network.Pulldown" value to BBB-stage

------

 

Property Definition - "VirtualMachine.Network0.NetworkProfileName"

Uses script action with input name "datacenter" and value as X where "X" should be the value of "VM.Guest.Datacenter.Network.Pulldown" . The script action will use JS to create a dropdown with the exact network profile names as "Value" and a friendly name as "Name". For example, if the value provided is "AAA-prod", it will show a dropdown of:

 

Name                    Value

"DMZ"               -> "AAA Prod DMZ"

"Protected"       ->  "AAA Prod Protected"

 

Hope that made sense.

 

-Alex


Viewing all articles
Browse latest Browse all 258290

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>