New-AzApplicationGatewayConnectionDraining
Creates a new connection draining configuration for back-end HTTP settings.
Syntax
New-AzApplicationGatewayConnectionDraining
-Enabled <Boolean>
-DrainTimeoutInSec <Int32>
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
Description
The New-AzApplicationGatewayConnectionDraining cmdlet creates a new connection draining configuration for back-end HTTP settings.
Examples
Example 1
$connectionDraining = New-AzApplicationGatewayConnectionDraining -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.
Parameters
-DefaultProfile
The credentials, account, tenant, and subscription used for communication with azure.
Type: | IAzureContextContainer |
Aliases: | AzContext, AzureRmContext, AzureCredential |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-DrainTimeoutInSec
The number of seconds connection draining is active. Acceptable values are from 1 second to 3600 seconds.
Type: | Int32 |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-Enabled
Whether connection draining is enabled or not.
Type: | Boolean |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Inputs
None
Outputs
PSApplicationGatewayConnectionDraining