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."