When you try to deploy ASP.NET Core Stateless applications into Service Fabric on Azure in like below environment.
- Visual Studio 2017
- Microsoft Azure Service Fabri SDK and Tools - 3.0.456
The deployment might stop when scripts log "Copying application to image store" like below.
C:\Users\xxxxxxxx\source\repos\FabricApp01\Web1\bin\Debug\netcoreapp2.0\win7-x64\Web1.dllWeb1 -> C:\Users\xxxxxxxx\source\repos\FabricApp01\Web1\obj\Debug\netcoreapp2.0\win7-x64\PubTmp\Out\FabricApp01 -> C:\Users\xxxxxxxx\source\repos\FabricApp01\FabricApp02\pkg\Debug-------- Package: Project: FabricApp01 succeeded, Time elapsed: 00:00:18.7823627 --------3>Started executing script 'Deploy-FabricApplication.ps1'.3>powershell -NonInteractive -NoProfile -WindowStyle Hidden -ExecutionPolicy Bypass -Command ". 'C:\Users\xxxxxxxx\source\repos\FabricApp01\FabricApp01\Scripts\Deploy-FabricApplication.ps1' -ApplicationPackagePath 'C:\Users\xxxxxxxx\source\repos\FabricApp01\FabricApp01\pkg\Debug' -PublishProfileFile 'C:\Users\xxxxxxxx\source\repos\FabricApp01\FabricApp01\PublishProfiles\Cloud.xml' -DeployOnly:$false -ApplicationParameter:@{} -UnregisterUnusedApplicationVersionsAfterUpgrade $false -OverrideUpgradeBehavior 'None' -OverwriteBehavior 'SameAppTypeAndVersion' -SkipPackageValidation:$false -ErrorAction Stop" 3>Copying application to image store.
This issue is already known in Copy-ServiceFabricApplicationPackage hangs forever · Issue #813 · Azure/service-fabric-issues · GitHub. You need to remove your "Local Cluster" when you deploy your applications into your cluster on Azure.
After removing Local Cluster, you can deploy your applications into Service Fabric on Azure.