Get-SCLoadBalancerTemplate
Gets a load balancer template for a service or computer tier template.
Syntax
ComputerTierTemplate
Get-SCLoadBalancerTemplate
-ComputerTierTemplate <ComputerTierTemplate>
[-VMMServer <ServerConnection>]
[<CommonParameters>]
ServiceTemplate
Get-SCLoadBalancerTemplate
-ServiceTemplate <ServiceTemplate>
[-VMMServer <ServerConnection>]
[<CommonParameters>]
All
Get-SCLoadBalancerTemplate
[-VMMServer <ServerConnection>]
[-All]
[<CommonParameters>]
ID
Get-SCLoadBalancerTemplate
[-VMMServer <ServerConnection>]
[-ID <Guid>]
[<CommonParameters>]
Description
The Get-SCLoadBalancerTemplate cmdlet gets the load balancer template for a service template or a computer tier template.
Examples
Example 1: Get the load balancer template for a service template
PS C:\> $ServiceTemplate = Get-SCServiceTemplate -Name "ServiceTemplate01"
PS C:\> $LoadBalancerTemplate = Get-SCLoadBalancerTemplate -ServiceTemplate $ServiceTemplate
PS C:\> $LoadBalancerTemplate
The first command gets the service template object named ServiceTemplate01 and stores the object in the $ServiceTemplate variable.
The second command gets the load balancer template for the service template stored in $ServiceTemplate and stores the object in the $LoadBalancerTemplate variable.
The last command displays the properties of the load balancer template stored in $LoadBalancerTemplate to the user.
Example 2: Get the load balancer template for a computer tier template
PS C:\> $ServiceTemplate = Get-SCServiceTemplate -Name "ServiceTemplate01"
PS C:\> $TierTemplate = Get-SCComputerTierTemplate -ServiceTemplate $ServiceTemplate
PS C:\> $LoadBalancerTemplate = Get-SCLoadBalancerTemplate -ComputerTierTemplate $TierTemplate
PS C:\> $LoadBalancerTemplate
The first command gets the service template object named ServiceTemplate01 and stores the object in the $ServiceTemplate variable.
The second command gets the computer tier template for the service template stored in $ServiceTemplate and stores the object in the $TierTemplate variable.
The third command gets the load balancer template for the computer tier template stored in $TierTemplate and stores the object in the $LoadBalancerTemplate variable.
The last command displays the properties of the load balancer template stored in $LoadBalancerTemplate to the user.
Parameters
-All
Indicates that this cmdlet gets all subordinate objects independent of the parent object.
For example, the command Get-SCVirtualDiskDrive -All
gets all virtual disk drive objects regardless of the virtual machine object or template object that each virtual disk drive object is associated with.
Parameter properties
Type: | SwitchParameter |
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 |
-ComputerTierTemplate
Specifies a computer tier template object.
Parameter properties
Type: | ComputerTierTemplate |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
ComputerTierTemplate
Position: | Named |
Mandatory: | True |
Value from pipeline: | True |
Value from pipeline by property name: | False |
Value from remaining arguments: | False |
-ID
Specifies the numerical identifier as a globally unique identifier, or GUID, for a specific object.
Parameter properties
Type: | Guid |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
ID
Position: | Named |
Mandatory: | False |
Value from pipeline: | False |
Value from pipeline by property name: | False |
Value from remaining arguments: | False |
-ServiceTemplate
Specifies a service template object.
Parameter properties
Type: | ServiceTemplate |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
ServiceTemplate
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
LoadBalancerTemplate
This cmdlet returns a LoadBalancerTemplate object.