none
Application Gateway - Update Config Powershell RRS feed

Answers

  • Set-AzureRmApplicationGatewaySku will set the SKU and if you want this change to be reflected in your Application Gateway you need to do a Set-AzureRmApplicationGateway. 

    Here is the sample command:

    $AppGw = Get-AzureRmApplicationGateway -Name "appgatewayname" -ResourceGroupName "RG Name"
    Set-AzureRmApplicationGatewaySku -ApplicationGateway $AppGw -Name "WAF_Large" -Tier "WAF" -Capacity 2

    Set-AzureRmApplicationGateway -ApplicationGateway $AppGw 

     

    -----------------------------------------------------------------------------------------------------------

    If you found this post helpful, please give it a "Helpful" vote. 

    Please remember to mark the replies as answers if they help.

    Friday, January 25, 2019 8:37 AM
    Moderator

All replies

  • The second command "Set-AzureRmApplicationGatewaySku" should update the gateway when it returns as successful. Are you getting an error when running this command?
    Friday, January 25, 2019 2:25 AM
    Moderator
  • Set-AzureRmApplicationGatewaySku will set the SKU and if you want this change to be reflected in your Application Gateway you need to do a Set-AzureRmApplicationGateway. 

    Here is the sample command:

    $AppGw = Get-AzureRmApplicationGateway -Name "appgatewayname" -ResourceGroupName "RG Name"
    Set-AzureRmApplicationGatewaySku -ApplicationGateway $AppGw -Name "WAF_Large" -Tier "WAF" -Capacity 2

    Set-AzureRmApplicationGateway -ApplicationGateway $AppGw 

     

    -----------------------------------------------------------------------------------------------------------

    If you found this post helpful, please give it a "Helpful" vote. 

    Please remember to mark the replies as answers if they help.

    Friday, January 25, 2019 8:37 AM
    Moderator
  • msrini is the correct answer on this one... just was missing the Set-AzureRmApplicationGateway in the last and it worked for me.

    $AppGw = Get-AzureRmApplicationGateway -Name "appgatewayname" -ResourceGroupName "RG Name"
    Set-AzureRmApplicationGatewaySku -ApplicationGateway $AppGw -Name "WAF_Large" -Tier "WAF" -Capacity 2

    Set-AzureRmApplicationGateway -ApplicationGateway $AppGw 

    Thanks and much appreciated everyone!

    Friday, January 25, 2019 8:03 PM