[VMConAWS] Unable to export OVF via PowerCLI from SDDC
search cancel

[VMConAWS] Unable to export OVF via PowerCLI from SDDC


Article ID: 313669


Updated On:


VMware Cloud on AWS


- When we run the below command, it fails with "user ended task" on our SDDC.
- This occurs with OVA or OVF while trying to export using powercli commandlets or script

Example : 

Get-VM -Name "targetVM" | Export-VApp -Destination ‘C:\Local\Path‘ -Force -Format OVF

PS C:\Users\username> Get-VM -Name "targetVM" | Export-VApp -Destination ‘C:\Local\Path\‘ -Force -Format OVF Export-VApp : MM/DD/YYYY HH:MM:SS PM Export-VApp An error occurred while sending the request. At line:1 char:27
+ ... targetVM" | Export-VApp -Destination ‘C:\Local\Path\‘ -Forc ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Export-VApp], ViError
+ FullyQualifiedErrorId : Client20_NfcLease_RunNfcTask_Error,VMware.VimAutomation.ViCore.Cmdlets.Commands.ExportVApp


You may have a firewall blocking connectivity from your PowerCLI client and the remote ESXi host in SDDC


1) Login to your VMC SDDC and go to Network & Security (Legacy View) or Open the NSX Manager
2) Check the Management Gateway Firewall (MGW)
3) Ensure there is a Firewall rule allowing access from the remote PowerCLI machine to the ESXi hosts on TCP 902

See this document for additional details on Configuring the Management Gateway Firewall Rules