To deploy an application, you must log in as an application publisher and deployer.

Before you deploy an application, verify that you have a deployment profile that is complete, saved, and free of validation errors. You also need the name of the application. Verify that the deployed application includes a clustered node before you initiate an update process to scale a clustered node.

You can perform a quick deployment of an application, check the status of an application deployment, initiate a scale out process for a deployed application, or use the CLI to modify service and application component configurations of deployed applications using the CLI. You can use the Application Services user interface to perform all of these tasks. See Quick Deploy an Application, Using the Deployment Summary Page, Initiate an Update Process to Scale Out Deployments, or Initiate an Update Process to Modify Configurations.

You can also view the deployed virtual machine status from the vCloud Director,vRealize Automation, and Amazon EC2 user interfaces.

Table 1. Deploy or Update an Application in the CLI

CLI Command

Description

deploy-application --destination ApplicationName-ApplicationVersion-DeploymentProfileName

Deploys an application blueprint.

For example, to deploy the Clustered Dukes Bank application, version 2.1.0, with the prod-dep deployment profile, use the command deploy-application --destination "Clustered Dukes Bank App-2.1.0-prod-dep".

Enter deploy and press the Tab key to display the possible options for the command. If the list does not display quotation marks for multiple words with spaces between the words, enclose the words in quotation marks.

deployment-status --deploymentName DeploymentName

Shows the status of the latest deployment.

If an application deployment fails, you can collect the virtual machine-specific log files to troubleshoot the problem. See the VMware vCloud Automation Center Application Services Troubleshooting guide .

deploy-application --destination ApplicationNameApplicationVersion-DeploymentProfileName --propertiesFile FileName.xml

Deploys the latest application version with new property values.

You can create a properties file that defines new property values for required properties and properties that are overridable at deployment. The following code example defines new values for the global_conf, http_node_port, and http_server_port properties in the Apache_LB and AppServer nodes.

<?xml version="1.0" encoding="UTF-8"?>
<ns1:config-update-properties xmlns:ns1="http://www.test.com/darwin/schema/beans/api">
 
<node>
        <name>load_balancer</name>
        <node-component>
          <name>Apache_LB</name>
          <property>
                <key>http_proxy_port</key>
                <value>9001</value>
          </property>
        </node-component>
</node>
<node>
        <name>appserver</name>
        <node-component>
          <name>Dukes_Bank_App</name>
          <property>
                <key>EAR_FILE</key>
                <value><![CDATA[http://192.10.1.113/Share/UPRConfig/CDB/dukesbank-2b-Update1-IndexPage.ear]]></value>
          </property>
          <property>
                <key>JAR_FILE</key>
                <value><![CDATA[http://192.10.1.113/Share/UPRConfig/CDB/mysql-connector-java-5.1.8.jar]]></value>
          </property>
        </node-component>
</node>
</ns1:config-update-properties>

For example, to deploy the Clustered Dukes Bank application version 2.1.0, with the staging-dep deployment profile, and new.props properties file, use the command deploy-application --destination " Clustered Dukes Bank App-2.1.0-DP_MAN_VCD" --propertiesFile ~/new.props.xml

Enter deploy and press the Tab key to display the possible options for the command. If the list does not display quotation marks for multiple words with spaces between the words, enclose the words in quotation marks.

update-scaleout --deploymentName DeploymentName --propertiesFile FileName.xml

Initiates an update process to scale a deployed application.

You must create a properties file that defines a new cluster size value for a node. The following code example defines cluster size values for the AppServer1 and DBServer1 nodes.

<?xml version="1.0" encoding="UTF-8"?>
<ns1:scaleout-properties xmlns:ns1="http://www.test.com/darwin/schema/beans/api">
<cluster-node>
<name>appserver</name>
<scale-out-by>1</scale-out-by>
</cluster-node>
</ns1:scaleout-properties>

For example, to scale out the Clustered Dukes Bank application, version 2.1.0 with scaleout properties file, use the command update-scaleout --deploymentName "appd-Clustered Dukes Bank App-2.1.0-admin-6-cc0a3b20-43a0-4a22-be3e-49d4f31ab8e8" --propertiesFile ~/scaleout.xml

Enter update and press the Tab key to display the possible options for the command. If the list does not display quotation marks for multiple words with spaces between the words, enclose the words in quotation marks.

update-config --deploymentName DeploymentName --configUpdatePropertiesFile ConfigUpdatePropertiesFileName.xml

Initiates an update process to modify configurations of existing services or application components in a deployed application.

You must create a config update properties file to configure an existing service. The following code example modifies the global_conf and db_port properties in the vFabric tc Server service of the AppServer node.

<?xml version="1.0" encoding="UTF-8"?>
<ns1:config-update-properties xmlns:ns1="http://www.test.com/darwin/schema/beans/api">
 
<node>
        <name>load_balancer</name>
        <node-component>
          <name>Apache_LB</name>
          <property>
                <key>http_proxy_port</key>
                <value>9001</value>
          </property>
        </node-component>
</node>
</ns1:config-update-properties>

For example, to modify a configuration in the Clustered Dukes Bank application, version 2.1.0 with configupdate properties file, use the command update-config --deploymentName "appd-Clustered Dukes Bank App-2.1.0-admin-2-19d63535-673e-4766-b380-de4e6ec3676a" --configUpdatePropertiesFile ~/configupdate.xml

Enter update and press the Tab key to display the possible options for the command. If the list does not display quotation marks for multiple words with spaces between the words, enclose the words in quotation marks.