Get-ServiceFabricDeployedCodePackage

Gets the Service Fabric code packages deployed on a node.

Syntax

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.

Type:Uri
Position:1
Default value:None
Required:True
Accept pipeline input:True
Accept wildcard characters: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.

Type:String
Position:3
Default value:None
Required:False
Accept pipeline input:True
Accept wildcard characters: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.

Type:Boolean
Position:4
Default value:None
Required:False
Accept pipeline input:True
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:0
Default value:None
Required:True
Accept pipeline input:True
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:2
Default value:None
Required:False
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.String

System.Uri

System.Boolean

Outputs

System.Object