New-SCLoadBalancingMethod

Creates a load balancer method object that is used when you create a load balancer virtual IP.

Syntax

New-SCLoadBalancingMethod -Name <String> [-Value <String>] [<CommonParameters>]

Description

The New-SCLoadBalancingMethod cmdlet creates a load balancer method object that is used when you create a load balancer virtual IP.

For information about creating a load balancer virtual IP, type Get-Help New-SCLoadBalancerVIP -Detailed.

Examples

Example 1: Create a load balancing method object

PS C:\> $LBMethod = New-SCLoadBalancingMethod -Name "LeastConnections"

This command creates a load balancing method object named Least Connections and stores the object in the $LBMethod variable.

Parameters

-Name

Specifies the name of a Virtual Machine Manager (VMM) object.

Type:String
Required:True
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-Value

Specifies a string used to attribute an object or property.

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

Outputs

LoadBalancingMethod

This cmdlet returns a **LoadBalancingMethod** object.