< Back

New-AzureRmApplicationGatewayConnectionDraining

Tue Jan 29, 2019 9:55 pm

NAME New-AzureRmApplicationGatewayConnectionDraining



SYNOPSIS

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





SYNTAX

New-AzureRmApplicationGatewayConnectionDraining [-DefaultProfile <IAzureContextContainer>] -DrainTimeoutInSec <Int32> -Enabled <Boolean>

[<CommonParameters>]





DESCRIPTION

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





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



-DrainTimeoutInSec <Int32>

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



Required? true

Position? named

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-Enabled <Boolean>

Whether connection draining is enabled or not.



Required? true

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







OUTPUTS

Microsoft.Azure.Commands.Network.Models.PSApplicationGatewayConnectionDraining







NOTES









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.







RELATED LINKS

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

Get-AzureRmApplicationGatewayConnectionDraining

Remove-AzureRmApplicationGatewayConnectionDraining

Set-AzureRmApplicationGatewayConnectionDraining