Register-ServiceFabricClusterPackage

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

Syntax

Register-ServiceFabricClusterPackage
        -CodePackagePath <String>
        -ClusterManifestPath <String>
        [-TimeoutSec <Int32>]
        [<CommonParameters>]
Register-ServiceFabricClusterPackage
        [-Code]
        -CodePackagePath <String>
        [-ClusterManifestPath <String>]
        [-TimeoutSec <Int32>]
        [<CommonParameters>]
Register-ServiceFabricClusterPackage
        [-Config]
        [-CodePackagePath <String>]
        -ClusterManifestPath <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.

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
Required:True
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
Required:True
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
Required:True
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
Required:True
Accept pipeline input:False
Accept wildcard characters:False

-TimeoutSec

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

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

Inputs

None

Outputs

System.Object