VMware Cloud Community
luu621
Contributor
Contributor

using powercli to find template that vapp get deployed from In vCloud Director

in vcloud director, template description does not copied to vapp deployed from it. I have to use PowerCLI to copy it.  I'm trying to use powercli to find template that vapp get deployed from In vCloud Director.

Labels (2)
Reply
0 Kudos
3 Replies
brandonbazan
Contributor
Contributor

Hello!

 

Within the UI, there should be metadata (depending on the version you are using) that gives the the name, ID and type that the vApp was deployed from.

 

Those values should be named: 

vapp.origin.id
vapp.origin.name
vapp.origin.type
Reply
0 Kudos
luu621
Contributor
Contributor

Thanks for the answer. is there a way to use powercli to get that information?

Reply
0 Kudos
Sreejesh_D
Virtuoso
Virtuoso

please try the following script.

$vapp = get-civapp -Name web-cities -Org test

$metadata = $vapp.ExtensionData.getmetadata()

$metadata.MetadataEntry.TypedValue

Reply
0 Kudos