We have 2 data centers with 2 clusters each. On the request form, data center location is selected via a pull-down menu, depending on this selection, the next pull-down (cluster-name) is populated with the clusters found in the selected data center.
The VMs are not being deployed in the selected clusters.
The locations.xml is edited to reflect the 2 datacenter locations and associated with compute resources.
Trying to create property relationships for vRA using script actions.
Definition 1 -
Vrm.DataCenter.Location
Label: Datcenter location
Data type : String
DIsplay advice: Drop Down Box
PreDefined Values - BOS - BOS(value)/ SD - SD(value)
Definition 2 -
VirtualMachine.Admin.Clustername
Label - cluster name
Data Type - String
Display Advice - Dropdown
External Values
Pointed to my vRO Action item
Below is the simple vRO script action. This workflow is for VirtualMachine.Admin.Clustername property definition and is bound to Vrm.DataCenter.Location.
Return type: Array/string
if(datacentercluster)
{
switch(datacentercluster){
case "BOS":
return["BOS-TEST","BOS-PROD"]
break;
case "SD":
return["SD-DEVTEST","SD-PROD"]
break;
};
}
else
{
return ["Please select Datacenter"]
};
Is there something that I am missing here or is it related to the reported bug for resource mapping?
Thanks for any help.