< Back

New-AzureRmLoadBalancerProbeConfig

Tue Jan 29, 2019 9:56 pm

NAME New-AzureRmLoadBalancerProbeConfig



SYNOPSIS

Creates a probe configuration for a load balancer.





SYNTAX

New-AzureRmLoadBalancerProbeConfig [-DefaultProfile <IAzureContextContainer>] -IntervalInSeconds <Int32> -Name <String> -Port <Int32> -ProbeCount

<Int32> [-Protocol {Tcp | Http}] [-RequestPath <String>] [<CommonParameters>]





DESCRIPTION

The New-AzureRmLoadBalancerProbeConfig cmdlet creates a probe configuration for an Azure load balancer.





PARAMETERS

-DefaultProfile <IAzureContextContainer>

The credentials, account, tenant, and subscription used for communication with azure.



Required? false

Position? named

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-IntervalInSeconds <Int32>

Specifies the interval, in seconds, between probes to each instance of a load-balanced service.



Required? true

Position? named

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-Name <String>

Specifies the name of the probe configuration to create.



Required? true

Position? named

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-Port <Int32>

Specifies the port on which the new probe should connect to a load-balanced service.



Required? true

Position? named

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-ProbeCount <Int32>

Specifies the number of per-instance consecutive failures for an instance to be considered unhealthy.



Required? true

Position? named

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-Protocol <String>

Specifies the protocol to use for the probe configuration. The acceptable values for this parameter are: Tcp or Http.



Required? false

Position? named

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-RequestPath <String>

Specifies the path in a load-balanced service to probe to determine health.



Required? false

Position? named

Default value None

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 (http://go.microsoft.com/fwlink/?LinkID=113216).



INPUTS

None

This cmdlet does not accept any input.





OUTPUTS

Microsoft.Azure.Commands.Network.Models.PSProbe







NOTES









Example 1: Create a probe configuration



PS C:\\>New-AzureRmLoadBalancerProbeConfig -Name "MyProbe" -Protocol "http" -Port 80 -IntervalInSeconds 15 -ProbeCount 15



This command creates a probe configuration named MyProbe using the HTTP protocol. The new probe will connect to a load-balanced service on port 80.







RELATED LINKS

Online Version: https://docs.microsoft.com/en-us/powers ... robeconfig

Add-AzureRmLoadBalancerProbeConfig

Get-AzureRmLoadBalancerProbeConfig

Remove-AzureRmLoadBalancerProbeConfig

Set-AzureRmLoadBalancerProbeConfig