Get-​Service​Fabric​Registered​Cluster​Code​Version

Gets all provisioned fabric code versions in a Service Fabric cluster.

Syntax

Get-ServiceFabricRegisteredClusterCodeVersion
   [[-CodeVersion] <String>]
   [-TimeoutSec <Int32>]
   [<CommonParameters>]

Description

The Get-ServiceFabricRegisteredClusterCodeVersion cmdlet gets provisioned fabric code versions in a Service Fabric cluster. You can specify a particular code version to get.

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 provisioned fabric code versions

PS C:\> Get-ServiceFabricRegisteredClusterCodeVersion

This command gets all provisioned fabric code versions in a Service Fabric Cluster.

Optional Parameters

-CodeVersion

Specifies a code version. This cmdlet gets only the provisioned fabric code versions that match the code version that this parameter specifies.

Type:String
Position:1
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

String

This cmdlet accepts the version of a Service Fabric cluster code as a string.

Outputs

System.Object

This cmdlet returns a list of System.Fabric.Query.ProvisionedFabricCodeVersion objects that represent registered cluster code versions.