Copy-ServiceFabricClusterPackage

Copies a Service Fabric runtime installation file and/or cluster manifest to the image store.

Syntax

Copy-ServiceFabricClusterPackage
    -CodePackagePath <String>
    -ClusterManifestPath <String>
    [-ImageStoreConnectionString <String>]
    [-CodePackagePathInImageStore <String>]
    [-ClusterManifestPathInImageStore <String>]
    [-CertStoreLocation <StoreLocation>]
    [-TimeoutSec <Int32>]
    [<CommonParameters>]
Copy-ServiceFabricClusterPackage
    [-Code]
    -CodePackagePath <String>
    [-ClusterManifestPath <String>]
    [-ImageStoreConnectionString <String>]
    [-CodePackagePathInImageStore <String>]
    [-CertStoreLocation <StoreLocation>]
    [-TimeoutSec <Int32>]
    [<CommonParameters>]
Copy-ServiceFabricClusterPackage
    [-Config]
    [-CodePackagePath <String>]
    -ClusterManifestPath <String>
    [-ImageStoreConnectionString <String>]
    [-ClusterManifestPathInImageStore <String>]
    [-CertStoreLocation <StoreLocation>]
    [-TimeoutSec <Int32>]
    [<CommonParameters>]

Description

The Copy-ServiceFabricClusterPackage cmdlet copies a Service Fabric runtime installation file and/or cluster manifest to the image store.

After copying the package to the image store, use the Register-ServiceFabricClusterPackage cmdlet to register the package.

After registering the package to the image store, use the Remove-ServiceFabricClusterPackage cmdlet to remove the package from the image store.

To manage Service Fabric clusters, start Windows PowerShell by using the Run as administrator option. Before you perform any operation on a Service Fabric cluster, establish a connection to the cluster by using the Connect-ServiceFabricCluster cmdlet.

Examples

Example 1: Copy code and manifest to the image store

PS C:\> Copy-ServiceFabricClusterPackage -ClusterManifestPath "\\configStore\ClusterManifests\CH1\ClusterManifest_123.xml" -CodePackagePath "\\codeStore\MsiFiles\ServiceFabric.2.0.59.0.msi" -ImageStoreConnectionString "fabric:ImageStore"

This command copies the specified MSI and cluster manifest file to the image store. When the CodePackagePathInImageStore or ClusterManifestPathInImageStore parameters are not provided, the file name is used by default.

Example 2: Copy only cluster manifest to the image store

PS C:\> Copy-ServiceFabricClusterPackage -Config -ClusterManifestPath "\\configStore\ClusterManifests\CH1\ClusterManifest_123.xml" -ClusterManifestPathInImageStore ClusterManifest.xml -ImageStoreConnectionString "fabric:ImageStore"

This command copies the specified cluster manifest to ClusterManifest.xml in the image store.

Example 3: Copy only runtime installation file to the image store

PS C:\> Copy-ServiceFabricClusterPackage -Code -CodePackagePath "\\codeStore\MsiFiles\ServiceFabric.2.0.59.0.msi" -CodePackagePathInImageStore ServiceFabric.msi -ImageStoreConnectionString "fabric:ImageStore"

This command copies just the specified MSI file to ServiceFabric.msi in the image store.

Parameters

-CertStoreLocation

{{Fill CertStoreLocation Description}}

Type:StoreLocation
Accepted values:CurrentUser, LocalMachine
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-ClusterManifestPath

Specifies the path to a Service Fabric cluster manifest.

Type:String
Position:Named
Default value:None
Required:True
Accept pipeline input:False
Accept wildcard characters:False

-ClusterManifestPathInImageStore

Specifies the relative path in the image store where the cluster manifest should be copied to.

Type:String
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-Code

Specifies that only Service Fabric runtime installation file has to be copied to the image store.

Type:SwitchParameter
Position:Named
Default value:None
Required:True
Accept pipeline input:False
Accept wildcard characters:False

-CodePackagePath

Specifies the file path to a Service Fabric runtime installation file. This file can be a MSI, CAB, or DEB file.

Type:String
Position:Named
Default value:None
Required:True
Accept pipeline input:False
Accept wildcard characters:False

-CodePackagePathInImageStore

Specifies the relative path in the image store where the Service Fabric runtime installation file should be copied to.

Type:String
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-Config

Specifies that only Service Fabric cluster manifest file has to be copied to the image store.

Type:SwitchParameter
Position:Named
Default value:None
Required:True
Accept pipeline input:False
Accept wildcard characters:False

-ImageStoreConnectionString

Specifies the connection string for the Service Fabric image store. Read more about the image store connection string.

Type:String
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-TimeoutSec

Specifies the timeout in seconds, for the operation. By default, the maximum timeout value is limited to 1800 seconds.

Type:Int32
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

Inputs

None

Outputs

System.Object