Test-ServiceFabricApplication

Test-ServiceFabricApplication

Validates a Service Fabric application.

Syntax

Parameter Set: Default
Test-ServiceFabricApplication [-ApplicationName] <Uri> [-MaxStabilizationTimeoutSec] <Int32> [-TimeoutSec <Int32]> ] [ <CommonParameters>]




Detailed Description

The Test-ServiceFabricApplication cmdlet tests the availability and health of a Service Fabric application. This cmdlet verifies that the service is at the target replica set size and that the service health is good. 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

-ApplicationName<Uri>

Specifies the name of the application to test.


Aliases

none

Required?

true

Position?

1

Default Value

none

Accept Pipeline Input?

true (ByPropertyName)

Accept Wildcard Characters?

false

-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

-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 the validation.


Examples

Example 1: Validate an application

This command tests all of the services in the specified application to make sure that they are stable within 240 seconds.


PS C:\> Test-WindowsFabricApplication -ApplicationName fabric:/AppName -MaxStabilizationTimeoutSec 240

Related topics

Show: