Quantcast
Channel: VMware Communities : Popular Discussions - vCloud Director PowerCLI
Viewing all articles
Browse latest Browse all 13334

Clone VApp Template to another Org

$
0
0

I am trying to clone a VAPP template from a VDC in OrgA to a VDC in OrgB in vCloud Directory 5.5

 

A snippet of the script is below:

 

$sourceVappTmpl = Get-CIVappTemplate -Name 'myvapp'

 

$destOrgVdcName = 'OrgB'

$destOrgVdc = Get-OrgVdc $destOrgVdcName

 

$sourceVappTmplRef = New-Object VMware.VimAutomation.Cloud.Views.Reference

$sourceVappTmplRef.Href = $sourceVappTmpl.Href

 

$tmplParams = New-Object VMware.VimAutomation.Cloud.Views.CloneVappTemplateparams

$tmplParams.source = $sourceVappTmplRef

$tmplParams.isSourceDelete = $false

$tmplParams.Name = $souceVappTmpl.name

$tmplParams.Description = $sourceVappTmpl.Description

 

$tmpVappTmpl = $destOrgVdc.ExtensionData.CloneVAppTemplate($tmplParams)

 

However, running this I get the following error:

Exception calling "CloneVAppTemplate" with "1" argument(s): "Cannot find a local catalog containing the same storage

policies as the Organization VDC com.vmware.vcloud.entity.vdc:89136670-a499-4063-81c3-85da814791db. Please create one

first."


Viewing all articles
Browse latest Browse all 13334

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>