Get-​Service​Fabric​Deployed​Service​Package

Gets the Service Fabric service packages on a node.

Syntax

Get-ServiceFabricDeployedServicePackage
   [-NodeName] <String>
   [-ApplicationName] <Uri>
   [[-ServiceManifestName] <String>]
   [-TimeoutSec <Int32>]
   [<CommonParameters>]

Description

The Get-ServiceFabricDeployedServicePackage cmdlet gets the Service Fabric deployed service packages on a specified node.

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 service packages

PS C:\> Get-ServiceFabricDeployedServicePackage -NodeName "Node01" -ApplicationName fabric:/MyApplication

This command gets all deployed service packages for application fabric:/MyApplication on node Node01.

Example 2: Get deployed service package for service manifest

PS C:\> Get-ServiceFabric DeployedServicePackage -NodeName "Node01" -ApplicationName fabric:/MyApplication -ServiceManifestName "CalcServicePackage"

This command gets deployed service package for application fabric:/MyApplication on node Node01 for service manifest CalcServicePackage.

Required Parameters

-ApplicationName

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

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

Specifies the name of a Service Fabric node. The cmdlet gets service packages for the node that you specify.

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

Optional Parameters

-ServiceManifestName

Specifies the name of a Service Fabric service manifest. The cmdlet gets service packages for the service manifest that you specify.

Type:String
Position:3
Default value:None
Accept pipeline input:True (ByPropertyName)
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, String

This cmdlet accepts a URI that represents the name of a Service Fabric application, or a Service Fabric node name, or a service name.

Outputs

System.Object

This cmdlet returns DeployedServicePackage objects that represent service packages.