Skip to content

Commit 67c249c

Browse files
Merge pull request #287345 from greg-lindsay/appgw-freshness
add powershell
2 parents 321ec6a + 0d3f451 commit 67c249c

File tree

1 file changed

+23
-9
lines changed

1 file changed

+23
-9
lines changed

articles/application-gateway/proxy-buffers.md

Lines changed: 23 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,36 +5,36 @@ services: application-gateway
55
author: greg-lindsay
66
ms.service: azure-application-gateway
77
ms.topic: how-to
8-
ms.date: 08/03/2022
8+
ms.date: 09/25/2024
99
ms.author: greglin
1010
#Customer intent: As a user, I want to know how can I disable/enable proxy buffers.
1111
---
1212

1313
# Configure Request and Response Proxy Buffers
1414

15-
Azure Application Gateway Standard v2 SKU supports buffering Requests (from clients) or Responses (from the backend servers). Based on the processing capabilities of the clients that interact with your Application Gateway, you can use these buffers to configure the speed of packet delivery.
15+
Azure Application Gateway Standard v2 SKU supports buffering Requests from clients or Responses (from the backend servers). Based on the processing capabilities of the clients that interact with your application gateway, you can use these buffers to configure the speed of packet delivery.
1616

1717
## Response Buffer
1818

19-
Application Gateway's Response buffer can collect all or parts of the response packets sent by the backend server, before delivering them to the clients. By default, the Response buffering is enabled on Application Gateway which is useful to accommodate slow clients. This setting allows you to conserve the backend TCP connections as they can be closed once Application Gateway receives complete response and work according to the client's processing speed. This way, your Application Gateway will continue to deliver the response as per client’s pace.
19+
Application Gateway's response buffer can collect all or parts of the response packets sent by the backend server, before delivering them to the clients. By default, the Response buffering is enabled on Application Gateway which is useful to accommodate slow clients. This setting allows you to conserve the backend TCP connections as they can be closed once Application Gateway receives complete response and work according to the client's processing speed. This way, your Application Gateway continues to deliver the response as per the client’s pace.
2020

2121

2222
## Request Buffer
2323

24-
In a similar way, Application Gateway's Request buffer can temporarily store the entire or parts of the request body, and then forward a larger upload request at once to the backend server. By default, Request buffering setting is enabled on Application Gateway and is useful to offload the processing function of re-assembling the smaller packets of data on the backend server.
24+
In a similar way, Application Gateway's Request buffer can temporarily store the entire or parts of the request body, and then forward a larger upload request at once to the backend server. By default, Request buffering setting is enabled on Application Gateway and is useful to offload the processing function of reassembling the smaller packets of data on the backend server.
2525

2626

2727
>[!NOTE]
28-
>By default, both Request and Response buffers are enabled on your Application Gateway resource but you can choose to configure them separately. Further, the settings are applied at a resource level and cannot be managed separately for each listener.
28+
>By default, both Request and Response buffers are enabled on your Application Gateway resource but you can choose to configure them separately. Further, the settings are applied at a resource level and can't be managed separately for each listener.
2929
3030
</br>
3131

32-
You can keep either the Request or Response buffer, enabled or disable, based on your requirements and/or the observed performance of the client systems that communicate with your Application Gateway.
32+
You can keep either the Request or Response buffer, enabled or disabled, based on your requirements and the observed performance of the client systems that communicate with your Application Gateway.
3333

3434
</br>
3535

3636
> [!WARNING]
37-
>We strongly recommend that you test and evaluate the performance before rolling this out on the production gateways.
37+
> We strongly recommend that you test and evaluate the performance before rolling this out on the production gateways.
3838
3939
## How to change the buffer settings?
4040

@@ -51,6 +51,20 @@ az network application-gateway update --name <gw-name> --resource-group <rg-name
5151
az network application-gateway update --name <gw-name> --resource-group <rg-name> --set globalConfiguration.enableRequestBuffering=false
5252
```
5353

54+
### PowerShell method
55+
56+
**New application gateway**
57+
```PowerShell
58+
$AppGw02 = New-AzApplicationGateway -Name "ApplicationGateway02" -ResourceGroupName "ResourceGroup02" -Location $location -BackendAddressPools $pool -BackendHttpSettingsCollection $poolSetting01 -FrontendIpConfigurations $fipconfig -GatewayIpConfigurations $gipconfig -FrontendPorts $fp01 -HttpListeners $listener01 -RequestRoutingRules $rule01 -Sku $sku -EnableRequestBuffering:$false -EnableResponseBuffering:$false
59+
```
60+
**Update an existing application gateway**
61+
```PowerShell
62+
$appgw = Get-AzApplicationGateway -Name $appgwName -ResourceGroupName $rgname
63+
$appgw.EnableRequestBuffering = $false
64+
$appgw.EnableResponseBuffering = $false
65+
Set-AzApplicationGateway -ApplicationGateway $appgw
66+
```
67+
5468
### ARM template method
5569

5670
```json
@@ -85,5 +99,5 @@ For reference, visit [Azure SDK for .NET](/dotnet/api/microsoft.azure.management
8599

86100
## Limitations
87101
- API version 2020-01-01 or later should be used to configure buffers.
88-
- Currently, these changes are not supported through Portal and PowerShell.
89-
- Request buffering cannot be disabled if you are running the WAF SKU of Application Gateway. The WAF requires the full request to buffer as part of processing, therefore, even if you disable request buffering within Application Gateway the WAF will still buffer the request. Response buffering is not impacted by the WAF.
102+
- Currently, these changes aren't supported through Portal and PowerShell.
103+
- Request buffering can't be disabled if you're running the WAF SKU of Application Gateway. The WAF requires the full request to buffer as part of processing, therefore, even if you disable request buffering within Application Gateway the WAF still buffers the request. Response buffering isn't impacted by the WAF.

0 commit comments

Comments
 (0)