Register-​Service​Fabric​Cluster​Package

Registers Service Fabric runtime installation file and/or cluster manifest with the cluster.

Syntax

Register-ServiceFabricClusterPackage
        -ClusterManifestPath <String>
        -CodePackagePath <String>
        [-TimeoutSec <Int32>]
        [<CommonParameters>]
Register-ServiceFabricClusterPackage
        -ClusterManifestPath <String>
        [-CodePackagePath <String>]
        [-Config]
        [-TimeoutSec <Int32>]
        [<CommonParameters>]
Register-ServiceFabricClusterPackage
        [-ClusterManifestPath <String>]
        [-Code]
        -CodePackagePath <String>
        [-TimeoutSec <Int32>]
        [<CommonParameters>]

Description

The Register-ServiceFabricClusterPackage cmdlet registers a Service Fabric cluster manifest and/or a Service Fabric runtime installation file.

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: Register a package that contains both code and configuration

PS C:\> Register-ServiceFabricClusterPackage -ClusterManifestPath "ClusterManifest.xml" -CodePackagePath "ServiceFabric.msi"

This command registers both the cluster manifest and MSI file with the cluster.

Example 2: Register only the cluster manifest

PS C:\> Register-ServiceFabricClusterPackage -Config -ClusterManifestPath "ClusterManifest.xml"

This command registers just the cluster manifest with the cluster.

Example 3: Register only the runtime installation file

PS C:\> Register-ServiceFabricClusterPackage -Code -CodePackagePath "ServiceFabric.msi"

This command registers just the runtime installation file with the cluster.

Required Parameters

-ClusterManifestPath

Specifies the path to a Service Fabric cluster manifest file in the ImageStore. This path specified in ClusterManifestPathInImageStore in Copy-ServiceFabricClusterPackage cmdlet should be provided here.

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

Specifies that only Service Fabric runtime installation file has to be registered with the cluster.

Type:SwitchParameter
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-CodePackagePath

Specifies the path to a Service Fabric runtime installation file in the ImageStore. This path specified in CodePackagePathInImageStore in Copy-ServiceFabricClusterPackage cmdlet should be provided here.

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

Specifies that only Service Fabric cluster manifest file has to be registered with the cluster.

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

Optional Parameters

-TimeoutSec

Specifies the time-out period, in seconds, for the operation.

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

Inputs

None

Outputs

System.Object