< Back

New-NsxLoadBalancerMemberSpec

Sat Jan 18, 2020 9:17 pm

NAME New-NsxLoadBalancerMemberSpec



SYNOPSIS

Creates a new LoadBalancer Pool Member specification to be used when

updating or creating a LoadBalancer Pool





SYNTAX

New-NsxLoadBalancerMemberSpec -Name <String> -IpAddress <IPAddress> [-Weight <Int32>] [-Port <Int32>]

[-MonitorPort <Int32>] [-MinimumConnections <Int32>] [-MaximumConnections <Int32>] [<CommonParameters>]



New-NsxLoadBalancerMemberSpec -Name <String> -Member <Object> [-Weight <Int32>] [-Port <Int32>] [-MonitorPort

<Int32>] [-MinimumConnections <Int32>] [-MaximumConnections <Int32>] [<CommonParameters>]





DESCRIPTION

An NSX Edge Service Gateway provides all NSX Edge services such as firewall,

NAT, DHCP, VPN, load balancing, and high availability.



The NSX Edge load balancer enables network traffic to follow multiple paths

to a specific destination. It distributes incoming service requests evenly

among multiple servers in such a way that the load distribution is

transparent to users. Load balancing thus helps in achieving optimal

resource utilization, maximizing throughput, minimizing response time, and

avoiding overload. NSX Edge provides load balancing up to Layer 7.



A pool manages load balancer distribution methods and has a service monitor

attached to it for health check parameters. Each Pool has one or more

members. Prior to creating or updating a pool to add a member, a member

spec describing the member needs to be created.



This cmdlet creates a new LoadBalancer Pool Member specification.





PARAMETERS

-Name <String>



Required? true

Position? named

Default value

Accept pipeline input? false

Accept wildcard characters? false



-IpAddress <IPAddress>



Required? true

Position? named

Default value

Accept pipeline input? false

Accept wildcard characters? false



-Member <Object>



Required? true

Position? named

Default value

Accept pipeline input? false

Accept wildcard characters? false



-Weight <Int32>



Required? false

Position? named

Default value 1

Accept pipeline input? false

Accept wildcard characters? false



-Port <Int32>



Required? false

Position? named

Default value 0

Accept pipeline input? false

Accept wildcard characters? false



-MonitorPort <Int32>



Required? false

Position? named

Default value $Port

Accept pipeline input? false

Accept wildcard characters? false



-MinimumConnections <Int32>



Required? false

Position? named

Default value 0

Accept pipeline input? false

Accept wildcard characters? false



-MaximumConnections <Int32>



Required? false

Position? named

Default value 0

Accept pipeline input? false

Accept wildcard characters? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).



INPUTS



OUTPUTS



-------------------------- EXAMPLE 1 --------------------------



PS C:\\>$WebMember1 = New-NsxLoadBalancerMemberSpec -name Web01



-IpAddress 192.168.200.11 -Port 80



Creates a new member spec for a member called Web01, ipaddress 192.168.200.11

and port 80









-------------------------- EXAMPLE 2 --------------------------



PS C:\\>$WebMember2 = New-NsxLoadBalancerMemberSpec -name Web02 -IpAddress



192.168.200.12 -Port 80 -MonitorPort 8080 -MaximumConnections 100



Creates a new member spec with an alternate MonitorPort.









-------------------------- EXAMPLE 3 --------------------------



PS C:\\>$WebMember3 = New-NsxLoadBalancerMemberSpec -Name Web03 -Member (Get-VM Web03)



-port 80



Creates a new member spec based on VM object for Web03.









-------------------------- EXAMPLE 4 --------------------------



PS C:\\>$WebMember3 = New-NsxLoadBalancerMemberSpec -Name Web03 -Member (Get-NsxLogicalSwitch WebLS)



-port 80



Creates a new member spec based on NSX Logical Switch.











RELATED LINKS