Add-AzApplicationGatewayProbeConfig

Hiermee voegt u een statustest toe aan een Application Gateway.

Syntax

Add-AzApplicationGatewayProbeConfig
   -ApplicationGateway <PSApplicationGateway>
   -Name <String>
   -Protocol <String>
   [-HostName <String>]
   [-Path <String>]
   -Interval <Int32>
   -Timeout <Int32>
   -UnhealthyThreshold <Int32>
   [-PickHostNameFromBackendHttpSettings]
   [-MinServers <Int32>]
   [-Port <Int32>]
   [-Match <PSApplicationGatewayProbeHealthResponseMatch>]
   [-DefaultProfile <IAzureContextContainer>]
   [<CommonParameters>]

Description

De cmdlet Add-AzApplicationGatewayProbeConfig voegt een statustest toe aan een Application Gateway.

Voorbeelden

Voorbeeld 1: Een statustest toevoegen aan een toepassingsgateway

$Probe = Add-AzApplicationGatewayProbeConfig -ApplicationGateway Gateway -Name "Probe01" -Protocol Http -HostName "contoso.com" -Path "/path/custompath.htm" -Interval 30 -Timeout 120 -UnhealthyThreshold 8

Met deze opdracht wordt een statustest met de naam Probe01 toegevoegd voor de toepassingsgateway met de naam Gateway. Met de opdracht wordt ook de drempelwaarde voor slechte status ingesteld op 8 nieuwe pogingen en een time-out na 120 seconden.

Parameters

-ApplicationGateway

Hiermee geeft u de toepassingsgateway waaraan deze cmdlet een test toevoegt.

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

-DefaultProfile

De referenties, het account, de tenant en het abonnement die worden gebruikt voor communicatie met Azure.

Type:IAzureContextContainer
Aliases:AzContext, AzureRmContext, AzureCredential
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-HostName

Hiermee geeft u de hostnaam waarnaar deze cmdlet de test verzendt.

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

-Interval

Hiermee geeft u het testinterval in seconden. Dit is het tijdsinterval tussen twee opeenvolgende tests. Deze waarde ligt tussen 1 seconde en 86400 seconden.

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

-Match

Hoofdtekst die moet zijn opgenomen in het statusantwoord. De standaardwaarde is leeg

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

-MinServers

Minimaal aantal servers dat altijd in orde is gemarkeerd. De standaardwaarde is 0

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

-Name

Hiermee geeft u de naam van de test.

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

-Path

Hiermee geeft u het relatieve pad van de test. Geldig pad begint met het slash-teken (/). De test wordt verzonden naar <Protocol>://<host>:<port><path>.

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

-PickHostNameFromBackendHttpSettings

Of de hostheader moet worden gekozen uit de http-instellingen van de back-end. De standaardwaarde is onwaar

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

-Port

Poort die wordt gebruikt voor het testen van de back-endserver

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

-Protocol

Hiermee geeft u het protocol dat wordt gebruikt voor het verzenden van een test. Deze cmdlet ondersteunt alleen HTTP.

Type:String
Accepted values:Http, Https, TCP, TLS
Position:Named
Default value:None
Required:True
Accept pipeline input:False
Accept wildcard characters:False

-Timeout

Hiermee geeft u de time-out van de test in seconden. Deze cmdlet markeert de test als mislukt als een geldig antwoord niet wordt ontvangen met deze time-outperiode. Geldige waarden liggen tussen 1 seconde en 86400 seconden.

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

-UnhealthyThreshold

Hiermee geeft u het aantal nieuwe pogingen voor de test op. De back-endserver wordt gemarkeerd nadat het aantal mislukte tests de drempelwaarde voor beschadigde status heeft bereikt. Geldige waarden liggen tussen 1 seconde en 20 seconden.

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

Invoerwaarden

PSApplicationGateway

Uitvoerwaarden

PSApplicationGateway