Skip to content

Commit cebec51

Browse files
committed
add powershell
1 parent 968e814 commit cebec51

File tree

1 file changed

+16
-1
lines changed

1 file changed

+16
-1
lines changed

articles/application-gateway/proxy-buffers.md

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ 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
---
@@ -51,6 +51,21 @@ 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
59+
-EnableRequestBuffering = $false -EnableResponseBuffering = $false
60+
```
61+
**Update an existing application gateway**
62+
```PowerShell
63+
$appgw = Get-AzApplicationGateway -Name $appgwName -ResourceGroupName $rgname
64+
$appgw.EnableRequestBuffering = $false
65+
$appgw.EnableResponseBuffering = $false
66+
Set-AzApplicationGateway -ApplicationGateway $appgw
67+
```
68+
5469
### ARM template method
5570

5671
```json

0 commit comments

Comments
 (0)