VMware Cloud Community
Lie_DW
Contributor
Contributor
Jump to solution

vRA 7.4 Custom Form - Display location on request

Hi!

I made a vSphere Machine blueprint and checked the "Display location on request" box.

Since the custom forms are so much nicer I activated the form but I can't find the "Display location on request" in the Blueprint Elements.

Does anyone know how to add that field in a custom form?

Thanks!

1 Solution

Accepted Solutions
rwk1982
Enthusiast
Enthusiast
Jump to solution

As far as i know you must always add the values in the Custom Forms Designer because they are not using the settings from the Custom Properties itself.

Are you sure, that the Dropdown matches the Values in the DataCenterLocations.xml?

For Example if this is your xml:

<CustomDataType>

     <Data Name="Value_DC01" Description="Description_DC01" />

     <Data Name="Value_DC02" Description="Description_DC02" />

</CustomDataType

the constant values in the custom forms dropdown should be:

Description_DC01|Value_DC01,Description_DC02|Value_DC02

Drink coffee.. Do stupid things faster with more energy...

View solution in original post

5 Replies
rwk1982
Enthusiast
Enthusiast
Jump to solution

Add the Custom Property "Vrm.DataCenter.Location" to the Blueprint and then to the Custom Form.

Drink coffee.. Do stupid things faster with more energy...
Reply
0 Kudos
Lie_DW
Contributor
Contributor
Jump to solution

Ok so I created a custom property in vRA and added it to the blueprint.

What I noticed is that when creating the custom property as a dropdown and defining all my locations there, it shows up as a textfield in the custom form.

If I change the field on the custom form to a dropdown box, I need to re-add my locations. After doing this and requesting the blueprint, it says someting like "the value is not in the expected range".

I changed the custom property to a textfield and left the field in the custom form as a dropdown.

The request is submitted but then the deployment fails with the error: Placement request rejected. No supported candidate reservations exist for one or more components of blueprint request.....

Reply
0 Kudos
rwk1982
Enthusiast
Enthusiast
Jump to solution

As far as i know you must always add the values in the Custom Forms Designer because they are not using the settings from the Custom Properties itself.

Are you sure, that the Dropdown matches the Values in the DataCenterLocations.xml?

For Example if this is your xml:

<CustomDataType>

     <Data Name="Value_DC01" Description="Description_DC01" />

     <Data Name="Value_DC02" Description="Description_DC02" />

</CustomDataType

the constant values in the custom forms dropdown should be:

Description_DC01|Value_DC01,Description_DC02|Value_DC02

Drink coffee.. Do stupid things faster with more energy...
daphnissov
Immortal
Immortal
Jump to solution

You need to also be using reservation policies. Starting with vRA 7.3 (I think), the location doesn't work by itself. You must have reservations tagged with reservation policies. The location will then filter based on those.

Lie_DW
Contributor
Contributor
Jump to solution

Ok, it's working, thanks!

I forgot to uncheck the box Display location on request in the blueprint...

Reply
0 Kudos