Get-SCLoadBalancerConfiguration
Gets the configuration details for the load balancer that is contained within a computer tier configuration.
Syntax
Default (Default)
Get-SCLoadBalancerConfiguration
[-VMMServer <ServerConnection>]
-ComputerTierConfiguration <ComputerTierConfiguration>
[<CommonParameters>]
Description
The Get-SCLoadBalancerConfiguration cmdlet gets the configuration details for the load balancer that is contained within a computer tier configuration.
Examples
Example 1: Get the load balancer configuration for a computer tier configuration
PS C:\> $ServiceConfig = Get-SCServiceConfiguration -Name "Service01"
PS C:\> $TierConfig = Get-SCComputerTierConfiguration -ServiceConfiguration $ServiceConfig
PS C:\> $LBConfig = Get-SCLoadBalancerConfiguration -ComputerTierConfiguration $TierConfig
PS C:\> $LBConfig
The first command gets service 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 last command displays the properties of the load balancer configuration stored in $LBConfig to the user.
Parameters
-ComputerTierConfiguration
Specifies a computer tier configuration object.
Parameter properties
Type: | ComputerTierConfiguration |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
(All)
Position: | Named |
Mandatory: | True |
Value from pipeline: | True |
Value from pipeline by property name: | False |
Value from remaining arguments: | False |
-VMMServer
Specifies a Virtual Machine Manager (VMM) server object.
Parameter properties
Type: | ServerConnection |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
(All)
Position: | Named |
Mandatory: | False |
Value from pipeline: | True |
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
LoadBalancerConfiguration
This cmdlet returns a LoadBalancerConfiguration object.