vRealize Automation has a ton of great new features that make it easier than ever to build and manage your hybrid cloud. In this guide I will walk you trough using the latest Cloud Client Command Line utility to export your blueprints as code. I will also show you how you can share the cool and amazing blueprints that you have created.
Exporting Blueprints from vRealize Automation 7
First, let’s login to cloud client.
Login to cloud client as a cloud admin. You will need the Infrastructure Architect and Software Architect Roles in vRA
vra login userpass --user cloudadmin --tenant vsphere.local --server https://vra-01a.corp.local --password VMware1!
Now type vra content list to list your blueprints. Pro-Tip: if you have a lot of blueprints use vra content list –page 2 to jump to sort through your blueprints.
vra content list
Locate the id and content id of the blueprint you want to export and type the following and press enter, be sure to specify the path you want to save it to.
vra content export --path c:\temp --id e19b76f1-acaa-44d7-877c-46161302d43a --content-id Artifactory_Pro
Now go to the folder you saved it to and verify it exported it
Now go to login to VMwareSampleExchange and upload your new blueprint and share with the world!
Download the example blueprint from this guide here