Get-​Service​Fabric​Service​Description

Gets the Service Fabric service description of a service that is running.

Syntax

Get-ServiceFabricServiceDescription
   [-ServiceName] <Uri>
   [-TimeoutSec <Int32>]
   [<CommonParameters>]

Description

The Get-ServiceFabricServiceDescription cmdlet gets the Service Fabric service description of a service that is running.

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 a service description

PS C:\> Get-ServiceFabricServiceDescription -ServiceName fabric:/CalcApp/CalcService

This command gets the service description for service with the name fabric:/CalcApp/CalcService.

Required Parameters

-ServiceName

Specifies the Uniform Resource Identifier (URI) of a Service Fabric service. This cmdlet gets the service description for the service that you specify.

Type:Uri
Position:1
Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False

Optional Parameters

-TimeoutSec

Specifies the time-out period, in seconds, for the operation.

Type:Int32
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False

Inputs

System.Uri

Outputs

System.Object