Update-​Service​Fabric​Node​Configuration

Updates a Service Fabric cluster configuration.

Syntax

Update-ServiceFabricNodeConfiguration
      [-ClusterManifestPath] <String>
      [-Force]
      [-Confirm]
      [-WhatIf]
      [<CommonParameters>]

Description

The Update-ServiceFabricNodeConfiguration cmdlet updates a Service Fabric cluster configuration. This cmdlet is for disaster recovery only. Do not use it during normal operations.

To manage Service Fabric clusters, start Windows PowerShell by using the Run as administrator option. 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: Update the service fabric node configuration for an existing cluster via cluster manifest

PS C:\> Update-ServiceFabricNodeConfiguration -ClusterManifestPath c:\temp\clustermanifest.v2.xml

This command updates the cluster manifest in order to update the set of service fabric nodes

Required Parameters

-ClusterManifestPath

Specifies the path of a Service Fabric cluster manifest. The cmdlet updates the cluster configuration based on the manifest that you specify.

Type:String
Position:1
Default value:None
Accept pipeline input:False
Accept wildcard characters:False

Optional Parameters

-Confirm

Prompts you for confirmation before running the cmdlet.

Type:SwitchParameter
Aliases:cf
Position:Named
Default value:False
Accept pipeline input:False
Accept wildcard characters:False
-Force

Forces the command to run without asking for user confirmation.

Type:SwitchParameter
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-WhatIf

Shows what would happen if the cmdlet runs. The cmdlet is not run.

Type:SwitchParameter
Aliases:wi
Position:Named
Default value:False
Accept pipeline input:False
Accept wildcard characters:False

Inputs

None

You cannot pipe input to this cmdlet.

Outputs

System.Object

This cmdlet returns the status of the operation as a string.