Test-​Service​Fabric​Configuration

Validates cluster configuration and tests whether deployment can succeed.

Syntax

Test-ServiceFabricConfiguration
    [-ClusterConfigurationFilePath] <String>
    [-FabricRuntimePackagePath <String>]
    [-TimeoutSec <Int32>]
    [<CommonParameters>]

Description

The Test-ServiceFabricConfiguration cmdlet validates the cluster configuration and tests whether deployment can succeed for the target computers in the configuration from the controller. Specify the configuration file in JavaScript Object Notation (JSON) format.

Examples

Example 1: Validate deployment

PS C:\> Test-ServiceFabricConfiguration -ClusterConfigurationFilePath "D:\standalone\ClusterConfig.Unsecure.DevCluster.json"

This command validates that the cluster deploys from the current computer by using the specified configuration.

Example 2: Validate deployment and runtime CAB file

PS C:\> Test-ServiceFabricConfiguration -ClusterConfigurationFilePath "D:\standalone\ClusterConfig.Unsecure.DevCluster.json" -FabricRuntimePackagePath "D:\deployanywhere\MicrosoftAzureServiceFabric.cab"

This command validates that the cluster deploys from the current computer by using this configuration. The command also validates whether the runtime CAB can be used to deploy the cluster.

Required Parameters

-ClusterConfigurationFilePath

Specifies the path of the JSON cluster configuration file.

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

Optional Parameters

-FabricRuntimePackagePath

Specifies the path of the Service Fabric runtime package CAB file.

Type:String
Position:Named
Default value:None
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
Accept pipeline input:False
Accept wildcard characters:False