New-SCLoadBalancerHealthMonitor

Creates a load balancer health monitor object that is used when you create a load balancer virtual IP.

Description

The New-SCLoadBalancerHealthMonitor cmdlet creates a load balancer health monitor object that is used when you create a load balancer virtual IP.

For information about creating a load balancer virtual IP, type: "Get-Help New-SCLoadBalancerVIP -detailed".

For more information about New-SCLoadBalancerHealthMonitor, type: "Get-Help New-SCLoadBalancerHealthMonitor -online".

Parameters

IntervalSeconds

Required? true
Accept Pipeline Input? false
Position? named
Specifies the amount of time, in seconds, that a health monitor waits between sending recurring requests to a load balancer to verify that the load balancer is available. The interval value should be larger than the timeout value.

ProtocolName

Required? true
Accept Pipeline Input? false
Position? named
Specifies the protocol used to communicate with a load balancer.

TimeoutSeconds

Required? true
Accept Pipeline Input? false
Position? named
Specifies the amount of time, in seconds, that a process waits before timing out.

Name

Required? false
Accept Pipeline Input? false
Position? named
Specifies the name of a VMM object.

NumberOfRetries

Required? false
Accept Pipeline Input? false
Position? named
Specifies the number of times that a load balancer health monitor retries sending a request before marking the VIP member as down.

Request

Required? false
Accept Pipeline Input? false
Position? named
Specifies the request that a health monitor sends to a load balancer. Typically, this command will make an HTTP GET request for the home page of the load balancer and check for a header response such as 200 OK.

Response

Required? false
Accept Pipeline Input? false
Position? named
Specifies the expected response to a request that a health monitor sends to a load balancer.

Examples

1: Create a load balancer health monitor.
PS C:\> $LBHealthMonitor = New-SCLoadBalancerHealthMonitor -Name HTTPMonitor -ProtocolName "HTTP" -Request "GET /Index.html HTTP/1.1" -Response 200 -IntervalSeconds 15 -TimeoutSeconds 20
This command creates a load balancer health monitor object named HTTPMonitor and stores the object in the $LBHealthMonitor variable.

See Also