book
Article ID: 313669
calendar_today
Updated On:
Issue/Introduction
Symptoms:
- 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
Error:
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
Cause
You may have a firewall blocking connectivity from your PowerCLI client and the remote ESXi host in SDDC
Resolution
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