Set-SCLoadBalancerTemplate

Configures the properties of a load balancer template.

Syntax

Set-SCLoadBalancerTemplate
   [-VMNetworkVIP <VMNetwork>]
   [-VMNetworkServiceSetting <String>]
   [-LoadBalancerVIPTemplate <LoadBalancerVIPTemplate>]
   -LoadBalancerTemplate <LoadBalancerTemplate>
   [-RunAsynchronously]
   [-PROTipID <Guid>]
   [-JobVariable <String>]
   [<CommonParameters>]
Set-SCLoadBalancerTemplate
   [-LogicalNetworkVIP <LogicalNetwork>]
   [-VMNetworkVIP <VMNetwork>]
   [-VMNetworkServiceSetting <String>]
   [-LoadBalancerVIPTemplate <LoadBalancerVIPTemplate>]
   -LoadBalancerTemplate <LoadBalancerTemplate>
   [-RunAsynchronously]
   [-PROTipID <Guid>]
   [-JobVariable <String>]
   [<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.

Required Parameters

-LoadBalancerTemplate

Specifies a load balancer template object.

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

Optional Parameters

-JobVariable

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

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

Specifies a load balancer virtual IP (VIP) template.

Type:LoadBalancerVIPTemplate
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
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
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
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-VMNetworkServiceSetting

Specifies a virtual machine network service setting.

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

Specifies a VMNetwork object.

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