Test-ServiceFabricService
Test-ServiceFabricService
Validates a Service Fabric service.
Syntax
Parameter Set: Default
Test-ServiceFabricService [-ServiceName] <Uri> [-MaxStabilizationTimeoutSec] <Int32> [-TimeoutSec <Int32]> ] [ <CommonParameters>]
Detailed Description
The Test-ServiceFabricService cmdlet validates the availability and health of all Service Fabric services within an application. This cmdlet verifies that the services are at the target replica set size and that the services are healthy. This cmdlet also validates that there are no InBuild replicas. Use this cmdlet to verify that your service is stable after inducing any fault into the system.
Before using this cmdlet, connect to the Service Fabric cluster.
Parameters
-MaxStabilizationTimeoutSec<Int32>
Specifies the maximum time-out period, in seconds, for the cluster to stabilize before failing the test.
Aliases |
none |
Required? |
true |
Position? |
2 |
Default Value |
none |
Accept Pipeline Input? |
false |
Accept Wildcard Characters? |
false |
-ServiceName<Uri>
Specifies the name of the service to test.
Aliases |
none |
Required? |
true |
Position? |
1 |
Default Value |
none |
Accept Pipeline Input? |
true (ByPropertyName) |
Accept Wildcard Characters? |
false |
-TimeoutSec<Int32]>
Specifies the time-out period, in seconds, for the operation.
Aliases |
none |
Required? |
false |
Position? |
named |
Default Value |
none |
Accept Pipeline Input? |
false |
Accept Wildcard Characters? |
false |
<CommonParameters>
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.
Inputs
The input type is the type of the objects that you can pipe to the cmdlet.
System.Uri
Represents the name of a Service Fabric service.
Outputs
The output type is the type of the objects that the cmdlet emits.
System.Object
This cmdlet returns a String object that represents the status of validation.
Examples
Example 1: Test a service
This command tests the specified service to make sure that it is stable within 240 seconds.
PS C:\> Test-ServiceFabricService -ServiceName fabric:/SvcName –MaxStabilizationTimeoutSec 240