Get-​Service​Fabric​Cluster​Configuration

Gets the latest JSON format cluster configuration.

Syntax

Get-ServiceFabricClusterConfiguration
   [-TimeoutSec <Int32>]
   [<CommonParameters>]

Description

The Get-ServiceFabricClusterConfiguration cmdlet gets the latest cluster configuration in JavaScript Object Notation (JSON) format.

To run this cmdlet, you must first establish a connection by using the Connect-ServiceFabricCluster cmdlet.

Note: At this time this cmdlet only applicable to on-premise Standalone deployments. If executed against a cluster which does not have the UpgradeOrchestrationService Fabric system service, the request will time out.

Examples

Example 1: Get cluster configuration

PS C:\> Connect-ServiceFabricCluster -ConnectionEndpoint "ServiceFabric01.ContosoCloudApp.net:19000"
PS C:\> Get-ServiceFabricClusterConfiguration

The first command creates a connection to the specified cluster.

The second command gets the latest cluster configuration in JSON format.

Optional Parameters

-TimeoutSec
Type:Int32
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False

Inputs

None

Outputs

None