New-​Azure​Rm​Application​Gateway​Connection​Draining

Creates a new connection draining configuration for back-end HTTP settings.

Syntax

New-AzureRmApplicationGatewayConnectionDraining
   -DrainTimeoutInSec <UInt32>
   -Enabled <Boolean>
   [<CommonParameters>]

Description

The New-AzureRmApplicationGatewayConnectionDraining cmdlet creates a new connection draining configuration for back-end HTTP settings.

Examples

Example 1

PS C:\> $connectionDraining = New-AzureRmApplicationGatewayConnectionDraining -Enabled $True -DrainTimeoutInSec 42

The command creates a new connection draining configuration with Enabled set to True and DrainTimeoutInSec set to 42 seconds and stores it in $connectionDraining.

Required Parameters

-DrainTimeoutInSec

The number of seconds connection draining is active. Acceptable values are from 1 second to 3600 seconds.

Type:UInt32
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-Enabled

Whether connection draining is enabled or not.

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

Inputs

None

Outputs

Microsoft.Azure.Commands.Network.Models.PSApplicationGatewayConnectionDraining