This post will walk through defining datacenter locations for VMware vRealize Automation 7.x. The primary two use cases for additional datacenter locations are to allow users to select a datacenter for service deployments, or for the administrator to specify a set datacenter when configuring a blueprint. We will cover both scenarios below.
Adding Datacenter Locations
Go to C:\Program Files(x86)\VMware\vCAC\Server\Website\XmlData, or replace with the installation directory as appropriate. Edit the DataCenterLocations.xml file, entering your datacenter names in the CustomDataType body, in place of London and Boston.
Save and close the file, then restart the VMware vCloud Automation Center Service.
- Allow the user to select the datacenter location.
- From the General tab select the Display location on request tickbox. Click Save and Finish. Assuming the blueprint is published with appropriate catalog entitlements then when the user requests the catalog item they can select from the drop-down Location menu in the vSphere machine General tab.
- Set the datacenter location in the blueprint, and do not allow the user to change the location. This option is useful when the administrator wants to set where certain blueprints are deployed.
- Check the setting mentioned above is unticked. Navigate to the Properties tab and select Custom Properties. Click New to add a new property. In the Name, field enters Vrm.DataCenter.Location, in the Value field, enters the site name, matching one of the site names we added previously, click Ok. Click Save and Finish. When the user requests the catalog item it will be deployed at the datacenter defined by the blueprint custom property.