Redigera

Dela via


Stop-AzApplicationGateway

Stops an application gateway

Syntax

Stop-AzApplicationGateway
    -ApplicationGateway <PSApplicationGateway>
    [-AsJob]
    [-DefaultProfile <IAzureContextContainer>]
    [<CommonParameters>]

Description

The Stop-AzApplicationGateway cmdlet stops an application gateway.

Examples

Example 1: Stop an application gateway

$AppGw = Get-AzApplicationGateway -Name Test -ResourceGroupName Appgwtest
Stop-AzApplicationGateway -ApplicationGateway $AppGw

These commands set the $AppGw variable to an application gateway and then stops the application gateway.

Parameters

-ApplicationGateway

Specifies the application gateway that this cmdlet stops.

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

-AsJob

Run cmdlet in the background

Type:SwitchParameter
Position:Named
Default value:None
Required:False
Accept pipeline input:False
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

Inputs

PSApplicationGateway

Outputs

PSApplicationGateway