Set-SCLoadBalancerConfiguration

Updates a load balancer configuration object for a computer tier.

Description

The Set-SCLoadBalancerConfiguration cmdlet updates a load balancer configuration object for a computer tier.

For more information about Set-SCLoadBalancerConfiguration, type: "Get-Help Set-SCLoadBalancerConfiguration -online".

Parameters

LoadBalancerConfiguration

Required? true
Accept Pipeline Input? true (ByValue)
Position? named
Specifies a load balancer configuration object.

JobVariable

Required? false
Accept Pipeline Input? false
Position? named
Specifies that job progress is tracked and stored in the variable named by this parameter. 

LoadBalancer

Required? false
Accept Pipeline Input? false
Position? named
Specifies a load balancer object.

LoadBalancerVIP

Required? false
Accept Pipeline Input? false
Position? named
Specifies a virtual IP (VIP) in a load balancer.

PinLoadBalancer

Required? false
Accept Pipeline Input? false
Position? named
Indicates whether the load balancer chosen by the user is retained during service deployment configuration.

PinVIPAddressPool

Required? false
Accept Pipeline Input? false
Position? named
Indicates whether the virtual IP (VIP) address pool chosen by the user is retained during service deployment configuration.

Port

Required? false
Accept Pipeline Input? false
Position? named
Specifies the network port to use when adding an object or creating a connection. Valid values are: 1 to 4095.

PROTipID

Required? false
Accept Pipeline Input? false
Position? named
Specifies the ID of the PRO tip that triggered this action. This allows for auditing of PRO tips.

RunAsynchronously

Required? false
Accept Pipeline Input? false
Position? named
Indicates that the job runs asynchronously so that control returns to the command shell immediately. 

UseExistingVIPAddress

Required? false
Accept Pipeline Input? false
Position? named
Indicates that the existing virtual IP (VIP) address is used, if one has been assigned.

VIPAddressPool

Required? false
Accept Pipeline Input? false
Position? named
Specifies a static IP address pool.

Examples

1: Set the properties of a load balancer configuration.
PS C:\> $ServiceConfig = Get-SCServiceConfiguration -Name "Service01"
PS C:\> $TierConfig = Get-SCComputerTierConfiguration -ServiceConfiguration $ServiceConfig
PS C:\> $LBConfig = Get-SCLoadBalancerConfiguration -ComputerTierConfiguration $TierConfig
PS C:\> $LB = Get-SCLoadBalancer -LoadBalancerAddress "LB01.Contoso.com"
PS C:\> Set-SCLoadBalancerConfiguration -LoadBalancerConfiguration $LBConfig -LoadBalancer $LB
The first command gets the service configuration object named Service01 and stores the object in the $ServiceConfig variable.

The second command gets the computer tier configuration for the service configuration stored in $ServiceConfig and stores the object in the $TierConfig variable.

The third command gets the load balancer configuration for the computer tier configuration stored in $TierConfig and stores the object in the $LBConfig variable.

The fourth command gets the load balancer with the address of LB01.Contoso.com and stores the object in the $LB variable.

The last command set the properties of the load balancer configuration object stored in $LB.

See Also