Enable-SCLoadBalancerVIPMember

Enables a member of a load balancer VIP.

Description

The Enable-SCLoadBalancerVIPMember enables a member of a load balancer virtual IP (VIP) and places the member in a Desired Status of Up.

To disable a VIP member, use the Disable-SCLoadBalancerVIPMember cmdlet.

For more information about Enable-SCLoadBalancerVIPMember, type "Get-Help Enable-SCLoadBalancerVIPMember -online".

Parameters

LoadBalancerVIPMember

Required? true
Accept Pipeline Input? true (ByValue)
Position? 0
Specifies a member of a virtual IP (VIP) in a load balancer.

JobVariable

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

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. 

VMMServer

Required? false
Accept Pipeline Input? true (ByValue)
Position? named
Specifies a VMM server object.

Examples

1: Enable a member of a load balancer virtual IP (VIP).
PS C:\> $LoadBalancer = Get-SCLoadBalancer -LoadBalancerAddress "LB01.Contoso.com"
PS C:\> $VIP = Get-SCLoadBalancerVIP -LoadBalancer $LoadBalancer -IPAddress "192.168.0.1"
PS C:\> $VIPMember = Get-SCLoadBalancerVIPMember -LoadBalancerVIP $VIP -IPAddress "192.168.0.1"
PS C:\> Enable-SCLoadBalancerVIPMember -LoadBalancerVIPMember $VIPMember
The first command gets the load balancer object with the address of LB01.Contoso.com and stores the object in the $LoadBalancer variable.

The second command gets the load balancer VIP with the IP address 192.168.0.1 for the load balancer stored in $LoadBalancer and stores the object in the $VIP variable.

The third command gets the VIP member for the load balancer VIP stored in $VIP with the address of 192.168.0.1 and stores the object in the $VIPMember variable.

The last command enables the VIP member stored in $VIPMember and displays information about the VIP member to the user.

See Also