Get-ServiceFabricApplicationName

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.

Parameters

-ServiceName

Specifies a Service Fabric service.

Type:Uri
Position:0
Default value:None
Required:True
Accept pipeline input:True
Accept wildcard characters:False

-TimeoutSec

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

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

Inputs

System.Uri

Outputs

System.Object