7.13 Ensure 'HTTP2' is set to 'Enabled' on Azure Application Gateway

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.

See Also

https://workbench.cisecurity.org/benchmarks/21611

Item Details

Category: SYSTEM AND SERVICES ACQUISITION

References: 800-53|SA-22, CSCv7|2.2

Plugin: microsoft_azure

Control ID: d419827ed118c0538c914f0b08cf0605c56bb3cdbf8c492e08270f394231bacf