Hi all,
I am in the process of moving virtual infrastructure from one physical site to another. The sites have a direct connection to each other. My current task is to move our template repository from storage at the original site to storage at the new site. The templates are all stored in one datastore that is an NFS share on Netapp storage. I have already copied this datastore to a datastore in the new site. My next step is to remove the templates from inventory that are located on the original site and add them into inventory from the new site. I believe powercli would work great for this and I have loosely listed which commands I am using below. I need to keep the templates in the folder structure found under the "VMs and Template" inventory view.
Which would be better, to remove the templates from inventory and add them back in from the new location or adjust the template properties with set-template to point at the new location?
$tm = Get-Template
foreach ($template in $tm)
{
$ofl = $template.folderid # ofl = original folder location
remove-template and new-template?
or
set-template?
}