Microsoft/Azure

Application Gateway Stop/Start PowerShell

megapain 2021. 8. 18. 13:44

 

참고 자료

Stop-AzApplicationGateway - https://docs.microsoft.com/ko-kr/powershell/module/az.network/stop-azapplicationgateway?view=azps-6.3.0&viewFallbackFrom=azps-3.8.0

 

Azure Application Gateway를 중지/시작하는 PowerShell입니다.

Application Gateway를 테스트하는 동안 비용을 줄이기 위해 Application Gateway를 중지할 수 있습니다.

$rgName = 'ResourceGroupName' 
$appgwName = 'ApplicationGatewayName' 
$AppGW = Get-AzApplicationGateway -ResourceGroupName $rgName -Name $appgwName 

# Stop Application Gateway
Stop-AzApplicationGateway -ApplicationGateway $AppGw

# Start Application Gateway
Start-AzApplicationGateway -ApplicationGateway $AppGw

 

Application Gateway 중지(Stop) 예제