How to Start and Stop Azure Application Gateway in Azure PowerShell

To save on costs on running Azure Application Gateway in non production environments, I run the following Azure PowerShell commands.

Login with Azure PowerShell to your subscription

$resourceGroupName = <name>
$azureAppGatewayName = <name>

$appGateway= Get-AzApplicationGateway -Name $azureAppGatewayNam -ResourceGroupName $resourceGroupName
Stop-AzApplicationGateway -ApplicationGateway $appGateway

Start-AzApplicationGateway -ApplicationGateway $appGateway

Hope this helps.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s