If using private agent, provide the OS of the machine running the agent and the agent version: Windows Server 2012, Agent version: 2.170.1
Issue Description
The service fabric deployment task is not able to connect to the cluster end point. I m ableto connect the same cluster from the agent machine using powershell
Below are the debug logs from the task execution
Task logs
2020-11-17T03:26:50.7883164Z ##[debug]Evaluating condition for step: 'Deploy Service Fabric Application'
2020-11-17T03:26:50.7885453Z ##[debug]Evaluating: succeeded()
2020-11-17T03:26:50.7886004Z ##[debug]Evaluating succeeded:
2020-11-17T03:26:50.7887199Z ##[debug]=> True
2020-11-17T03:26:50.7887753Z ##[debug]Result: True
2020-11-17T03:26:50.7888338Z ##[section]Starting: Deploy Service Fabric Application
2020-11-17T03:26:50.8017603Z ==============================================================================
2020-11-17T03:26:50.8017918Z Task : Service Fabric application deployment
2020-11-17T03:26:50.8018202Z Description : Deploy an Azure Service Fabric application to a cluster
2020-11-17T03:26:50.8018414Z Version : 1.9.3
2020-11-17T03:26:50.8018623Z Author : Microsoft Corporation
2020-11-17T03:26:50.8018897Z Help : https://docs.microsoft.com/azure/devops/pipelines/tasks/deploy/service-fabric-deploy
2020-11-17T03:26:50.8019239Z ==============================================================================
2020-11-17T03:26:51.4191523Z ##[debug]VstsTaskSdk 0.11.0 commit 7ff27a3e0bdd6f7b06690ae5f5b63cb84d0f23f4
2020-11-17T03:26:51.6023098Z ##[debug]Entering D:\vstsAgent_work_tasks\ServiceFabricDeploy_c6650aa0-185b-11e6-a47d-df93e7a34c64\1.9.3\deploy.ps1.
2020-11-17T03:26:51.6089670Z ##[debug]Loading resource strings from: D:\vstsAgent_work_tasks\ServiceFabricDeploy_c6650aa0-185b-11e6-a47d-df93e7a34c64\1.9.3\task.json
2020-11-17T03:26:51.7383240Z ##[debug]Loaded 83 strings.
2020-11-17T03:26:51.7384120Z ##[debug]SYSTEM_CULTURE: 'en-US'
2020-11-17T03:26:51.7384766Z ##[debug]Loading resource strings from: D:\vstsAgent_work_tasks\ServiceFabricDeploy_c6650aa0-185b-11e6-a47d-df93e7a34c64\1.9.3\Strings\resources.resjson\en-US\resources.resjson
2020-11-17T03:26:51.8622145Z ##[debug]Loaded 83 strings.
2020-11-17T03:26:51.8680815Z ##[debug]Loading module from path 'D:\vstsAgent_work_tasks\ServiceFabricDeploy_c6650aa0-185b-11e6-a47d-df93e7a34c64\1.9.3\ps_modules\ServiceFabricHelpers\ServiceFabricHelpers.psm1'.
2020-11-17T03:26:51.8791404Z ##[debug]Loading resource strings from: D:\vstsAgent_work_tasks\ServiceFabricDeploy_c6650aa0-185b-11e6-a47d-df93e7a34c64\1.9.3\ps_modules\ServiceFabricHelpers\module.json
2020-11-17T03:26:51.9015082Z ##[debug]Loaded 18 strings.
2020-11-17T03:26:51.9038769Z ##[debug]SYSTEM_CULTURE: 'en-US'
2020-11-17T03:26:51.9055967Z ##[debug]Loading resource strings from: D:\vstsAgent_work_tasks\ServiceFabricDeploy_c6650aa0-185b-11e6-a47d-df93e7a34c64\1.9.3\ps_modules\ServiceFabricHelpers\Strings\resources.resjson\en-US\resources.resjson
2020-11-17T03:26:52.0072615Z ##[debug]Loaded 18 strings.
2020-11-17T03:26:52.0219558Z ##[debug]Entering Find-VstsFiles.
2020-11-17T03:26:52.0304024Z ##[debug] LiteralDirectory: 'D:\vstsAgent_work_tasks\ServiceFabricDeploy_c6650aa0-185b-11e6-a47d-df93e7a34c64\1.9.3\ps_modules\ServiceFabricHelpers'
2020-11-17T03:26:52.0316688Z ##[debug] LegacyPattern: '.ps1'
2020-11-17T03:26:52.0651788Z ##[debug]Entering Get-MatchingItems.
2020-11-17T03:26:52.0674727Z ##[debug] IncludePatterns: 'D:\vstsAgent_work_tasks\ServiceFabricDeploy_c6650aa0-185b-11e6-a47d-df93e7a34c64\1.9.3\ps_modules\ServiceFabricHelpers*.ps1'
2020-11-17T03:26:52.0713962Z ##[debug] ExcludePatterns: ''
2020-11-17T03:26:52.0742055Z ##[debug] IncludeFiles: 'True'
2020-11-17T03:26:52.0757874Z ##[debug] IncludeDirectories: 'False'
2020-11-17T03:26:52.0766055Z ##[debug] Force: 'False'
2020-11-17T03:26:52.2237094Z ##[debug]Paths: D:\vstsAgent_work_tasks\ServiceFabricDeploy_c6650aa0-185b-11e6-a47d-df93e7a34c64\1.9.3\ps_modules\ServiceFabricHelpers\
2020-11-17T03:26:52.2252260Z ##[debug] CommonHelpers.ps1
2020-11-17T03:26:52.2267281Z ##[debug] Connect-ServiceFabricClusterFromServiceEndpoint.ps1
2020-11-17T03:26:52.2270895Z ##[debug] Get-ServiceFabricEncryptedText.ps1
2020-11-17T03:26:52.2282255Z ##[debug] SFOperations.ps1
2020-11-17T03:26:52.2300031Z ##[debug]Leaving Get-MatchingItems.
2020-11-17T03:26:52.2448858Z ##[debug]Total found: 4
2020-11-17T03:26:52.2464284Z ##[debug]Leaving Find-VstsFiles.
2020-11-17T03:26:52.2478597Z ##[debug]Exporting function 'Connect-ServiceFabricClusterFromServiceEndpoint'.
2020-11-17T03:26:52.2487439Z ##[debug]Exporting function 'Remove-ClientCertificate'.
2020-11-17T03:26:52.2510909Z ##[debug]Exporting function 'Get-ServiceFabricEncryptedText'.
2020-11-17T03:26:52.2525007Z ##[debug]Exporting variable 'SF_Operations'.
2020-11-17T03:26:52.2538229Z ##[debug]Exporting function 'Publish-Telemetry'.
2020-11-17T03:26:52.2551146Z ##[debug]Exporting function 'Get-SfSdkVersion'.
2020-11-17T03:26:52.2563995Z ##[debug]Exporting function 'Trace-WarningIfCertificateNotPresentInLocalCertStore'.
2020-11-17T03:26:52.2576433Z ##[debug]Importing function 'Connect-ServiceFabricClusterFromServiceEndpoint'.
2020-11-17T03:26:52.2588929Z ##[debug]Importing function 'Get-ServiceFabricEncryptedText'.
2020-11-17T03:26:52.2601395Z ##[debug]Importing function 'Get-SfSdkVersion'.
2020-11-17T03:26:52.2613306Z ##[debug]Importing function 'Publish-Telemetry'.
2020-11-17T03:26:52.2625761Z ##[debug]Importing function 'Remove-ClientCertificate'.
2020-11-17T03:26:52.2638586Z ##[debug]Importing function 'Trace-WarningIfCertificateNotPresentInLocalCertStore'.
2020-11-17T03:26:52.2658857Z ##[debug]Importing variable 'SF_Operations'.
2020-11-17T03:26:52.2680914Z ##[debug]Loading module from path 'D:\vstsAgent_work_tasks\ServiceFabricDeploy_c6650aa0-185b-11e6-a47d-df93e7a34c64\1.9.3\ps_modules\PowershellHelpers\PowershellHelpers.psm1'.
2020-11-17T03:26:52.2708757Z ##[debug]Loading resource strings from: D:\vstsAgent_work_tasks\ServiceFabricDeploy_c6650aa0-185b-11e6-a47d-df93e7a34c64\1.9.3\ps_modules\PowershellHelpers\module.json
2020-11-17T03:26:52.2795575Z ##[debug]Loaded 3 strings.
2020-11-17T03:26:52.2810025Z ##[debug]SYSTEM_CULTURE: 'en-US'
2020-11-17T03:26:52.2819237Z ##[debug]Loading resource strings from: D:\vstsAgent_work_tasks\ServiceFabricDeploy_c6650aa0-185b-11e6-a47d-df93e7a34c64\1.9.3\ps_modules\PowershellHelpers\Strings\resources.resjson\en-US\resources.resjson
2020-11-17T03:26:52.2920542Z ##[debug]Loaded 3 strings.
2020-11-17T03:26:52.2954199Z ##[debug]Exporting function 'Invoke-ActionWithRetries'.
2020-11-17T03:26:52.2967013Z ##[debug]Exporting function 'Get-TempDirectoryPath'.
2020-11-17T03:26:52.2977542Z ##[debug]Importing function 'Get-TempDirectoryPath'.
2020-11-17T03:26:52.3166563Z ##[debug]Importing function 'Invoke-ActionWithRetries'.
2020-11-17T03:26:52.3247775Z ##[debug]INPUT_PUBLISHPROFILEPATH: 'D:\vstsAgent_work\r1\a*\drop\projectartifacts*\PublishProfiles\Cloud.xml'
2020-11-17T03:26:52.3253886Z Searching for path: D:\vstsAgent_work\r1\a*\drop\projectartifacts*\PublishProfiles\Cloud.xml
2020-11-17T03:26:52.3271249Z ##[debug]Entering Find-VstsFiles.
2020-11-17T03:26:52.3283947Z ##[debug] LegacyPattern: 'D:\vstsAgent_work\r1\a*\drop\projectartifacts*\PublishProfiles\Cloud.xml'
2020-11-17T03:26:52.3302031Z ##[debug]Entering Get-MatchingItems.
2020-11-17T03:26:52.3313905Z ##[debug] IncludePatterns: 'D:\vstsAgent_work\r1\a*\drop\projectartifacts*\PublishProfiles\Cloud.xml'
2020-11-17T03:26:52.3329395Z ##[debug] ExcludePatterns: ''
2020-11-17T03:26:52.3340673Z ##[debug] IncludeFiles: 'True'
2020-11-17T03:26:52.3351366Z ##[debug] IncludeDirectories: 'False'
2020-11-17T03:26:52.3362005Z ##[debug] Force: 'False'
2020-11-17T03:26:52.3762046Z ##[debug]Path: D:\vstsAgent_work\r1\a_POC-ServiceFabric-Azure Service Fabric application-CI\drop\projectartifacts\src\TemplateServiceNamespace.FabricApp\PublishProfiles\Cloud.xml
2020-11-17T03:26:52.3792996Z ##[debug]Leaving Get-MatchingItems.
2020-11-17T03:26:52.3794741Z ##[debug]Total found: 1
2020-11-17T03:26:52.3795415Z ##[debug]Leaving Find-VstsFiles.
2020-11-17T03:26:52.3847485Z ##[debug]Asserting leaf path exists: 'D:\vstsAgent_work\r1\a_POC-ServiceFabric-Azure Service Fabric application-CI\drop\projectartifacts\src\TemplateServiceNamespace.FabricApp\PublishProfiles\Cloud.xml'
2020-11-17T03:26:52.3848265Z Found path: D:\vstsAgent_work\r1\a_POC-ServiceFabric-Azure Service Fabric application-CI\drop\projectartifacts\src\TemplateServiceNamespace.FabricApp\PublishProfiles\Cloud.xml
2020-11-17T03:26:52.4198558Z ##[debug]INPUT_APPLICATIONPACKAGEPATH: 'D:\vstsAgent_work\r1\a*\drop\applicationpackage'
2020-11-17T03:26:52.4208217Z Searching for path: D:\vstsAgent_work\r1\a*\drop\applicationpackage
2020-11-17T03:26:52.4224765Z ##[debug]Entering Find-VstsFiles.
2020-11-17T03:26:52.4237597Z ##[debug] LegacyPattern: 'D:\vstsAgent_work\r1\a*\drop\applicationpackage'
2020-11-17T03:26:52.4249450Z ##[debug] IncludeDirectories: 'True'
2020-11-17T03:26:52.4268284Z ##[debug]Entering Get-MatchingItems.
2020-11-17T03:26:52.4280277Z ##[debug] IncludePatterns: 'D:\vstsAgent_work\r1\a**\drop\applicationpackage'
2020-11-17T03:26:52.4291979Z ##[debug] ExcludePatterns: ''
2020-11-17T03:26:52.4303545Z ##[debug] IncludeFiles: 'False'
2020-11-17T03:26:52.4315159Z ##[debug] IncludeDirectories: 'True'
2020-11-17T03:26:52.4326889Z ##[debug] Force: 'False'
2020-11-17T03:26:52.4612410Z ##[debug]Path: D:\vstsAgent_work\r1\a_POC-ServiceFabric-Azure Service Fabric application-CI\drop\applicationpackage
2020-11-17T03:26:52.4626035Z ##[debug]Leaving Get-MatchingItems.
2020-11-17T03:26:52.4638361Z ##[debug]Total found: 1
2020-11-17T03:26:52.4652773Z ##[debug]Leaving Find-VstsFiles.
2020-11-17T03:26:52.4666416Z ##[debug]Asserting container path exists: 'D:\vstsAgent_work\r1\a_POC-ServiceFabric-Azure Service Fabric application-CI\drop\applicationpackage'
2020-11-17T03:26:52.4674269Z Found path: D:\vstsAgent_work\r1\a_POC-ServiceFabric-Azure Service Fabric application-CI\drop\applicationpackage
2020-11-17T03:26:52.4690885Z ##[debug]INPUT_SERVICECONNECTIONNAME: '1e78a924-febb-471f-98f5-7724fa0bde4a'
2020-11-17T03:26:52.4782028Z ##[debug]ENDPOINT_URL_1e78a924-febb-471f-98f5-7724fa0bde4a: 'tcp://bqldmselmx10.boqdev.local:19000/'
2020-11-17T03:26:52.4801306Z ##[debug]ENDPOINT_AUTH_1e78a924-febb-471f-98f5-7724fa0bde4a: '****'
2020-11-17T03:26:52.4820526Z ##[debug]ENDPOINT_DATA_1e78a924-febb-471f-98f5-7724fa0bde4a: '{}'
2020-11-17T03:26:52.4842717Z ##[debug]INPUT_COPYPACKAGETIMEOUTSEC (empty)
2020-11-17T03:26:52.4875196Z ##[debug]INPUT_REGISTERPACKAGETIMEOUTSEC (empty)
2020-11-17T03:26:52.4925651Z ##[debug]INPUT_COMPRESSPACKAGE: 'false'
2020-11-17T03:26:52.4953593Z ##[debug]INPUT_SKIPUPGRADESAMETYPEANDVERSION: 'true'
2020-11-17T03:26:52.4969382Z ##[debug]INPUT_SKIPPACKAGEVALIDATION: 'false'
2020-11-17T03:26:52.4984917Z ##[debug]INPUT_UNREGISTERUNUSEDVERSIONS: 'true'
2020-11-17T03:26:52.5000527Z ##[debug]INPUT_CONFIGUREDOCKERSETTINGS: 'false'
2020-11-17T03:26:52.5015973Z ##[debug]INPUT_OVERRIDEAPPLICATIONPARAMETER: 'false'
2020-11-17T03:26:52.5116115Z ##[debug]Entering Connect-ServiceFabricClusterFromServiceEndpoint.
2020-11-17T03:26:52.5140252Z ##[debug] ClusterConnectionParameters: 'System.Collections.Hashtable'
2020-11-17T03:26:52.5161412Z ##[debug] ConnectedServiceEndpoint: '@{Url=tcp://FQDN:19000/; Data=; Auth=}'
2020-11-17T03:26:52.5178997Z ##[debug]Loading module from path 'D:\vstsAgent_work_tasks\ServiceFabricDeploy_c6650aa0-185b-11e6-a47d-df93e7a34c64\1.9.3\psmodules\TlsHelper\TlsHelper_.psm1'.
2020-11-17T03:26:52.5233807Z ##[debug]Loading resource strings from: D:\vstsAgent_work_tasks\ServiceFabricDeploy_c6650aa0-185b-11e6-a47d-df93e7a34c64\1.9.3\psmodules\TlsHelper/module.json
2020-11-17T03:26:52.5299810Z ##[debug]Loaded 3 strings.
2020-11-17T03:26:52.5319397Z ##[debug]SYSTEM_CULTURE: 'en-US'
2020-11-17T03:26:52.5334647Z ##[debug]Loading resource strings from: D:\vstsAgent_work_tasks\ServiceFabricDeploy_c6650aa0-185b-11e6-a47d-df93e7a34c64\1.9.3\psmodules\TlsHelper\Strings\resources.resjson\en-US\resources.resjson
2020-11-17T03:26:52.5399104Z ##[debug]Loaded 3 strings.
2020-11-17T03:26:52.5410861Z ##[debug]Exporting function 'Add-Tls12InSession'.
2020-11-17T03:26:52.5422235Z ##[debug]Exporting function 'Assert-TlsError'.
2020-11-17T03:26:52.5434968Z ##[debug]Importing function 'Add-Tls12InSession'.
2020-11-17T03:26:52.5446571Z ##[debug]Importing function 'Assert-TlsError'.
2020-11-17T03:26:52.5463420Z ##[debug]Importing function 'Get-TempDirectoryPath'.
2020-11-17T03:26:52.5474507Z ##[debug]Importing function 'Invoke-ActionWithRetries'.
2020-11-17T03:26:52.5784278Z Added TLS 1.2 in session.
2020-11-17T03:26:52.6258275Z Imported cluster client certificate with thumbprint 'Thumbprint'.
2020-11-17T03:27:33.0408454Z ##[warning]Failed to contact Naming Service. Attempting to contact Failover Manager Service...
2020-11-17T03:27:33.0416201Z ##[debug]Processed: ##vso[task.logissue type=warning]Failed to contact Naming Service. Attempting to contact Failover Manager Service...
2020-11-17T03:28:13.0401521Z ##[warning]Failed to contact Failover Manager Service, Attempting to contact FMM...
2020-11-17T03:28:13.0402986Z ##[debug]Processed: ##vso[task.logissue type=warning]Failed to contact Failover Manager Service, Attempting to contact FMM...
2020-11-17T03:28:53.1288399Z ##[debug]System.Fabric.FabricTransientException: Could not ping any of the provided Service Fabric gateway endpoints. ---> System.Runtime.InteropServices.COMException: Exception from HRESULT: 0x80071C49
2020-11-17T03:28:53.1289419Z ##[debug] at System.Fabric.Interop.NativeClient.IFabricQueryClient11.EndGetPartitionList2(IFabricAsyncOperationContext context)
2020-11-17T03:28:53.1290178Z ##[debug] at System.Fabric.FabricClient.QueryClient.GetPartitionListAsyncEndWrapper(IFabricAsyncOperationContext context)
2020-11-17T03:28:53.1290678Z ##[debug] at System.Fabric.Interop.AsyncCallOutAdapter21.Finish(IFabricAsyncOperationContext context, Boolean expectedCompletedSynchronously) 2020-11-17T03:28:53.1291088Z ##[debug] --- End of inner exception stack trace --- 2020-11-17T03:28:53.1291468Z ##[debug]System.Management.Automation.PipelineStoppedException: The pipeline has been stopped. 2020-11-17T03:28:53.1292235Z ##[debug] at System.Management.Automation.MshCommandRuntime.ThrowTerminatingError(ErrorRecord errorRecord) 2020-11-17T03:28:53.1292727Z ##[debug] at System.Management.Automation.Cmdlet.ThrowTerminatingError(ErrorRecord errorRecord) 2020-11-17T03:28:53.1293217Z ##[debug] at Microsoft.ServiceFabric.Powershell.CommonCmdletBase.TestClusterConnection(IClusterConnection clusterConnection, Boolean testNetwork) 2020-11-17T03:28:53.1293644Z ##[debug] at Microsoft.ServiceFabric.Powershell.ConnectCluster.ProcessRecord() 2020-11-17T03:28:53.1294052Z ##[debug]System.Management.Automation.PipelineStoppedException: The pipeline has been stopped. 2020-11-17T03:28:53.1294486Z ##[debug] at System.Management.Automation.MshCommandRuntime.ThrowTerminatingError(ErrorRecord errorRecord) 2020-11-17T03:28:53.1294904Z ##[debug] at System.Management.Automation.Cmdlet.ThrowTerminatingError(ErrorRecord errorRecord) 2020-11-17T03:28:53.1295290Z ##[debug] at Microsoft.ServiceFabric.Powershell.ConnectCluster.ProcessRecord() 2020-11-17T03:29:33.1518555Z ##[warning]Failed to contact Naming Service. Attempting to contact Failover Manager Service... 2020-11-17T03:29:33.1520239Z ##[debug]Processed: ##vso[task.logissue type=warning]Failed to contact Naming Service. Attempting to contact Failover Manager Service... 2020-11-17T03:30:13.1716119Z ##[warning]Failed to contact Failover Manager Service, Attempting to contact FMM... 2020-11-17T03:30:13.1717703Z ##[debug]Processed: ##vso[task.logissue type=warning]Failed to contact Failover Manager Service, Attempting to contact FMM... 2020-11-17T03:30:53.1970506Z ##[debug]System.Fabric.FabricTransientException: Could not ping any of the provided Service Fabric gateway endpoints. ---> System.Runtime.InteropServices.COMException: Exception from HRESULT: 0x80071C49 2020-11-17T03:30:53.1971946Z ##[debug] at System.Fabric.Interop.NativeClient.IFabricQueryClient11.EndGetPartitionList2(IFabricAsyncOperationContext context) 2020-11-17T03:30:53.1972590Z ##[debug] at System.Fabric.FabricClient.QueryClient.GetPartitionListAsyncEndWrapper(IFabricAsyncOperationContext context) 2020-11-17T03:30:53.1973240Z ##[debug] at System.Fabric.Interop.AsyncCallOutAdapter21.Finish(IFabricAsyncOperationContext context, Boolean expectedCompletedSynchronously)
2020-11-17T03:30:53.1974085Z ##[debug] --- End of inner exception stack trace ---
2020-11-17T03:30:53.1974591Z ##[debug]System.Management.Automation.PipelineStoppedException: The pipeline has been stopped.
2020-11-17T03:30:53.1975152Z ##[debug] at System.Management.Automation.MshCommandRuntime.ThrowTerminatingError(ErrorRecord errorRecord)
2020-11-17T03:30:53.1975669Z ##[debug] at System.Management.Automation.Cmdlet.ThrowTerminatingError(ErrorRecord errorRecord)
2020-11-17T03:30:53.1976261Z ##[debug] at Microsoft.ServiceFabric.Powershell.CommonCmdletBase.TestClusterConnection(IClusterConnection clusterConnection, Boolean testNetwork)
2020-11-17T03:30:53.1976839Z ##[debug] at Microsoft.ServiceFabric.Powershell.ConnectCluster.ProcessRecord()
2020-11-17T03:30:53.1977373Z ##[debug]System.Management.Automation.PipelineStoppedException: The pipeline has been stopped.
2020-11-17T03:30:53.1977951Z ##[debug] at System.Management.Automation.MshCommandRuntime.ThrowTerminatingError(ErrorRecord errorRecord)
2020-11-17T03:30:53.1978499Z ##[debug] at System.Management.Automation.Cmdlet.ThrowTerminatingError(ErrorRecord errorRecord)
2020-11-17T03:30:53.1979080Z ##[debug] at Microsoft.ServiceFabric.Powershell.ConnectCluster.ProcessRecord()
2020-11-17T03:30:53.2071346Z Exception occurred: System.Fabric.FabricTransientException
2020-11-17T03:30:53.2085056Z Retrying to connect to cluster..
2020-11-17T03:31:43.2221231Z ##[warning]Failed to contact Naming Service. Attempting to contact Failover Manager Service...
2020-11-17T03:31:43.2222990Z ##[debug]Processed: ##vso[task.logissue type=warning]Failed to contact Naming Service. Attempting to contact Failover Manager Service...
2020-11-17T03:32:23.2297453Z ##[warning]Failed to contact Failover Manager Service, Attempting to contact FMM...
2020-11-17T03:32:23.2299245Z ##[debug]Processed: ##vso[task.logissue type=warning]Failed to contact Failover Manager Service, Attempting to contact FMM...
2020-11-17T03:33:03.2514704Z ##[debug]System.Fabric.FabricTransientException: Could not ping any of the provided Service Fabric gateway endpoints. ---> System.Runtime.InteropServices.COMException: Exception from HRESULT: 0x80071C49
2020-11-17T03:33:03.2516052Z ##[debug] at System.Fabric.Interop.NativeClient.IFabricQueryClient11.EndGetPartitionList2(IFabricAsyncOperationContext context)
2020-11-17T03:33:03.2516630Z ##[debug] at System.Fabric.FabricClient.QueryClient.GetPartitionListAsyncEndWrapper(IFabricAsyncOperationContext context)
2020-11-17T03:33:03.2517215Z ##[debug] at System.Fabric.Interop.AsyncCallOutAdapter21.Finish(IFabricAsyncOperationContext context, Boolean expectedCompletedSynchronously) 2020-11-17T03:33:03.2517708Z ##[debug] --- End of inner exception stack trace --- 2020-11-17T03:33:03.2518187Z ##[debug]System.Management.Automation.PipelineStoppedException: The pipeline has been stopped. 2020-11-17T03:33:03.2518752Z ##[debug] at System.Management.Automation.MshCommandRuntime.ThrowTerminatingError(ErrorRecord errorRecord) 2020-11-17T03:33:03.2519285Z ##[debug] at System.Management.Automation.Cmdlet.ThrowTerminatingError(ErrorRecord errorRecord) 2020-11-17T03:33:03.2519836Z ##[debug] at Microsoft.ServiceFabric.Powershell.CommonCmdletBase.TestClusterConnection(IClusterConnection clusterConnection, Boolean testNetwork) 2020-11-17T03:33:03.2520356Z ##[debug] at Microsoft.ServiceFabric.Powershell.ConnectCluster.ProcessRecord() 2020-11-17T03:33:03.2520839Z ##[debug]System.Management.Automation.PipelineStoppedException: The pipeline has been stopped. 2020-11-17T03:33:03.2521352Z ##[debug] at System.Management.Automation.MshCommandRuntime.ThrowTerminatingError(ErrorRecord errorRecord) 2020-11-17T03:33:03.2521848Z ##[debug] at System.Management.Automation.Cmdlet.ThrowTerminatingError(ErrorRecord errorRecord) 2020-11-17T03:33:03.2522382Z ##[debug] at Microsoft.ServiceFabric.Powershell.ConnectCluster.ProcessRecord() 2020-11-17T03:33:03.2523467Z Exception occurred: System.Fabric.FabricTransientException 2020-11-17T03:33:03.2525170Z Retrying to connect to cluster.. 2020-11-17T03:33:53.2564359Z ##[warning]Failed to contact Naming Service. Attempting to contact Failover Manager Service... 2020-11-17T03:33:53.2565963Z ##[debug]Processed: ##vso[task.logissue type=warning]Failed to contact Naming Service. Attempting to contact Failover Manager Service... 2020-11-17T03:34:33.2691245Z ##[warning]Failed to contact Failover Manager Service, Attempting to contact FMM... 2020-11-17T03:34:33.2692743Z ##[debug]Processed: ##vso[task.logissue type=warning]Failed to contact Failover Manager Service, Attempting to contact FMM... 2020-11-17T03:35:13.3146055Z ##[debug]System.Fabric.FabricTransientException: Could not ping any of the provided Service Fabric gateway endpoints. ---> System.Runtime.InteropServices.COMException: Exception from HRESULT: 0x80071C49 2020-11-17T03:35:13.3151218Z ##[debug] at System.Fabric.Interop.NativeClient.IFabricQueryClient11.EndGetPartitionList2(IFabricAsyncOperationContext context) 2020-11-17T03:35:13.3153850Z ##[debug] at System.Fabric.FabricClient.QueryClient.GetPartitionListAsyncEndWrapper(IFabricAsyncOperationContext context) 2020-11-17T03:35:13.3157169Z ##[debug] at System.Fabric.Interop.AsyncCallOutAdapter21.Finish(IFabricAsyncOperationContext context, Boolean expectedCompletedSynchronously)
2020-11-17T03:35:13.3157908Z ##[debug] --- End of inner exception stack trace ---
2020-11-17T03:35:13.3158544Z ##[debug]System.Management.Automation.PipelineStoppedException: The pipeline has been stopped.
2020-11-17T03:35:13.3159235Z ##[debug] at System.Management.Automation.MshCommandRuntime.ThrowTerminatingError(ErrorRecord errorRecord)
2020-11-17T03:35:13.3159909Z ##[debug] at System.Management.Automation.Cmdlet.ThrowTerminatingError(ErrorRecord errorRecord)
2020-11-17T03:35:13.3160936Z ##[debug] at Microsoft.ServiceFabric.Powershell.CommonCmdletBase.TestClusterConnection(IClusterConnection clusterConnection, Boolean testNetwork)
2020-11-17T03:35:13.3161644Z ##[debug] at Microsoft.ServiceFabric.Powershell.ConnectCluster.ProcessRecord()
2020-11-17T03:35:13.3162301Z ##[debug]System.Management.Automation.PipelineStoppedException: The pipeline has been stopped.
2020-11-17T03:35:13.3162989Z ##[debug] at System.Management.Automation.MshCommandRuntime.ThrowTerminatingError(ErrorRecord errorRecord)
2020-11-17T03:35:13.3163659Z ##[debug] at System.Management.Automation.Cmdlet.ThrowTerminatingError(ErrorRecord errorRecord)
2020-11-17T03:35:13.3164279Z ##[debug] at Microsoft.ServiceFabric.Powershell.ConnectCluster.ProcessRecord()
2020-11-17T03:35:13.3164809Z Exception occurred: System.Fabric.FabricTransientException
2020-11-17T03:35:13.3180446Z ##[debug]Leaving Connect-ServiceFabricClusterFromServiceEndpoint.
2020-11-17T03:35:13.3355649Z ##[debug]SYSTEM_JOBID: '19fcd928-6143-5993-00fe-46e44e017377'
2020-11-17T03:35:13.3410843Z Service fabric SDK version: 4.1.428.9590.
2020-11-17T03:35:13.3538981Z ##[debug]Processed: ##vso[telemetry.publish area=TaskHub;feature=ServiceFabricDeploy]{"OperationId":"ConnectCluster","ExceptionData":"System.Fabric.FabricTransientException;System.Runtime.InteropServices.COMException;|D:\vstsAgent\_work\_tasks\ServiceFabricDeploy_c6650aa0-185b-11e6-a47d-df93e7a34c64\1.9.3\ps_modules\PowershellHelpers\Helpers.ps1|70","JobId":"19fcd928-6143-5993-00fe-46e44e017377","SDKVersion":"4.1.428.9590"}
2020-11-17T03:35:13.3545264Z ##[debug]Leaving D:\vstsAgent_work_tasks\ServiceFabricDeploy_c6650aa0-185b-11e6-a47d-df93e7a34c64\1.9.3\deploy.ps1.
2020-11-17T03:35:13.4062458Z ##[debug]Caught exception from task script.
2020-11-17T03:35:13.4062797Z ##[debug]Error record:
2020-11-17T03:35:13.4064350Z ##[debug]Could not ping any of the provided Service Fabric gateway endpoints.
2020-11-17T03:35:13.4065103Z ##[debug]At D:\vstsAgent_work_tasks\ServiceFabricDeploy_c6650aa0-185b-11e6-a47d-df93e7a34c64\1.9.3\ps_modules\PowershellHelpers\Helpers.ps1:70 char:17
2020-11-17T03:35:13.4065996Z ##[debug]+ throw $exception
2020-11-17T03:35:13.4066372Z ##[debug]+ ~~~~
2020-11-17T03:35:13.4066858Z ##[debug] + CategoryInfo : OperationStopped: (:) [], FabricTransientException
2020-11-17T03:35:13.4067389Z ##[debug] + FullyQualifiedErrorId : Could not ping any of the provided Service Fabric gateway endpoints.
2020-11-17T03:35:13.4067799Z ##[debug]
2020-11-17T03:35:13.4068128Z ##[debug]Script stack trace:
2020-11-17T03:35:13.4068706Z ##[debug]at Invoke-ActionWithRetries, D:\vstsAgent_work_tasks\ServiceFabricDeploy_c6650aa0-185b-11e6-a47d-df93e7a34c64\1.9.3\ps_modules\PowershellHelpers\Helpers.ps1: line 70
2020-11-17T03:35:13.4069585Z ##[debug]at Connect-ServiceFabricClusterAction, D:\vstsAgent_work_tasks\ServiceFabricDeploy_c6650aa0-185b-11e6-a47d-df93e7a34c64\1.9.3\ps_modules\ServiceFabricHelpers\Connect-ServiceFabricClusterFromServiceEndpoint.ps1: line 276
2020-11-17T03:35:13.4070557Z ##[debug]at Connect-ServiceFabricClusterFromServiceEndpoint, D:\vstsAgent_work_tasks\ServiceFabricDeploy_c6650aa0-185b-11e6-a47d-df93e7a34c64\1.9.3\ps_modules\ServiceFabricHelpers\Connect-ServiceFabricClusterFromServiceEndpoint.ps1: line 234
2020-11-17T03:35:13.4071385Z ##[debug]at , D:\vstsAgent_work_tasks\ServiceFabricDeploy_c6650aa0-185b-11e6-a47d-df93e7a34c64\1.9.3\deploy.ps1: line 59
2020-11-17T03:35:13.4071915Z ##[debug]at , : line 1
2020-11-17T03:35:13.4072312Z ##[debug]at , : line 22
2020-11-17T03:35:13.4072702Z ##[debug]at , : line 18
2020-11-17T03:35:13.4073092Z ##[debug]at , : line 1
2020-11-17T03:35:13.4073448Z ##[debug]Exception:
2020-11-17T03:35:13.4074044Z ##[debug]System.Fabric.FabricTransientException: Could not ping any of the provided Service Fabric gateway endpoints. ---> System.Runtime.InteropServices.COMException: Exception from HRESULT: 0x80071C49
2020-11-17T03:35:13.4074960Z ##[debug] at System.Fabric.Interop.NativeClient.IFabricQueryClient11.EndGetPartitionList2(IFabricAsyncOperationContext context)
2020-11-17T03:35:13.4075528Z ##[debug] at System.Fabric.FabricClient.QueryClient.GetPartitionListAsyncEndWrapper(IFabricAsyncOperationContext context)
2020-11-17T03:35:13.4076106Z ##[debug] at System.Fabric.Interop.AsyncCallOutAdapter2`1.Finish(IFabricAsyncOperationContext context, Boolean expectedCompletedSynchronously)
2020-11-17T03:35:13.4076609Z ##[debug] --- End of inner exception stack trace ---
2020-11-17T03:35:13.4077068Z ##[debug] at System.Management.Automation.MshCommandRuntime.ThrowTerminatingError(ErrorRecord errorRecord)
2020-11-17T03:35:13.4077923Z ##[error]Could not ping any of the provided Service Fabric gateway endpoints.
2020-11-17T03:35:13.4079083Z ##[debug]Processed: ##vso[task.logissue type=error]Could not ping any of the provided Service Fabric gateway endpoints.
2020-11-17T03:35:13.4080725Z ##[debug]Processed: ##vso[task.complete result=Failed]
2020-11-17T03:35:13.4417711Z ##[section]Finishing: Deploy Service Fabric Application
This issue is stale because it has been open for 180 days with no activity. Remove the stale label or comment on the issue otherwise this will be closed in 5 days
Required Information
Entering this information will route you directly to the right team and expedite traction.
Question, Bug, or Feature?
Type: Bug
Enter Task Name: Service Fabric application deployment
list here (V# not needed): 1.9.3 https://github.com/Microsoft/azure-pipelines-tasks/tree/master/Tasks
Environment
Server - Azure Pipelines
Agent - Private:
Issue Description
The service fabric deployment task is not able to connect to the cluster end point. I m ableto connect the same cluster from the agent machine using powershell
Below are the debug logs from the task execution
Task logs
2020-11-17T03:26:50.7883164Z ##[debug]Evaluating condition for step: 'Deploy Service Fabric Application' 2020-11-17T03:26:50.7885453Z ##[debug]Evaluating: succeeded() 2020-11-17T03:26:50.7886004Z ##[debug]Evaluating succeeded: 2020-11-17T03:26:50.7887199Z ##[debug]=> True 2020-11-17T03:26:50.7887753Z ##[debug]Result: True 2020-11-17T03:26:50.7888338Z ##[section]Starting: Deploy Service Fabric Application 2020-11-17T03:26:50.8017603Z ============================================================================== 2020-11-17T03:26:50.8017918Z Task : Service Fabric application deployment 2020-11-17T03:26:50.8018202Z Description : Deploy an Azure Service Fabric application to a cluster 2020-11-17T03:26:50.8018414Z Version : 1.9.3 2020-11-17T03:26:50.8018623Z Author : Microsoft Corporation 2020-11-17T03:26:50.8018897Z Help : https://docs.microsoft.com/azure/devops/pipelines/tasks/deploy/service-fabric-deploy 2020-11-17T03:26:50.8019239Z ============================================================================== 2020-11-17T03:26:51.4191523Z ##[debug]VstsTaskSdk 0.11.0 commit 7ff27a3e0bdd6f7b06690ae5f5b63cb84d0f23f4 2020-11-17T03:26:51.6023098Z ##[debug]Entering D:\vstsAgent_work_tasks\ServiceFabricDeploy_c6650aa0-185b-11e6-a47d-df93e7a34c64\1.9.3\deploy.ps1. 2020-11-17T03:26:51.6089670Z ##[debug]Loading resource strings from: D:\vstsAgent_work_tasks\ServiceFabricDeploy_c6650aa0-185b-11e6-a47d-df93e7a34c64\1.9.3\task.json 2020-11-17T03:26:51.7383240Z ##[debug]Loaded 83 strings. 2020-11-17T03:26:51.7384120Z ##[debug]SYSTEM_CULTURE: 'en-US' 2020-11-17T03:26:51.7384766Z ##[debug]Loading resource strings from: D:\vstsAgent_work_tasks\ServiceFabricDeploy_c6650aa0-185b-11e6-a47d-df93e7a34c64\1.9.3\Strings\resources.resjson\en-US\resources.resjson 2020-11-17T03:26:51.8622145Z ##[debug]Loaded 83 strings. 2020-11-17T03:26:51.8680815Z ##[debug]Loading module from path 'D:\vstsAgent_work_tasks\ServiceFabricDeploy_c6650aa0-185b-11e6-a47d-df93e7a34c64\1.9.3\ps_modules\ServiceFabricHelpers\ServiceFabricHelpers.psm1'. 2020-11-17T03:26:51.8791404Z ##[debug]Loading resource strings from: D:\vstsAgent_work_tasks\ServiceFabricDeploy_c6650aa0-185b-11e6-a47d-df93e7a34c64\1.9.3\ps_modules\ServiceFabricHelpers\module.json 2020-11-17T03:26:51.9015082Z ##[debug]Loaded 18 strings. 2020-11-17T03:26:51.9038769Z ##[debug]SYSTEM_CULTURE: 'en-US' 2020-11-17T03:26:51.9055967Z ##[debug]Loading resource strings from: D:\vstsAgent_work_tasks\ServiceFabricDeploy_c6650aa0-185b-11e6-a47d-df93e7a34c64\1.9.3\ps_modules\ServiceFabricHelpers\Strings\resources.resjson\en-US\resources.resjson 2020-11-17T03:26:52.0072615Z ##[debug]Loaded 18 strings. 2020-11-17T03:26:52.0219558Z ##[debug]Entering Find-VstsFiles. 2020-11-17T03:26:52.0304024Z ##[debug] LiteralDirectory: 'D:\vstsAgent_work_tasks\ServiceFabricDeploy_c6650aa0-185b-11e6-a47d-df93e7a34c64\1.9.3\ps_modules\ServiceFabricHelpers' 2020-11-17T03:26:52.0316688Z ##[debug] LegacyPattern: '.ps1' 2020-11-17T03:26:52.0651788Z ##[debug]Entering Get-MatchingItems. 2020-11-17T03:26:52.0674727Z ##[debug] IncludePatterns: 'D:\vstsAgent_work_tasks\ServiceFabricDeploy_c6650aa0-185b-11e6-a47d-df93e7a34c64\1.9.3\ps_modules\ServiceFabricHelpers*.ps1' 2020-11-17T03:26:52.0713962Z ##[debug] ExcludePatterns: '' 2020-11-17T03:26:52.0742055Z ##[debug] IncludeFiles: 'True' 2020-11-17T03:26:52.0757874Z ##[debug] IncludeDirectories: 'False' 2020-11-17T03:26:52.0766055Z ##[debug] Force: 'False' 2020-11-17T03:26:52.2237094Z ##[debug]Paths: D:\vstsAgent_work_tasks\ServiceFabricDeploy_c6650aa0-185b-11e6-a47d-df93e7a34c64\1.9.3\ps_modules\ServiceFabricHelpers\ 2020-11-17T03:26:52.2252260Z ##[debug] CommonHelpers.ps1 2020-11-17T03:26:52.2267281Z ##[debug] Connect-ServiceFabricClusterFromServiceEndpoint.ps1 2020-11-17T03:26:52.2270895Z ##[debug] Get-ServiceFabricEncryptedText.ps1 2020-11-17T03:26:52.2282255Z ##[debug] SFOperations.ps1 2020-11-17T03:26:52.2300031Z ##[debug]Leaving Get-MatchingItems. 2020-11-17T03:26:52.2448858Z ##[debug]Total found: 4 2020-11-17T03:26:52.2464284Z ##[debug]Leaving Find-VstsFiles. 2020-11-17T03:26:52.2478597Z ##[debug]Exporting function 'Connect-ServiceFabricClusterFromServiceEndpoint'. 2020-11-17T03:26:52.2487439Z ##[debug]Exporting function 'Remove-ClientCertificate'. 2020-11-17T03:26:52.2510909Z ##[debug]Exporting function 'Get-ServiceFabricEncryptedText'. 2020-11-17T03:26:52.2525007Z ##[debug]Exporting variable 'SF_Operations'. 2020-11-17T03:26:52.2538229Z ##[debug]Exporting function 'Publish-Telemetry'. 2020-11-17T03:26:52.2551146Z ##[debug]Exporting function 'Get-SfSdkVersion'. 2020-11-17T03:26:52.2563995Z ##[debug]Exporting function 'Trace-WarningIfCertificateNotPresentInLocalCertStore'. 2020-11-17T03:26:52.2576433Z ##[debug]Importing function 'Connect-ServiceFabricClusterFromServiceEndpoint'. 2020-11-17T03:26:52.2588929Z ##[debug]Importing function 'Get-ServiceFabricEncryptedText'. 2020-11-17T03:26:52.2601395Z ##[debug]Importing function 'Get-SfSdkVersion'. 2020-11-17T03:26:52.2613306Z ##[debug]Importing function 'Publish-Telemetry'. 2020-11-17T03:26:52.2625761Z ##[debug]Importing function 'Remove-ClientCertificate'. 2020-11-17T03:26:52.2638586Z ##[debug]Importing function 'Trace-WarningIfCertificateNotPresentInLocalCertStore'. 2020-11-17T03:26:52.2658857Z ##[debug]Importing variable 'SF_Operations'. 2020-11-17T03:26:52.2680914Z ##[debug]Loading module from path 'D:\vstsAgent_work_tasks\ServiceFabricDeploy_c6650aa0-185b-11e6-a47d-df93e7a34c64\1.9.3\ps_modules\PowershellHelpers\PowershellHelpers.psm1'. 2020-11-17T03:26:52.2708757Z ##[debug]Loading resource strings from: D:\vstsAgent_work_tasks\ServiceFabricDeploy_c6650aa0-185b-11e6-a47d-df93e7a34c64\1.9.3\ps_modules\PowershellHelpers\module.json 2020-11-17T03:26:52.2795575Z ##[debug]Loaded 3 strings. 2020-11-17T03:26:52.2810025Z ##[debug]SYSTEM_CULTURE: 'en-US' 2020-11-17T03:26:52.2819237Z ##[debug]Loading resource strings from: D:\vstsAgent_work_tasks\ServiceFabricDeploy_c6650aa0-185b-11e6-a47d-df93e7a34c64\1.9.3\ps_modules\PowershellHelpers\Strings\resources.resjson\en-US\resources.resjson 2020-11-17T03:26:52.2920542Z ##[debug]Loaded 3 strings. 2020-11-17T03:26:52.2954199Z ##[debug]Exporting function 'Invoke-ActionWithRetries'. 2020-11-17T03:26:52.2967013Z ##[debug]Exporting function 'Get-TempDirectoryPath'. 2020-11-17T03:26:52.2977542Z ##[debug]Importing function 'Get-TempDirectoryPath'. 2020-11-17T03:26:52.3166563Z ##[debug]Importing function 'Invoke-ActionWithRetries'. 2020-11-17T03:26:52.3247775Z ##[debug]INPUT_PUBLISHPROFILEPATH: 'D:\vstsAgent_work\r1\a*\drop\projectartifacts*\PublishProfiles\Cloud.xml' 2020-11-17T03:26:52.3253886Z Searching for path: D:\vstsAgent_work\r1\a*\drop\projectartifacts*\PublishProfiles\Cloud.xml 2020-11-17T03:26:52.3271249Z ##[debug]Entering Find-VstsFiles. 2020-11-17T03:26:52.3283947Z ##[debug] LegacyPattern: 'D:\vstsAgent_work\r1\a*\drop\projectartifacts*\PublishProfiles\Cloud.xml' 2020-11-17T03:26:52.3302031Z ##[debug]Entering Get-MatchingItems. 2020-11-17T03:26:52.3313905Z ##[debug] IncludePatterns: 'D:\vstsAgent_work\r1\a*\drop\projectartifacts*\PublishProfiles\Cloud.xml' 2020-11-17T03:26:52.3329395Z ##[debug] ExcludePatterns: '' 2020-11-17T03:26:52.3340673Z ##[debug] IncludeFiles: 'True' 2020-11-17T03:26:52.3351366Z ##[debug] IncludeDirectories: 'False' 2020-11-17T03:26:52.3362005Z ##[debug] Force: 'False' 2020-11-17T03:26:52.3762046Z ##[debug]Path: D:\vstsAgent_work\r1\a_POC-ServiceFabric-Azure Service Fabric application-CI\drop\projectartifacts\src\TemplateServiceNamespace.FabricApp\PublishProfiles\Cloud.xml 2020-11-17T03:26:52.3792996Z ##[debug]Leaving Get-MatchingItems. 2020-11-17T03:26:52.3794741Z ##[debug]Total found: 1 2020-11-17T03:26:52.3795415Z ##[debug]Leaving Find-VstsFiles. 2020-11-17T03:26:52.3847485Z ##[debug]Asserting leaf path exists: 'D:\vstsAgent_work\r1\a_POC-ServiceFabric-Azure Service Fabric application-CI\drop\projectartifacts\src\TemplateServiceNamespace.FabricApp\PublishProfiles\Cloud.xml' 2020-11-17T03:26:52.3848265Z Found path: D:\vstsAgent_work\r1\a_POC-ServiceFabric-Azure Service Fabric application-CI\drop\projectartifacts\src\TemplateServiceNamespace.FabricApp\PublishProfiles\Cloud.xml 2020-11-17T03:26:52.4198558Z ##[debug]INPUT_APPLICATIONPACKAGEPATH: 'D:\vstsAgent_work\r1\a*\drop\applicationpackage' 2020-11-17T03:26:52.4208217Z Searching for path: D:\vstsAgent_work\r1\a*\drop\applicationpackage 2020-11-17T03:26:52.4224765Z ##[debug]Entering Find-VstsFiles. 2020-11-17T03:26:52.4237597Z ##[debug] LegacyPattern: 'D:\vstsAgent_work\r1\a*\drop\applicationpackage' 2020-11-17T03:26:52.4249450Z ##[debug] IncludeDirectories: 'True' 2020-11-17T03:26:52.4268284Z ##[debug]Entering Get-MatchingItems. 2020-11-17T03:26:52.4280277Z ##[debug] IncludePatterns: 'D:\vstsAgent_work\r1\a**\drop\applicationpackage' 2020-11-17T03:26:52.4291979Z ##[debug] ExcludePatterns: '' 2020-11-17T03:26:52.4303545Z ##[debug] IncludeFiles: 'False' 2020-11-17T03:26:52.4315159Z ##[debug] IncludeDirectories: 'True' 2020-11-17T03:26:52.4326889Z ##[debug] Force: 'False' 2020-11-17T03:26:52.4612410Z ##[debug]Path: D:\vstsAgent_work\r1\a_POC-ServiceFabric-Azure Service Fabric application-CI\drop\applicationpackage 2020-11-17T03:26:52.4626035Z ##[debug]Leaving Get-MatchingItems. 2020-11-17T03:26:52.4638361Z ##[debug]Total found: 1 2020-11-17T03:26:52.4652773Z ##[debug]Leaving Find-VstsFiles. 2020-11-17T03:26:52.4666416Z ##[debug]Asserting container path exists: 'D:\vstsAgent_work\r1\a_POC-ServiceFabric-Azure Service Fabric application-CI\drop\applicationpackage' 2020-11-17T03:26:52.4674269Z Found path: D:\vstsAgent_work\r1\a_POC-ServiceFabric-Azure Service Fabric application-CI\drop\applicationpackage 2020-11-17T03:26:52.4690885Z ##[debug]INPUT_SERVICECONNECTIONNAME: '1e78a924-febb-471f-98f5-7724fa0bde4a' 2020-11-17T03:26:52.4782028Z ##[debug]ENDPOINT_URL_1e78a924-febb-471f-98f5-7724fa0bde4a: 'tcp://bqldmselmx10.boqdev.local:19000/' 2020-11-17T03:26:52.4801306Z ##[debug]ENDPOINT_AUTH_1e78a924-febb-471f-98f5-7724fa0bde4a: '****' 2020-11-17T03:26:52.4820526Z ##[debug]ENDPOINT_DATA_1e78a924-febb-471f-98f5-7724fa0bde4a: '{}' 2020-11-17T03:26:52.4842717Z ##[debug]INPUT_COPYPACKAGETIMEOUTSEC (empty) 2020-11-17T03:26:52.4875196Z ##[debug]INPUT_REGISTERPACKAGETIMEOUTSEC (empty) 2020-11-17T03:26:52.4925651Z ##[debug]INPUT_COMPRESSPACKAGE: 'false' 2020-11-17T03:26:52.4953593Z ##[debug]INPUT_SKIPUPGRADESAMETYPEANDVERSION: 'true' 2020-11-17T03:26:52.4969382Z ##[debug]INPUT_SKIPPACKAGEVALIDATION: 'false' 2020-11-17T03:26:52.4984917Z ##[debug]INPUT_UNREGISTERUNUSEDVERSIONS: 'true' 2020-11-17T03:26:52.5000527Z ##[debug]INPUT_CONFIGUREDOCKERSETTINGS: 'false' 2020-11-17T03:26:52.5015973Z ##[debug]INPUT_OVERRIDEAPPLICATIONPARAMETER: 'false' 2020-11-17T03:26:52.5116115Z ##[debug]Entering Connect-ServiceFabricClusterFromServiceEndpoint. 2020-11-17T03:26:52.5140252Z ##[debug] ClusterConnectionParameters: 'System.Collections.Hashtable' 2020-11-17T03:26:52.5161412Z ##[debug] ConnectedServiceEndpoint: '@{Url=tcp://FQDN:19000/; Data=; Auth=}' 2020-11-17T03:26:52.5178997Z ##[debug]Loading module from path 'D:\vstsAgent_work_tasks\ServiceFabricDeploy_c6650aa0-185b-11e6-a47d-df93e7a34c64\1.9.3\psmodules\TlsHelper\TlsHelper_.psm1'. 2020-11-17T03:26:52.5233807Z ##[debug]Loading resource strings from: D:\vstsAgent_work_tasks\ServiceFabricDeploy_c6650aa0-185b-11e6-a47d-df93e7a34c64\1.9.3\psmodules\TlsHelper/module.json 2020-11-17T03:26:52.5299810Z ##[debug]Loaded 3 strings. 2020-11-17T03:26:52.5319397Z ##[debug]SYSTEM_CULTURE: 'en-US' 2020-11-17T03:26:52.5334647Z ##[debug]Loading resource strings from: D:\vstsAgent_work_tasks\ServiceFabricDeploy_c6650aa0-185b-11e6-a47d-df93e7a34c64\1.9.3\psmodules\TlsHelper\Strings\resources.resjson\en-US\resources.resjson 2020-11-17T03:26:52.5399104Z ##[debug]Loaded 3 strings. 2020-11-17T03:26:52.5410861Z ##[debug]Exporting function 'Add-Tls12InSession'. 2020-11-17T03:26:52.5422235Z ##[debug]Exporting function 'Assert-TlsError'. 2020-11-17T03:26:52.5434968Z ##[debug]Importing function 'Add-Tls12InSession'. 2020-11-17T03:26:52.5446571Z ##[debug]Importing function 'Assert-TlsError'. 2020-11-17T03:26:52.5463420Z ##[debug]Importing function 'Get-TempDirectoryPath'. 2020-11-17T03:26:52.5474507Z ##[debug]Importing function 'Invoke-ActionWithRetries'. 2020-11-17T03:26:52.5784278Z Added TLS 1.2 in session. 2020-11-17T03:26:52.6258275Z Imported cluster client certificate with thumbprint 'Thumbprint'. 2020-11-17T03:27:33.0408454Z ##[warning]Failed to contact Naming Service. Attempting to contact Failover Manager Service... 2020-11-17T03:27:33.0416201Z ##[debug]Processed: ##vso[task.logissue type=warning]Failed to contact Naming Service. Attempting to contact Failover Manager Service... 2020-11-17T03:28:13.0401521Z ##[warning]Failed to contact Failover Manager Service, Attempting to contact FMM... 2020-11-17T03:28:13.0402986Z ##[debug]Processed: ##vso[task.logissue type=warning]Failed to contact Failover Manager Service, Attempting to contact FMM... 2020-11-17T03:28:53.1288399Z ##[debug]System.Fabric.FabricTransientException: Could not ping any of the provided Service Fabric gateway endpoints. ---> System.Runtime.InteropServices.COMException: Exception from HRESULT: 0x80071C49 2020-11-17T03:28:53.1289419Z ##[debug] at System.Fabric.Interop.NativeClient.IFabricQueryClient11.EndGetPartitionList2(IFabricAsyncOperationContext context) 2020-11-17T03:28:53.1290178Z ##[debug] at System.Fabric.FabricClient.QueryClient.GetPartitionListAsyncEndWrapper(IFabricAsyncOperationContext context) 2020-11-17T03:28:53.1290678Z ##[debug] at System.Fabric.Interop.AsyncCallOutAdapter2, D:\vstsAgent_work_tasks\ServiceFabricDeploy_c6650aa0-185b-11e6-a47d-df93e7a34c64\1.9.3\deploy.ps1: line 59
2020-11-17T03:35:13.4071915Z ##[debug]at , : line 1
2020-11-17T03:35:13.4072312Z ##[debug]at , : line 22
2020-11-17T03:35:13.4072702Z ##[debug]at , : line 18
2020-11-17T03:35:13.4073092Z ##[debug]at , : line 1
2020-11-17T03:35:13.4073448Z ##[debug]Exception:
2020-11-17T03:35:13.4074044Z ##[debug]System.Fabric.FabricTransientException: Could not ping any of the provided Service Fabric gateway endpoints. ---> System.Runtime.InteropServices.COMException: Exception from HRESULT: 0x80071C49
2020-11-17T03:35:13.4074960Z ##[debug] at System.Fabric.Interop.NativeClient.IFabricQueryClient11.EndGetPartitionList2(IFabricAsyncOperationContext context)
2020-11-17T03:35:13.4075528Z ##[debug] at System.Fabric.FabricClient.QueryClient.GetPartitionListAsyncEndWrapper(IFabricAsyncOperationContext context)
2020-11-17T03:35:13.4076106Z ##[debug] at System.Fabric.Interop.AsyncCallOutAdapter2`1.Finish(IFabricAsyncOperationContext context, Boolean expectedCompletedSynchronously)
2020-11-17T03:35:13.4076609Z ##[debug] --- End of inner exception stack trace ---
2020-11-17T03:35:13.4077068Z ##[debug] at System.Management.Automation.MshCommandRuntime.ThrowTerminatingError(ErrorRecord errorRecord)
2020-11-17T03:35:13.4077923Z ##[error]Could not ping any of the provided Service Fabric gateway endpoints.
2020-11-17T03:35:13.4079083Z ##[debug]Processed: ##vso[task.logissue type=error]Could not ping any of the provided Service Fabric gateway endpoints.
2020-11-17T03:35:13.4080725Z ##[debug]Processed: ##vso[task.complete result=Failed]
2020-11-17T03:35:13.4417711Z ##[section]Finishing: Deploy Service Fabric Application
1.Finish(IFabricAsyncOperationContext context, Boolean expectedCompletedSynchronously) 2020-11-17T03:28:53.1291088Z ##[debug] --- End of inner exception stack trace --- 2020-11-17T03:28:53.1291468Z ##[debug]System.Management.Automation.PipelineStoppedException: The pipeline has been stopped. 2020-11-17T03:28:53.1292235Z ##[debug] at System.Management.Automation.MshCommandRuntime.ThrowTerminatingError(ErrorRecord errorRecord) 2020-11-17T03:28:53.1292727Z ##[debug] at System.Management.Automation.Cmdlet.ThrowTerminatingError(ErrorRecord errorRecord) 2020-11-17T03:28:53.1293217Z ##[debug] at Microsoft.ServiceFabric.Powershell.CommonCmdletBase.TestClusterConnection(IClusterConnection clusterConnection, Boolean testNetwork) 2020-11-17T03:28:53.1293644Z ##[debug] at Microsoft.ServiceFabric.Powershell.ConnectCluster.ProcessRecord() 2020-11-17T03:28:53.1294052Z ##[debug]System.Management.Automation.PipelineStoppedException: The pipeline has been stopped. 2020-11-17T03:28:53.1294486Z ##[debug] at System.Management.Automation.MshCommandRuntime.ThrowTerminatingError(ErrorRecord errorRecord) 2020-11-17T03:28:53.1294904Z ##[debug] at System.Management.Automation.Cmdlet.ThrowTerminatingError(ErrorRecord errorRecord) 2020-11-17T03:28:53.1295290Z ##[debug] at Microsoft.ServiceFabric.Powershell.ConnectCluster.ProcessRecord() 2020-11-17T03:29:33.1518555Z ##[warning]Failed to contact Naming Service. Attempting to contact Failover Manager Service... 2020-11-17T03:29:33.1520239Z ##[debug]Processed: ##vso[task.logissue type=warning]Failed to contact Naming Service. Attempting to contact Failover Manager Service... 2020-11-17T03:30:13.1716119Z ##[warning]Failed to contact Failover Manager Service, Attempting to contact FMM... 2020-11-17T03:30:13.1717703Z ##[debug]Processed: ##vso[task.logissue type=warning]Failed to contact Failover Manager Service, Attempting to contact FMM... 2020-11-17T03:30:53.1970506Z ##[debug]System.Fabric.FabricTransientException: Could not ping any of the provided Service Fabric gateway endpoints. ---> System.Runtime.InteropServices.COMException: Exception from HRESULT: 0x80071C49 2020-11-17T03:30:53.1971946Z ##[debug] at System.Fabric.Interop.NativeClient.IFabricQueryClient11.EndGetPartitionList2(IFabricAsyncOperationContext context) 2020-11-17T03:30:53.1972590Z ##[debug] at System.Fabric.FabricClient.QueryClient.GetPartitionListAsyncEndWrapper(IFabricAsyncOperationContext context) 2020-11-17T03:30:53.1973240Z ##[debug] at System.Fabric.Interop.AsyncCallOutAdapter2
1.Finish(IFabricAsyncOperationContext context, Boolean expectedCompletedSynchronously) 2020-11-17T03:30:53.1974085Z ##[debug] --- End of inner exception stack trace --- 2020-11-17T03:30:53.1974591Z ##[debug]System.Management.Automation.PipelineStoppedException: The pipeline has been stopped. 2020-11-17T03:30:53.1975152Z ##[debug] at System.Management.Automation.MshCommandRuntime.ThrowTerminatingError(ErrorRecord errorRecord) 2020-11-17T03:30:53.1975669Z ##[debug] at System.Management.Automation.Cmdlet.ThrowTerminatingError(ErrorRecord errorRecord) 2020-11-17T03:30:53.1976261Z ##[debug] at Microsoft.ServiceFabric.Powershell.CommonCmdletBase.TestClusterConnection(IClusterConnection clusterConnection, Boolean testNetwork) 2020-11-17T03:30:53.1976839Z ##[debug] at Microsoft.ServiceFabric.Powershell.ConnectCluster.ProcessRecord() 2020-11-17T03:30:53.1977373Z ##[debug]System.Management.Automation.PipelineStoppedException: The pipeline has been stopped. 2020-11-17T03:30:53.1977951Z ##[debug] at System.Management.Automation.MshCommandRuntime.ThrowTerminatingError(ErrorRecord errorRecord) 2020-11-17T03:30:53.1978499Z ##[debug] at System.Management.Automation.Cmdlet.ThrowTerminatingError(ErrorRecord errorRecord) 2020-11-17T03:30:53.1979080Z ##[debug] at Microsoft.ServiceFabric.Powershell.ConnectCluster.ProcessRecord() 2020-11-17T03:30:53.2071346Z Exception occurred: System.Fabric.FabricTransientException 2020-11-17T03:30:53.2085056Z Retrying to connect to cluster.. 2020-11-17T03:31:43.2221231Z ##[warning]Failed to contact Naming Service. Attempting to contact Failover Manager Service... 2020-11-17T03:31:43.2222990Z ##[debug]Processed: ##vso[task.logissue type=warning]Failed to contact Naming Service. Attempting to contact Failover Manager Service... 2020-11-17T03:32:23.2297453Z ##[warning]Failed to contact Failover Manager Service, Attempting to contact FMM... 2020-11-17T03:32:23.2299245Z ##[debug]Processed: ##vso[task.logissue type=warning]Failed to contact Failover Manager Service, Attempting to contact FMM... 2020-11-17T03:33:03.2514704Z ##[debug]System.Fabric.FabricTransientException: Could not ping any of the provided Service Fabric gateway endpoints. ---> System.Runtime.InteropServices.COMException: Exception from HRESULT: 0x80071C49 2020-11-17T03:33:03.2516052Z ##[debug] at System.Fabric.Interop.NativeClient.IFabricQueryClient11.EndGetPartitionList2(IFabricAsyncOperationContext context) 2020-11-17T03:33:03.2516630Z ##[debug] at System.Fabric.FabricClient.QueryClient.GetPartitionListAsyncEndWrapper(IFabricAsyncOperationContext context) 2020-11-17T03:33:03.2517215Z ##[debug] at System.Fabric.Interop.AsyncCallOutAdapter21.Finish(IFabricAsyncOperationContext context, Boolean expectedCompletedSynchronously) 2020-11-17T03:33:03.2517708Z ##[debug] --- End of inner exception stack trace --- 2020-11-17T03:33:03.2518187Z ##[debug]System.Management.Automation.PipelineStoppedException: The pipeline has been stopped. 2020-11-17T03:33:03.2518752Z ##[debug] at System.Management.Automation.MshCommandRuntime.ThrowTerminatingError(ErrorRecord errorRecord) 2020-11-17T03:33:03.2519285Z ##[debug] at System.Management.Automation.Cmdlet.ThrowTerminatingError(ErrorRecord errorRecord) 2020-11-17T03:33:03.2519836Z ##[debug] at Microsoft.ServiceFabric.Powershell.CommonCmdletBase.TestClusterConnection(IClusterConnection clusterConnection, Boolean testNetwork) 2020-11-17T03:33:03.2520356Z ##[debug] at Microsoft.ServiceFabric.Powershell.ConnectCluster.ProcessRecord() 2020-11-17T03:33:03.2520839Z ##[debug]System.Management.Automation.PipelineStoppedException: The pipeline has been stopped. 2020-11-17T03:33:03.2521352Z ##[debug] at System.Management.Automation.MshCommandRuntime.ThrowTerminatingError(ErrorRecord errorRecord) 2020-11-17T03:33:03.2521848Z ##[debug] at System.Management.Automation.Cmdlet.ThrowTerminatingError(ErrorRecord errorRecord) 2020-11-17T03:33:03.2522382Z ##[debug] at Microsoft.ServiceFabric.Powershell.ConnectCluster.ProcessRecord() 2020-11-17T03:33:03.2523467Z Exception occurred: System.Fabric.FabricTransientException 2020-11-17T03:33:03.2525170Z Retrying to connect to cluster.. 2020-11-17T03:33:53.2564359Z ##[warning]Failed to contact Naming Service. Attempting to contact Failover Manager Service... 2020-11-17T03:33:53.2565963Z ##[debug]Processed: ##vso[task.logissue type=warning]Failed to contact Naming Service. Attempting to contact Failover Manager Service... 2020-11-17T03:34:33.2691245Z ##[warning]Failed to contact Failover Manager Service, Attempting to contact FMM... 2020-11-17T03:34:33.2692743Z ##[debug]Processed: ##vso[task.logissue type=warning]Failed to contact Failover Manager Service, Attempting to contact FMM... 2020-11-17T03:35:13.3146055Z ##[debug]System.Fabric.FabricTransientException: Could not ping any of the provided Service Fabric gateway endpoints. ---> System.Runtime.InteropServices.COMException: Exception from HRESULT: 0x80071C49 2020-11-17T03:35:13.3151218Z ##[debug] at System.Fabric.Interop.NativeClient.IFabricQueryClient11.EndGetPartitionList2(IFabricAsyncOperationContext context) 2020-11-17T03:35:13.3153850Z ##[debug] at System.Fabric.FabricClient.QueryClient.GetPartitionListAsyncEndWrapper(IFabricAsyncOperationContext context) 2020-11-17T03:35:13.3157169Z ##[debug] at System.Fabric.Interop.AsyncCallOutAdapter2
1.Finish(IFabricAsyncOperationContext context, Boolean expectedCompletedSynchronously) 2020-11-17T03:35:13.3157908Z ##[debug] --- End of inner exception stack trace --- 2020-11-17T03:35:13.3158544Z ##[debug]System.Management.Automation.PipelineStoppedException: The pipeline has been stopped. 2020-11-17T03:35:13.3159235Z ##[debug] at System.Management.Automation.MshCommandRuntime.ThrowTerminatingError(ErrorRecord errorRecord) 2020-11-17T03:35:13.3159909Z ##[debug] at System.Management.Automation.Cmdlet.ThrowTerminatingError(ErrorRecord errorRecord) 2020-11-17T03:35:13.3160936Z ##[debug] at Microsoft.ServiceFabric.Powershell.CommonCmdletBase.TestClusterConnection(IClusterConnection clusterConnection, Boolean testNetwork) 2020-11-17T03:35:13.3161644Z ##[debug] at Microsoft.ServiceFabric.Powershell.ConnectCluster.ProcessRecord() 2020-11-17T03:35:13.3162301Z ##[debug]System.Management.Automation.PipelineStoppedException: The pipeline has been stopped. 2020-11-17T03:35:13.3162989Z ##[debug] at System.Management.Automation.MshCommandRuntime.ThrowTerminatingError(ErrorRecord errorRecord) 2020-11-17T03:35:13.3163659Z ##[debug] at System.Management.Automation.Cmdlet.ThrowTerminatingError(ErrorRecord errorRecord) 2020-11-17T03:35:13.3164279Z ##[debug] at Microsoft.ServiceFabric.Powershell.ConnectCluster.ProcessRecord() 2020-11-17T03:35:13.3164809Z Exception occurred: System.Fabric.FabricTransientException 2020-11-17T03:35:13.3180446Z ##[debug]Leaving Connect-ServiceFabricClusterFromServiceEndpoint. 2020-11-17T03:35:13.3355649Z ##[debug]SYSTEM_JOBID: '19fcd928-6143-5993-00fe-46e44e017377' 2020-11-17T03:35:13.3410843Z Service fabric SDK version: 4.1.428.9590. 2020-11-17T03:35:13.3538981Z ##[debug]Processed: ##vso[telemetry.publish area=TaskHub;feature=ServiceFabricDeploy]{"OperationId":"ConnectCluster","ExceptionData":"System.Fabric.FabricTransientException;System.Runtime.InteropServices.COMException;|D:\vstsAgent\_work\_tasks\ServiceFabricDeploy_c6650aa0-185b-11e6-a47d-df93e7a34c64\1.9.3\ps_modules\PowershellHelpers\Helpers.ps1|70","JobId":"19fcd928-6143-5993-00fe-46e44e017377","SDKVersion":"4.1.428.9590"} 2020-11-17T03:35:13.3545264Z ##[debug]Leaving D:\vstsAgent_work_tasks\ServiceFabricDeploy_c6650aa0-185b-11e6-a47d-df93e7a34c64\1.9.3\deploy.ps1. 2020-11-17T03:35:13.4062458Z ##[debug]Caught exception from task script. 2020-11-17T03:35:13.4062797Z ##[debug]Error record: 2020-11-17T03:35:13.4064350Z ##[debug]Could not ping any of the provided Service Fabric gateway endpoints. 2020-11-17T03:35:13.4065103Z ##[debug]At D:\vstsAgent_work_tasks\ServiceFabricDeploy_c6650aa0-185b-11e6-a47d-df93e7a34c64\1.9.3\ps_modules\PowershellHelpers\Helpers.ps1:70 char:17 2020-11-17T03:35:13.4065996Z ##[debug]+ throw $exception 2020-11-17T03:35:13.4066372Z ##[debug]+~~~~ 2020-11-17T03:35:13.4066858Z ##[debug] + CategoryInfo : OperationStopped: (:) [], FabricTransientException 2020-11-17T03:35:13.4067389Z ##[debug] + FullyQualifiedErrorId : Could not ping any of the provided Service Fabric gateway endpoints. 2020-11-17T03:35:13.4067799Z ##[debug] 2020-11-17T03:35:13.4068128Z ##[debug]Script stack trace: 2020-11-17T03:35:13.4068706Z ##[debug]at Invoke-ActionWithRetries, D:\vstsAgent_work_tasks\ServiceFabricDeploy_c6650aa0-185b-11e6-a47d-df93e7a34c64\1.9.3\ps_modules\PowershellHelpers\Helpers.ps1: line 70 2020-11-17T03:35:13.4069585Z ##[debug]at Connect-ServiceFabricClusterAction, D:\vstsAgent_work_tasks\ServiceFabricDeploy_c6650aa0-185b-11e6-a47d-df93e7a34c64\1.9.3\ps_modules\ServiceFabricHelpers\Connect-ServiceFabricClusterFromServiceEndpoint.ps1: line 276 2020-11-17T03:35:13.4070557Z ##[debug]at Connect-ServiceFabricClusterFromServiceEndpoint, D:\vstsAgent_work_tasks\ServiceFabricDeploy_c6650aa0-185b-11e6-a47d-df93e7a34c64\1.9.3\ps_modules\ServiceFabricHelpers\Connect-ServiceFabricClusterFromServiceEndpoint.ps1: line 234 2020-11-17T03:35:13.4071385Z ##[debug]atTroubleshooting
Checkout how to troubleshoot failures and collect debug logs: https://docs.microsoft.com/en-us/vsts/build-release/actions/troubleshooting
Error logs
[Insert error from the logs here for a quick overview]