< Back
Set-AzureRmApplicationGatewayConnectionDraining
Post
NAME Set-AzureRmApplicationGatewayConnectionDraining
SYNOPSIS
Modifies the connection draining configuration of a back-end HTTP settings object.
SYNTAX
Set-AzureRmApplicationGatewayConnectionDraining -BackendHttpSettings <PSApplicationGatewayBackendHttpSettings> [-DefaultProfile
<IAzureContextContainer>] -DrainTimeoutInSec <Int32> -Enabled <Boolean> [<CommonParameters>]
DESCRIPTION
The Set-AzureRmApplicationGatewayWebApplicationFirewallConfiguration cmdlet modifies the connection draining configuration of a back-end HTTP
settings object.
PARAMETERS
-BackendHttpSettings <PSApplicationGatewayBackendHttpSettings>
The backend http settings
Required? true
Position? named
Default value None
Accept pipeline input? True (ByValue)
Accept wildcard characters? false
-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
Microsoft.Azure.Commands.Network.Models.PSApplicationGatewayBackendHttpSettings
OUTPUTS
Microsoft.Azure.Commands.Network.Models.PSApplicationGatewayBackendHttpSettings
NOTES
Example 1
PS C:\\> $AppGw = Get-AzureRmApplicationGateway -Name "ApplicationGateway01" -ResourceGroupName "ResourceGroup01"
PS C:\\> $Settings = Get-AzureRmApplicationGatewayBackendHttpSettings -Name "Settings01" -ApplicationGateway $AppGw
PS C:\\> Set-AzureRmApplicationGatewayConnectionDraining -BackendHttpSettings $poolSetting02 -Enabled $False -DrainTimeoutInSec 3600
The first command gets the application gateway named ApplicationGateway01 in the resource group named ResourceGroup01 and stores it in the $AppGw
variable. The second command gets the back-end HTTP settings named Settings01 for $AppGw and stores the settings in the $Settings variable. The
last command modifies the connection draining configuration of the back-end HTTP settings object stored in $Settings by setting Enabled to False
and DrainTimeoutInSec to 3600.
RELATED LINKS
Online Version: https://docs.microsoft.com/en-us/powers ... ondraining
Get-AzureRmApplicationGatewayAvailableSslOptions
Get-AzureRmApplicationGatewayBackendHttpSettings
Get-AzureRmApplicationGatewayConnectionDraining
New-AzureRmApplicationGatewayConnectionDraining
Remove-AzureRmApplicationGatewayConnectionDraining
SYNOPSIS
Modifies the connection draining configuration of a back-end HTTP settings object.
SYNTAX
Set-AzureRmApplicationGatewayConnectionDraining -BackendHttpSettings <PSApplicationGatewayBackendHttpSettings> [-DefaultProfile
<IAzureContextContainer>] -DrainTimeoutInSec <Int32> -Enabled <Boolean> [<CommonParameters>]
DESCRIPTION
The Set-AzureRmApplicationGatewayWebApplicationFirewallConfiguration cmdlet modifies the connection draining configuration of a back-end HTTP
settings object.
PARAMETERS
-BackendHttpSettings <PSApplicationGatewayBackendHttpSettings>
The backend http settings
Required? true
Position? named
Default value None
Accept pipeline input? True (ByValue)
Accept wildcard characters? false
-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
Microsoft.Azure.Commands.Network.Models.PSApplicationGatewayBackendHttpSettings
OUTPUTS
Microsoft.Azure.Commands.Network.Models.PSApplicationGatewayBackendHttpSettings
NOTES
Example 1
PS C:\\> $AppGw = Get-AzureRmApplicationGateway -Name "ApplicationGateway01" -ResourceGroupName "ResourceGroup01"
PS C:\\> $Settings = Get-AzureRmApplicationGatewayBackendHttpSettings -Name "Settings01" -ApplicationGateway $AppGw
PS C:\\> Set-AzureRmApplicationGatewayConnectionDraining -BackendHttpSettings $poolSetting02 -Enabled $False -DrainTimeoutInSec 3600
The first command gets the application gateway named ApplicationGateway01 in the resource group named ResourceGroup01 and stores it in the $AppGw
variable. The second command gets the back-end HTTP settings named Settings01 for $AppGw and stores the settings in the $Settings variable. The
last command modifies the connection draining configuration of the back-end HTTP settings object stored in $Settings by setting Enabled to False
and DrainTimeoutInSec to 3600.
RELATED LINKS
Online Version: https://docs.microsoft.com/en-us/powers ... ondraining
Get-AzureRmApplicationGatewayAvailableSslOptions
Get-AzureRmApplicationGatewayBackendHttpSettings
Get-AzureRmApplicationGatewayConnectionDraining
New-AzureRmApplicationGatewayConnectionDraining
Remove-AzureRmApplicationGatewayConnectionDraining