New-AzApplicationGatewayConnectionDraining
Creates a new connection draining configuration for back-end HTTP settings.
New-AzApplicationGatewayConnectionDraining
-Enabled <Boolean>
-DrainTimeoutInSec <Int32>
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
The New-AzApplicationGatewayConnectionDraining cmdlet creates a new connection draining configuration for back-end HTTP settings.
$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.
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 |
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 |
Whether connection draining is enabled or not.
Type: | Boolean |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
None
Azure PowerShell feedback
Azure PowerShell is an open source project. Select a link to provide feedback: