Get-​Service​Fabric​Application​Name

Gets the Service Fabric Application name from the Service Fabric Service name.

Syntax

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

Description

The Get-ServiceFabricApplicationName cmdlet gets the name of the application for a Service Fabric service.

The output of Get-ServiceFabricApplicationName contains the following information:

-Application Name: The name of the application corresponding to the given service.

Examples

Example 1: Get the application name for a service

PS C:\> Get-ServiceFabricApplicationName -ServiceName  fabric:/myapp/persistenttodolist

This command gets the name of the application for the service fabric:/myapp/persistenttodolist.

Required Parameters

-ServiceName

Specifies a Service Fabric service.

Type:Uri
Position:0
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

This cmdlet accepts a string that represents the service name.

Outputs

System.Object

This cmdlet returns an ApplicationNameResult that contains the Application name.