New-SCLoadBalancingMethod
Creates a load balancer method object that is used when you create a load balancer virtual IP.
Syntax
Default (Default)
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.
Parameter properties
Type: | String |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
(All)
Position: | Named |
Mandatory: | True |
Value from pipeline: | False |
Value from pipeline by property name: | False |
Value from remaining arguments: | False |
-Value
Specifies a string used to attribute an object or property.
Parameter properties
Type: | String |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
(All)
Position: | Named |
Mandatory: | False |
Value from pipeline: | False |
Value from pipeline by property name: | False |
Value from remaining arguments: | False |
CommonParameters
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.
Outputs
LoadBalancingMethod
This cmdlet returns a LoadBalancingMethod object.