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

Gets the Service Fabric code packages deployed on a node.

Syntax

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

Description

The Get-ServiceFabricDeployedCodePackage cmdlet gets the Service Fabric code package deployed on a specified node. You can specify a service manifest name or code package name.

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

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

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

Example 2: Get all deployed code packages filtered by service manifest name

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

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

Example 3: Get the specified deployed code package

PS C:\> Get-ServiceFabricDeployedCodePackage -NodeName "Node01" -ApplicationName fabric:/MyApplication -ServiceManifestName "CalcServicePackage" -CodePackageName "CalcCodePackage"

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

Required Parameters

-ApplicationName

Specifies the Uniform Resource Identifier (URI) of a Service Fabric application. The cmdlet gets the code 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 the code package deployed to the node that you specify.

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

Optional Parameters

-CodePackageName

Specifies the name of a Service Fabric code package. The cmdlet gets the code package that you specify. If you do not specify this parameter, this cmdlet returns all code packages that match the other specified parameters.

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

Specifies the name of a Service Fabric service manifest. The cmdlet gets the code package for the service manifest that you specify. If you do not specify this parameter, this cmdlet returns code packages for all service filters.

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

Outputs

System.Object