共用方式為


Remove-AzApplicationGatewayConnectionDraining

拿掉後端 HTTP 設定物件的連線清空組態。

語法

Remove-AzApplicationGatewayConnectionDraining
      -BackendHttpSettings <PSApplicationGatewayBackendHttpSettings>
      [-DefaultProfile <IAzureContextContainer>]
      [<CommonParameters>]

Description

Remove-AzApplicationGatewayConnectionDraining Cmdlet 會移除後端 HTTP 設定對象的連線清空組態。

範例

範例 1

$AppGw = Get-AzApplicationGateway -Name "ApplicationGateway01" -ResourceGroupName "ResourceGroup01"
$Settings  = Get-AzApplicationGatewayBackendHttpSetting -Name "Settings01" -ApplicationGateway $AppGw
Remove-AzApplicationGatewayConnectionDraining -BackendHttpSettings $Settings
Set-AzApplicationGateway -ApplicationGateway $AppGW

第一個命令會在名為 ResourceGroup01 的資源群組中取得名為 ApplicationGateway01 的應用程式閘道,並將它儲存在$AppGw變數中。 第二個命令會針對 $AppGw 取得名為 Settings01 的後端 HTTP 設定,並將設定儲存在 $Settings 變數中。 第三個命令會移除儲存在 $Settings 中後端 HTTP 設定的連線清空組態。 而且,最後一個命令會更新應用程式閘道。

參數

-BackendHttpSettings

後端 HTTP 設定

類型:PSApplicationGatewayBackendHttpSettings
Position:Named
預設值:None
必要:True
接受管線輸入:True
接受萬用字元:False

-DefaultProfile

用於與 azure 通訊的認證、帳戶、租用戶和訂用帳戶。

類型:IAzureContextContainer
別名:AzContext, AzureRmContext, AzureCredential
Position:Named
預設值:None
必要:False
接受管線輸入:False
接受萬用字元:False

輸入

PSApplicationGatewayBackendHttpSettings

輸出

PSApplicationGatewayBackendHttpSettings