Share via


Test-ServiceFabricClusterManifest

Validates a Service Fabric cluster manifest.

Syntax

Default (Default)

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.

Parameter properties

Type:String
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:0
Mandatory:True
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments: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.

Parameter properties

Type:String
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

Inputs

None

Outputs

System.Object