Information
Enable HTTP/2 for improved performance, efficiency, and security.
HTTP/2 protocol support is available to clients that connect to application gateway listeners only. Communication with backend server pools is always HTTP/1.1.
Enabling HTTP/2 supports use of modern encrypted connections.
Solution
Remediate from Azure Portal
- Go to Application gateways.
- Click the name of an application gateway.
- Under Settings, click Configuration.
- Under HTTP2, click Enabled.
- Click Save.
- Repeat steps 1-5 for each application gateway requiring remediation.
Remediate from Azure CLI
For each application gateway requiring remediation, run the following command to enable HTTP2:
az network application-gateway update --resource-group <resource-group> --name <application-gateway> --http2 Enabled
Remediate from PowerShell
Run the following command to get the application gateway in a resource group with a given name:
$gateway = Get-AzApplicationGateway -ResourceGroupName <resource-group> -Name <application-gateway>
Run the following command to enable HTTP2:
$gateway.EnableHttp2 = $true
Run the following command to apply the update:
Set-AzApplicationGateway -ApplicationGateway $gateway
Repeat for each application gateway requiring remediation.
Impact:
Clients and backend services that do not support HTTP/2 will fall back to HTTP/1.1.