Get-​Service​Fabric​Application

Gets all the applications in the Service Fabric cluster or a specific application.

Syntax

Get-ServiceFabricApplication
   [[-ApplicationName] <Uri>]
   [-ApplicationTypeName <String>]
   [-ExcludeApplicationParameters]
   [-TimeoutSec <Int32>]
   [<CommonParameters>]

Description

The Get-ServiceFabricApplication cmdlet gets all the applications in the Service Fabric cluster or a specific application.

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 applications

PS C:\> Get-ServiceFabricApplication

This command gets all the applications in the cluster.

Example 2: Get application by name

PS C:\> Get-ServiceFabricApplication -ApplicationName fabric:/MyApplication

This command gets the specific application with the name fabric:/MyApplication.

Optional Parameters

-ApplicationName

Specifies the Uniform Resource Identifier (URI) of a Service Fabric application. The cmdlet gets the application that has the specified URI. If you do not specify this parameter, this cmdlet gets all the applications in the cluster.

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

{{Fill ApplicationTypeName Description}}

Type:String
Position:Named
Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False
-ExcludeApplicationParameters

{{Fill ExcludeApplicationParameters Description}}

Type:SwitchParameter
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-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

A URI that represents the name of the Service Fabric application used as filter for the request.

Outputs

System.Object

This cmdlet returns System.Fabric.Query.Application objects that represent requested applications.