Test-ServiceFabricClusterManifest

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.

Parameters

-ClusterManifestPath

Specifies the path to a Service Fabric cluster manifest.

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

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

Inputs

None

Outputs

System.Object