VMware Cloud Community
sidhartha_sutar
Contributor
Contributor

Import-vApp/Get-OvfConfiguration powercli supports URL (http/https) Source ?

Hello Experts,

Please help me with below query.

When I tried importing a OVA using a local path it works but when use a URL (https/http etc), it throws error

$ovfConfig = Get-OvfConfiguration -Ovf $ovfFilePath

Error : Get-OvfConfiguration : 8/13/2021 1:05:37 PM Get-OvfConfiguration The given path's format is not supported.

Import-VApp : Cannot bind parameter 'Source' to the target. Exception setting "Source": "Cannot find drive. A drive with the name 'https' does not exist."

Error :Import-VApp : Cannot bind parameter 'Source' to the target. Exception setting "Source": "Cannot find drive. A drive with the name 'https' does not exist."

 

#$ovfFilePath = "C:\AddOnScipt\xyz.ova"  // This works
$ovfFilePath = "https:\\web.eng.domain.com\test\xyz.ova" // This format does not work and throws above error.

 

Please help me to understand if it is supported using powercli or need URL in specific format ? 

 

 

 

Thanks,

Sidhartha Sutar

 

0 Kudos
4 Replies
LucD
Leadership
Leadership

That is currently not possible, see also PowerCLI Idea #116


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

0 Kudos
sidhartha_sutar
Contributor
Contributor

Thank you for the quick response.

Is there any API present which can use a URL for OVA deployment ?

I can use this API inside c# code which can be called from powershell script. 

 

 

 

0 Kudos
LucD
Leadership
Leadership

Have you read the PowerCLI Idea I linked to?
It states there is an API method, but it is private.


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

0 Kudos
sidhartha_sutar
Contributor
Contributor

Yes I read. As the post was from 2018, I wanted to get latest update on the api . Thank you again.

Tags (1)
0 Kudos