Set-SCLoadBalancerTemplate

Configures the properties of a load balancer template.

Syntax

Set-SCLoadBalancerTemplate [-JobVariable <String>] -LoadBalancerTemplate <LoadBalancerTemplate>
 [-LoadBalancerVIPTemplate <LoadBalancerVIPTemplate>] [-LogicalNetworkVIP <LogicalNetwork>] [-PROTipID <Guid>]
 [-RunAsynchronously] [-VMNetworkServiceSetting <String>] [-VMNetworkVIP <VMNetwork>] [<CommonParameters>]

Description

The Set-SCLoadBalancerTemplate cmdlet configures the properties of a load balancer template.

Examples

Example 1: Configure a load balancer template

PS C:\> $ServiceTemplate = Get-SCServiceTemplate -Name "ServiceTemplate01"
PS C:\> $TierTemplate = Get-SCComputerTierTemplate -ServiceTemplate $ServiceTemplate 
PS C:\> $LoadBalancerTemplate = Get-SCLoadBalancerTemplate -ComputerTierTemplate $TierTemplate
PS C:\> Set-SCLoadBalancerTemplate -LoadBalancerTemplate $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 stored in $TierTemplate and stores the object in the $LoadBalancerTemplate variable.

The last command sets the properties for the load balancer template stored in $LoadBalancerTemplate.

Parameters

-JobVariable

Specifies that job progress is tracked and stored in the variable named by this parameter.

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

Specifies a load balancer template object.

Type:LoadBalancerTemplate
Required:True
Position:Named
Default value:None
Accept pipeline input:True (ByValue)
Accept wildcard characters:False
-LoadBalancerVIPTemplate

Specifies a load balancer virtual IP (VIP) template.

Type:LoadBalancerVIPTemplate
Required:False
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-LogicalNetworkVIP

Specifies the logical networks from which the front-end IP address for the load balancer should be assigned (the front-end logical network affinity).

Type:LogicalNetwork
Required:False
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-PROTipID

Specifies the ID of the Performance and Resource Optimization tip (PRO tip) that triggered this action. This parameter lets you audit PRO tips.

Type:Guid
Required:False
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-RunAsynchronously

Indicates that the job runs asynchronously so that control returns to the command shell immediately.

Type:SwitchParameter
Required:False
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-VMNetworkServiceSetting

Specifies a virtual machine network service setting.

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

Specifies a VMNetwork object.

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