7.1

Table Of Contents
Sample Array Property Script Syntax Sample Usage
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 le to download content. Software agent downloads the content
from the URL to the virtual machine and passes the location of the local le in the virtual machine to the
script.
Content properties must be dened as a valid URL with the HTTP or HTTPS protocol. For example, the
JBOSS Application Server Software component in the Dukes Bank sample application species 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 specied location into the
deployed virtual machine.
For information about software.http.proxy seings that you can use with content properties, see Custom
Properties Reference.
Sample String Property Script Syntax Sample Usage
cheetah_tgz_url =
"hp://app_content_server_ip:port/artifacts/software/jboss/cheetah-2.4.4.tar.gz"
Bash -
$cheetah_tgz_url
tar -zxvf
$cheetah_tgz_url
Windows CMD -
%cheetah_tgz_url
%
start /wait
c:\unzip.exe
%cheetah_tgz_url
%
Windows
PowerShell -
$cheetah_tgz_url
& c:\unzip.exe
$cheetah_tgz_url
Boolean Property
Use the boolean property type to provide True and False choices in the Value drop-down menu.
Integer Property
Use the integer property type for zeros, and positive or negative integers.
Decimal Property
Use the decimal property type for values representing non-repeating decimal fractions.
When Your Software Component Needs Information from Another Component
In several deployment scenarios, a component needs the property value of another component to customize
itself. You can do this with vRealize Automation by creating property bindings. You can design your
Software action scripts for property bindings, but the actual bindings are congured by the architect that
assembles the blueprint.
In addition to seing a property to a hard-coded value, a software architect, IaaS architect, or application
architect can bind Software component properties to other properties in the blueprint, such as an IP address
or an installation location. When you bind a Software property to another property, you can customize a
script based on the value of another component property or virtual machine property. For example, a WAR
component might need the installation location of the Apache Tomcat server. In your scripts, you can
Chapter 4 Providing On-Demand Services to Users
VMware, Inc. 293