Test-ServiceFabricConfiguration
Validates cluster configuration and tests whether standalone deployment can succeed.
Syntax
Test-ServiceFabricConfiguration
[-ClusterConfigurationFilePath] <String>
[-OldClusterConfigurationFilePath <String>]
[-FabricRuntimePackagePath <String>]
[-FabricIsPreInstalled]
[-MaxPercentFailedNodes <Int32>]
[-TimeoutSec <Int32>]
[<CommonParameters>]
Description
The Test-ServiceFabricConfiguration cmdlet validates the cluster configuration and tests whether standalone 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.
Parameters
-ClusterConfigurationFilePath
Specifies the path of the JSON cluster configuration file.
Type: | String |
Position: | 0 |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-FabricIsPreInstalled
Bypasses Service Fabric runtime installation and clean runtime validation, such that only the node is configured.
Type: | SwitchParameter |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-FabricRuntimePackagePath
Specifies the path of the Service Fabric runtime package CAB file.
Type: | String |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-MaxPercentFailedNodes
{{Fill MaxPercentFailedNodes Description}}
Type: | Int32 |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-OldClusterConfigurationFilePath
{{Fill OldClusterConfigurationFilePath Description}}
Type: | String |
Position: | Named |
Default value: | None |
Required: | False |
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