7.3

Table Of Contents
When you pass large numbers into an array, do not use the grouping format. For example: do not use
4444 444.000 (French), 4.444.444,000 (Italian), or 4,444,444.000 (English), because data files that
contain locale-specific formats might be misinterpreted when they are transferred to a machine that has a
different locale. The grouping format is not allowed, because a number such as 4,444,444.000 would be
considered as three separate numbers. Instead, just enter 4444444.000.
When you define values for an array property you must enclose the array in square brackets. For an array
of strings, the value in the array elements can contain any ASCIl characters. To properly encode a
backslash character in an Array property value, add an extra backslash, for example,
["c:\\test1\\test2"]. For a bound property, use the Properties tab in the design canvas to select the
appropriate property for binding. If you bind to an array, you must design your software components so
they don't expect a value array in any specific order.
For example, consider a load balancer virtual machine that is balancing the load for a cluster of
application server virtual machines. In such a case, an array property is defined for the load balancer
service and set to the array of IP addresses of the application server virtual machines.
These load balancer service configure scripts use the array property to configure the appropriate load
balancing scheme on the Red Hat, Windows, and Ubuntu operating systems.
Sample Array Property Script Syntax Sample Usage
operating_systems = ["Red
Hat","Windows","Ubuntu"]
Bash - ${operating_systems[@]}
for the entire array of strings
${operating_systems[N]}
for the individual array element
for (( i = 0 ; i < $
{#operating_systems[@]}; i++ )); do
echo ${operating_systems[$i]}
done
Windows CMD - %operating_systems_N%
where N represents the position of the element
in the array
for /F "delims== tokens=2" %%A in
('set operating_systems_') do (
echo %%A
)
Windows PowerShell - $operating_systems
for the entire array of strings
$operating_systems[N]
for the individual array element
foreach ($os in $operating_systems){
write-output $os
}
Content Property
The content property value is a URL to a file to download content. Software agent downloads the content
from the URL to the virtual machine and passes the location of the local file in the virtual machine to the
script.
Content properties must be defined as a valid URL with the HTTP or HTTPS protocol. For example, the
JBOSS Application Server Software component in the Dukes Bank sample application specifies a content
property cheetah_tgz_url. The artifacts are hosted in the Software appliance and the URL points to that
location in the appliance. The Software agent downloads the artifacts from the specified location into the
deployed virtual machine.
For information about software.http.proxy settings that you can use with content properties, see
Custom Properties Reference.
Configuring vRealize Automation
VMware, Inc. 434