Wednesday, November 2, 2016

Exporting and Importing of Application Blueprint on vRealize Application Service

Once you have built a service blueprint successfully it could be reused on other Tenant of Application Services or other instance of Application Services. The service blueprint needs to saved locally on the Application Services appliance if there are multiple tenants or needs to be copied to other appliance before importing. You may use winSCP to copy the zip or .xml file (Service Blueprint)

Export the Application Blueprint


  1. Login to Vmware application Services as root or login as darwin user and switch user to root.
  2. Cd to /home/darwin/tools
  1. Run the command java –jar darwin-cli.jar
  1. Use below syntax to login
login --serverUrl https://appservicesFQDN:8443/darwin --username USERNAME --password PASSWORD --tenantId tenantName

**make sure the username you use have appropriate rights, these roles are assigned from vRA >>Administration >> Users
  1. Run the below syntax to export any Application Blueprint
export-package --exportFilePath ExportFilePath  --applicationVersion name_of_the _application_ blueprint_with_version --fromGroup business_group

--exportFilePath = location where the file needs to saved, like /tmp/name_of_application.zip
--applicationVersion = exact application name with version seperated by ":". Use double quotes if there are spaces in between and format would be <application-version-name>:<major>.<minor>.<micro>
--fromGroup = name of the Business Group

Find the exact name of the blueprint by going to Application Services > Application

  1. Export succeeded message confirm the successful export of Application Blueprint


Import the Application Blueprint


  1. Login to Vmware application Services as root or login as darwin user and switch user to root.
  2. Cd to /home/darwin/tools
  3. Run the command java –jar darwin-cli.jar
  4. Use below syntax to login
login --serverUrl https://appservicesFQDN:8443/darwin --username USERNAME --password PASSWORD --tenantId tenantName
  1. Run the below syntax to import the Application Blueprint
import-package --importFilePath /blueprints/SQL_Server2008R2.xml --conflictResolutionAction IMPORTASNEW --targetGroup businessGroupName --suffix suffixName

 --importFilePath = location of the .zip or .xml file
--conflictResolutionAction = there are two options, IMPORTASNEW or OVERWRITE. When you use IMPORTASNEW, you can add a suffix, which is very useful when searching for applications or associated services for this blueprint.
--targetGroup = name of the Business Group

  1. Import succeeded message confirms the successful import of the application Blueprint 

No comments:

Post a Comment