Quantcast
Channel: VMware Communities: Message List
Viewing all articles
Browse latest Browse all 223143

Re: How to change Storage Profile of VM in vAppTemplate?

$
0
0

Hi,

 

To get the VM's of a vAppTemplate in the catalog you can look at the "Children.VM"  property of extensiondata. Then you can perform specific actions to the VM's.

Eg: To consolidate all the VMs you could do the following:

 

$vAppTemplate = get-CIvAppTemplate "TemplateA"
$vms = $vAppTemplate.ExtensionData.Children.Vm
Foreach ($vm in $vms) {  $vm.Consolidate_Task()  start-sleep 60
}

 

 

If you wish to move an entire vAppTemplate to another storage profile, just add the new storage profile to your ProviderVDC, then add it to your OrgVDC, then right click on the vAppTemplate and choose "Move to Catalog" or "Copy to Catalog" and change the storage profile in the drop down list. I'm not sure how to achieve this with PowerCLI.

 

Cheers,

DeanH


Viewing all articles
Browse latest Browse all 223143

Trending Articles



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