π‘οΈ Azure Application Gateway HTTP2 protocol is not enabledπ’
- Contextual name: π‘οΈ Application Gateway HTTP2 protocol is not enabledπ’
- ID:
/ce/ca/azure/application-gateway/gateway-http2-protocol - Tags:
- π’ Policy with categories
- π’ Policy with type
- π’ Production policy
- Policy Type:
COMPLIANCE_POLICY - Policy Categories:
SECURITY
Logicβ
- π§ prod.logic.yamlπ’
Descriptionβ
Descriptionβ
This policy identifies Azure Application Gateways that do not utilize HTTP/2. Consider enabling 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.
Rationaleβ
Enabling HTTP/2 supports use of modern encrypted connections.
Impactβ
Clients and backend services that do not support HTTP/2 will fall back to HTTP/1.1.
Auditβ
This policy flags an Azure Application Gateway as
INCOMPLIANTif itHTTP/2traffic is not Enabled.Default Valueβ
HTTP2 is enabled by default.
Referencesβ
- https://learn.microsoft.com/en-us/azure/application-gateway/features#websocket-and-http2-traffic
- https://learn.microsoft.com/en-us/cli/azure/network/application-gateway
- https://learn.microsoft.com/en-us/powershell/module/az.network/get-azapplicationgateway
- https://learn.microsoft.com/en-us/powershell/module/az.network/set-azapplicationgateway
Remediationβ
Remediationβ
From Azure Portalβ
- Go to
Application gateways.- Click the name of an application gateway.
- Under
Settings, clickConfiguration.- Under
HTTP2, clickEnabled.- Click
Save.- Repeat steps 1-5 for each application gateway requiring remediation.
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 EnabledFrom 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 = $trueRun the following command to apply the update:
Set-AzApplicationGateway -ApplicationGateway $gatewayRepeat for each application gateway requiring remediation.
policy.yamlβ
Linked Framework Sectionsβ
| Section | Sub Sections | Internal Rules | Policies | Flags | Compliance |
|---|---|---|---|---|---|
| πΌ CIS Azure v5.0.0 β πΌ 7.13 Ensure 'HTTP2' is set to 'Enabled' on Azure Application Gateway (Automated) | 1 | no data | |||
| πΌ Cloudaware Framework β πΌ Threat Protection | 48 | no data |