VMware Cloud Community
scottm0690
Contributor
Contributor

Automating the deployment of VM's from a CSV

All, I have been banging my head against a wall to get a script working.  I keep getting this "Could not find Template with name "Templatename".    I have tried just about everything and still nothing.   Here is the comjmand:  Get-Template -Name ALPJMFMCS64_34G.  Do i need to specify a cluster to look in?  I have connected to a VM Host but this keeps coming up.  Any help would be appreciated.

Thanks,

0 Kudos
2 Replies
LucD
Leadership
Leadership

I'm afraid you need a vCenter connection to work with templates.

There are ways to create and use templates (kind of) without vCenter, but they are rather circumstantial, and you can't use the PowerCLI template cmdlets on these.


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

0 Kudos
scottm0690
Contributor
Contributor

Thanks, That worked. 

0 Kudos