$AppPath = "$PSScriptRoot\OcelotApplication" $sdkInstallPath = (Get-ItemProperty 'HKLM:\Software\Microsoft\Service Fabric SDK').FabricSDKInstallPath $sfSdkPsModulePath = $sdkInstallPath + "Tools\PSModule\ServiceFabricSDK" Import-Module $sfSdkPsModulePath\ServiceFabricSDK.psm1 $StatefulServiceManifestlocation = $AppPath + "\OcelotApplicationServicePkg\" $StatefulServiceManifestlocationLinux = $StatefulServiceManifestlocation + "\ServiceManifest-Linux.xml" $StatefulServiceManifestlocationWindows = $StatefulServiceManifestlocation + "\ServiceManifest-Windows.xml" $StatefulServiceManifestlocationFinal= $StatefulServiceManifestlocation + "ServiceManifest.xml" Copy-Item -Path $StatefulServiceManifestlocationWindows -Destination $StatefulServiceManifestlocationFinal -Force $WebServiceManifestlocation = $AppPath + "\OcelotApplicationApiGatewayPkg\" $WebServiceManifestlocationLinux = $WebServiceManifestlocation + "\ServiceManifest-Linux.xml" $WebServiceManifestlocationWindows = $WebServiceManifestlocation + "\ServiceManifest-Windows.xml" $WebServiceManifestlocationFinal= $WebServiceManifestlocation + "ServiceManifest.xml" Copy-Item -Path $WebServiceManifestlocationWindows -Destination $WebServiceManifestlocationFinal -Force Copy-ServiceFabricApplicationPackage -ApplicationPackagePath $AppPath -ApplicationPackagePathInImageStore OcelotServiceApplicationType -ImageStoreConnectionString (Get-ImageStoreConnectionStringFromClusterManifest(Get-ServiceFabricClusterManifest)) -TimeoutSec 1800 Register-ServiceFabricApplicationType OcelotServiceApplicationType New-ServiceFabricApplication fabric:/OcelotServiceApplication OcelotServiceApplicationType 1.0.0