Get-ServiceFabricDeployedReplica
Gets information about a Service Fabric replica on a node.
Syntax
Non-Adhoc (Default)
Get-ServiceFabricDeployedReplica
[-NodeName] <String>
[-ApplicationName] <Uri>
[[-ServiceManifestName] <String>]
[[-PartitionId] <Guid>]
[-TimeoutSec <Int32>]
[<CommonParameters>]
Adhoc
Get-ServiceFabricDeployedReplica
[-NodeName] <String>
[[-ServiceManifestName] <String>]
[[-PartitionId] <Guid>]
[-Adhoc]
[-TimeoutSec <Int32>]
[<CommonParameters>]
Description
The Get-ServiceFabricDeployedReplica cmdlet gets information about a Service Fabric replica running on a node. This provides additional information such as the name of the code package hosting the replica that is not available from Get-ServiceFabricReplica
This information may be different from the information returned by the Get-ServiceFabricReplica cmdlet because the node has the most current view of the replica.
Before you perform any operation on a Service Fabric cluster, establish a connection to the cluster by using the Connect-ServiceFabricCluster cmdlet.
Examples
Example 1: Get all deployed replicas
PS C:\> Get-ServiceFabricDeployedReplica -NodeName "Node01" -ApplicationName fabric:/MyApplication
This command gets all deployed replicas for application fabric:/MyApplication on node Node01.
Parameters
-Adhoc
Indicates that the service runs in ad hoc mode. In ad hoc mode, you manually activate the service host.
Parameter properties
Type: | SwitchParameter |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
Adhoc
Position: | 1 |
Mandatory: | True |
Value from pipeline: | False |
Value from pipeline by property name: | False |
Value from remaining arguments: | False |
-ApplicationName
Specifies the Uniform Resource Identifier (URI) of a Service Fabric application. The cmdlet gets the information about replicas of the application that has the URI that you specify.
Parameter properties
Type: | Uri |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
Non-Adhoc
Position: | 1 |
Mandatory: | True |
Value from pipeline: | False |
Value from pipeline by property name: | True |
Value from remaining arguments: | False |
-NodeName
Specifies the name of a Service Fabric node. The cmdlet gets the information of the replicas running on the node that you specify.
Parameter properties
Type: | String |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
(All)
Position: | 0 |
Mandatory: | True |
Value from pipeline: | False |
Value from pipeline by property name: | True |
Value from remaining arguments: | False |
-PartitionId
Specifies the ID of a Service Fabric partition. This is an additional filter to return the replica that belongs to a specific partition.
Parameter properties
Type: | Guid |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
(All)
Position: | 3 |
Mandatory: | False |
Value from pipeline: | False |
Value from pipeline by property name: | True |
Value from remaining arguments: | False |
-ServiceManifestName
Specifies the name of a Service Fabric service manifest in the application specified by the ApplicationName parameter. This parameter can be used to filter to only replicas in a specific service manifest.
Parameter properties
Type: | String |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
(All)
Position: | 2 |
Mandatory: | False |
Value from pipeline: | False |
Value from pipeline by property name: | True |
Value from remaining arguments: | False |
-TimeoutSec
Specifies the time-out period, in seconds, for the operation.
Parameter properties
Type: | Int32 |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
(All)
Position: | Named |
Mandatory: | False |
Value from pipeline: | False |
Value from pipeline by property name: | False |
Value from remaining arguments: | False |
CommonParameters
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.