Test-ServiceFabricApplication
Validates the health and availability of a Service Fabric application.
Syntax
Test-ServiceFabricApplication
[-ApplicationName] <Uri>
[-MaxStabilizationTimeoutSec] <Int32>
[-TimeoutSec <Int32>]
[<CommonParameters>]
Description
The Test-ServiceFabricApplication cmdlet tests the availability and health of a Service Fabric application. This cmdlet verifies that all the services contained in the application are at the target replica set size and that the service health is good. This cmdlet also validates that all replicas belonging to each service are ready and not in an transitional state like InBuild (ServiceReplicaStatus). Use this cmdlet to verify that your application and its services are stable after inducing any fault into the system.
Before using this cmdlet, connect to the Service Fabric cluster.
Examples
Example 1: Validate an application
PS C:\> Test-ServiceFabricApplication -ApplicationName fabric:/AppName -MaxStabilizationTimeoutSec 240
This command tests all of the services in the specified application to make sure that they are stable within 240 seconds.
Parameters
-ApplicationName
Specifies the name of the application to validate.
Type: | Uri |
Position: | 0 |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-MaxStabilizationTimeoutSec
Specifies the maximum time-out period, in seconds, for the application to stabilize before failing the validate command.
Type: | Int32 |
Position: | 1 |
Default value: | None |
Required: | True |
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
System.Uri
Outputs
System.Object