VMware Cloud Community
jeffbrown
Contributor
Contributor

issues with new-template and -location [VIContainer] parameter

Can anyone help me understand what/were the VIContainer represents? Datacenter? Host? ???????

0 Kudos
1 Reply
halr9000
Commander
Commander

I think the answer is "yes". Aside from that, there's a bug talked about in another thread that talks about how Get-Folder returns one type of object (FolderImpl), but anything that uses a Location parameter wants an object of the type ViContainer. There is a workaround, but for right now it's not very straightforward to use the Location parameter. As I understand it, this has been fixed in the next beta.

If you want the workaround, start by reading .

My signature used to be pretty, but then the forum software broked it. vExpert. Microsoft MVP (Windows PowerShell). Author, Podcaster, Speaker. I'm @halr9000
0 Kudos