Suspend-ASAppServiceInstance

Suspend-ASAppServiceInstance

Suspend one or more service instances.

Syntax

Parameter Set: ByName
Suspend-ASAppServiceInstance -ServiceInstanceInfo <ServiceInstanceInfo> [ <CommonParameters>]


Detailed Description

This cmdlet suspends the specified service instances. The state of the instances in persistence store is set to “Suspended” after successful command execution. A suspended instance remains in this state until it is resumed or stopped.

If the service host receives a suspend command for a service instance, it waits until the instance can be persisted. This is the case when the current activity completes or the instance exits a no-persist zone. At that point the instance is suspended and persisted. It is unloaded only if the workflowIdle behavior enables unload on idle. Otherwise the suspended instance remains in memory.

Parameters

-ServiceInstanceInfo<ServiceInstanceInfo>

Specify the ServiceInstance object that corresponds to the workflow service instance that needs to be suspended. This parameter is used in piping scenarios.


Aliases

none

Required?

true

Position?

named

Default Value

none

Accept Pipeline Input?

true (ByValue)

Accept Wildcard Characters?

<CommonParameters>

This cmdlet supports the common parameters: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer, and -OutVariable. For more information, see about_CommonParameters

Inputs

The input type is the type of the objects that you can pipe to the cmdlet.

  • None.


Outputs

The output type is the type of the objects that the cmdlet emits.

  • None.


Examples

EXAMPLE 1

This command suspends all instances of workflow services that belong to the “Default Web Site” scope.


Get-ASAppServiceInstance –sitename “Default Web Site” | Suspend-ASAppServiceInstance

EXAMPLE 2

This command suspends all instances of workflow services that belong to the SampleApp application in the “Default Web Site”.


Get-ASAppServiceInstance –sitename “Default Web Site” –virtualpath “/SampleApp” | Suspend-ASAppServiceInstance

EXAMPLE 3

This command suspends all instances of workflow services that belong to the SampleApp application (specified by using the URI)


Get-ASAppServiceInstance –uri “http://localhost/SampleApp” | Suspend-ASAppServiceInstance
Show: