Other Articles

App Service – Enable HTTP2

This check ensures that Azure Web Applications have HTTP/2.0 enabled to improve performance, reduce latency, and enhance security.

Check Details

  • Resource: Azure App Service (Web App)
  • Check: Ensure HTTP/2.0 Is Enabled
  • Risk: Disabling HTTP/2.0 may result in reduced performance, increased latency, and less efficient network utilization.

Remediation via Azure Portal

  1. Log in to the Azure Portal. Azure Portal dashboard
  2. Navigate to App Services and select the affected Web App. Azure App Services list
  3. In the left-hand menu, select Configuration. Web App configuration menu
  4. Under the General settings tab, locate HTTP Version.
  5. Set HTTP Version to 2.0. Enable HTTP/2 setting in Azure Web App
  6. Click Save to apply the configuration.

Remediation via Azure CLI

  1. Open Azure Cloud Shell or a local terminal with Azure CLI installed. Azure Cloud Shell
  2. Enable HTTP/2.0 for the Web App:

    az webapp config set \
     --resource-group <resource-group> \
     --name <web-app-name> \
     --http20-enabled true
    
  3. Verify HTTP/2.0 is enabled:

    az webapp config show \
     --resource-group <resource-group> \
     --name <web-app-name> \
     --query http20Enabled
    

Replace <resource-group> and <web-app-name> with your actual values.