Modifier

Partager via


Remove-AzApplicationGatewayHttpListener

Removes an HTTP listener from an application gateway.

Syntax

Remove-AzApplicationGatewayHttpListener
      -Name <String>
      -ApplicationGateway <PSApplicationGateway>
      [-DefaultProfile <IAzureContextContainer>]
      [<CommonParameters>]

Description

The Remove-AzApplicationGatewayHttpListener cmdlet removes an HTTP listener from an Azure application gateway.

Examples

Example 1: Remove an application gateway HTTP listener

$AppGw = Get-AzApplicationGateway -Name "ApplicationGateway01" -ResourceGroupName "ResourceGroup01"
Remove-AzApplicationGatewayHttpListener -ApplicationGateway $AppGw -Name "Listener02"
Set-AzApplicationGateway -ApplicationGateway $AppGW

The first command gets an application gateway and stores it in the $AppGw variable. The second command removes the HTTP listener named Listener02 from the application gateway stored in $AppGw. The last command updates the application gateway.

Parameters

-ApplicationGateway

Specifies the application gateway from which to remove an HTTP listener.

Type:PSApplicationGateway
Position:Named
Default value:None
Required:True
Accept pipeline input:True
Accept wildcard characters:False

-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

-Name

Specifies the name of the HTTP listener that this cmdlet removes.

Type:String
Position:Named
Default value:None
Required:True
Accept pipeline input:False
Accept wildcard characters:False

Inputs

PSApplicationGateway

Outputs

PSApplicationGatewayHttpListener