VMware Cloud Community
Brucco
Contributor
Contributor

PowerCLI, use $ovfpath to point to a datastore instead of local storage

Hello all,

I am new to PowerCLI so looking for help here.

I have a virtual appliance from Fortinet (FortiVM) that I am trying to deploy using PowerCLI.  The reason is I may need to bring up a large number of them at a time (around 2000) and scripting this would make more sense.

Through internet searching it appears that I can do this using a script invoking $ovfpath.  The issue is that all of the examples I find are using local machine storage which I don't want to do.

Also, I am using NetApp for storage so I know that I may need to log in there as well to find out the folder in which the ovf is contained since the datastore tab.

Thanks in advance for the help.

Reply
0 Kudos
3 Replies
LucD
Leadership
Leadership

The Import-Vapp cmdlet should work from a local drive or an UNC path on the Source parameter.
Do you have the UNC path to that Netapp share?


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

Reply
0 Kudos
Brucco
Contributor
Contributor

I currently do not have the UNC path but am looking for the admins now to see what I can get....

Reply
0 Kudos
LucD
Leadership
Leadership

Once you get it, can you try the Import-Vapp, and tell if it produces errors.


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

Reply
0 Kudos