Update-ServiceFabricNodeConfiguration

Updates a Service Fabric cluster configuration.

Syntax

Update-ServiceFabricNodeConfiguration
      [-ClusterManifestPath] <String>
      [-Force]
      [-WhatIf]
      [-Confirm]
      [<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

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:0
Default value:None
Required:True
Accept pipeline input:False
Accept wildcard characters:False

-Confirm

Prompts you for confirmation before running the cmdlet.

Type:SwitchParameter
Aliases:cf
Position:Named
Default value:False
Required: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
Required:False
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
Required:False
Accept pipeline input:False
Accept wildcard characters:False

Inputs

None

Outputs

System.Object