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
- Login to Vmware application Services as root or login as darwin user and switch user to root.
- Cd to /home/darwin/tools
- Run the command java –jar darwin-cli.jar
- 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
- 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
- Export succeeded message confirm the successful export of Application Blueprint
Import the Application Blueprint
- Login to Vmware application Services as root or login as darwin user and switch user to root.
- Cd to /home/darwin/tools
- Run the command java –jar darwin-cli.jar
- Use below syntax to login
login --serverUrl https://appservicesFQDN:8443/darwin --username USERNAME --password PASSWORD --tenantId tenantName
- 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
- Import succeeded message confirms the successful import of the application Blueprint
No comments:
Post a Comment