Share via


Get-ServiceFabricDeployedCodePackage

Gets the Service Fabric code packages deployed on a node.

Syntax

Default (Default)

Get-ServiceFabricDeployedCodePackage
    [-NodeName] <String>
    [-ApplicationName] <Uri>
    [[-ServiceManifestName] <String>]
    [[-CodePackageName] <String>]
    [[-IncludeCodePackageUsageStats] <Boolean>]
    [-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.

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.

Parameter properties

Type:Uri
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:1
Mandatory:True
Value from pipeline:False
Value from pipeline by property name:True
Value from remaining arguments:False

-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.

Parameter properties

Type:String
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:3
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:True
Value from remaining arguments:False

-IncludeCodePackageUsageStats

Filter result to include (or not include) container statistics such as CPU/Memory/IO usage. This can cause the API to take longer to return results if your application has many containers and you do not filter by service manifest or code package.

Parameter properties

Type:Boolean
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:4
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:True
Value from remaining arguments:False

-NodeName

Specifies the name of a Service Fabric node. The cmdlet gets the code package deployed to the node that you specify.

Parameter properties

Type:String
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:0
Mandatory:True
Value from pipeline:False
Value from pipeline by property name:True
Value from remaining arguments: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.

Parameter properties

Type:String
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:2
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:True
Value from remaining arguments:False

-TimeoutSec

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

Parameter properties

Type:Int32
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

Inputs

System.String

System.Uri

System.Boolean

Outputs

System.Object