New-SCLoadBalancingMethod
New-SCLoadBalancingMethod
Creates a load balancer method object that is used when you create a load balancer virtual IP.
Syntax
Parameter Set: Default
New-SCLoadBalancingMethod -Name <String> [-Value <String> ] [ <CommonParameters>]
Detailed 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
.
Parameters
-Name<String>
Specifies the name of a VMM object.
Aliases |
none |
Required? |
true |
Position? |
named |
Default Value |
none |
Accept Pipeline Input? |
false |
Accept Wildcard Characters? |
false |
-Value<String>
Specifies a string used to attribute an object or property.
Aliases |
none |
Required? |
false |
Position? |
named |
Default Value |
none |
Accept Pipeline Input? |
false |
Accept Wildcard Characters? |
false |
<CommonParameters>
This cmdlet supports the common parameters: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer, and -OutVariable. For more information, see about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216).
Inputs
The input type is the type of the objects that you can pipe to the cmdlet.
Outputs
The output type is the type of the objects that the cmdlet emits.
- LoadBalancingMethod
Examples
Example 1: Create a load balancing method object
This command creates a load balancing method object named LeastConnections, and then stores the object in the $LBMethod variable.
PS C:\> $LBMethod = New-SCLoadBalancingMethod -Name "LeastConnections"