Test-​Service​Fabric​Cluster​Manifest

Validates a Service Fabric cluster manifest.

Syntax

Test-ServiceFabricClusterManifest
    [-ClusterManifestPath] <String>
    [-OldClusterManifestPath <String>]
    [<CommonParameters>]

Description

The Test-ServiceFabricClusterManifest cmdlet validates a Service Fabric cluster manifest. In order to help avoid issues with new Service Fabric cluster deployments or cluster upgrades, we recommended that you test the cluster manifest for obvious errors. This cmdlet does not discover issues with configuration values.

Examples

Example 1: Validate a cluster manifest

PS C:\> Test-ServiceFabricClusterManifest -ClusterManifestPath \\configStore\ClusterManifests\CH1\ClusterManifest_123.xml

This command validates the specified Service Fabric cluster manifest.

Example 2: Validate an updated cluster manifest

PS C:\> Test-ServiceFabricClusterManifest -ClusterManifestPath \\configStore\ClusterManifests\CH1\ClusterManifest_123.v2.xml -OldClusterManifestPath \\configStore\ClusterManifests\CH1\ClusterManifest_123.v1.xml

This command validates the specified cluster manifest against an existing cluster manifest file. This is helpful for validating the changes between the two cluster manifests and catching potential errors before starting a cluster upgrade.

Required Parameters

-ClusterManifestPath

Specifies the path to a Service Fabric cluster manifest.

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

Optional Parameters

-OldClusterManifestPath

Specifies the path of an existing Service Fabric cluster manifest that is already deployed. The cmdlet validates the manifest specified in ClusterManifestPath against the manifest that this parameter specifies for configuration upgrade purposes.

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

Inputs

None

You cannot pipe input to this cmdlet.

Outputs

System.Object

This cmdlet returns $True if the Service Fabric cluster manifest is valid, or, if it is not valid, this cmdlet returns $False.