App Service web app HTTP version should be the latest


Newer versions of HTTP may contain security enhancements and additional functionality. As an example, HTTP 2.0 no longer supports HTTP 1.1’s chunked transfer encoding mechanism, as it provides a more efficient mechanism for data streaming.

Remediation Steps

Azure Portal

  • Navigate to App Services.

  • Select an app.

  • In the left navigation under Settings, select Configuration.

  • Select General Settings and from the HTTP version drop-down, select 2.0.

  • Click Save.

Azure CLI

  • To set an App Service web app to the latest HTTP version:

az webapp config set --resource-group <RESOURCE_GROUP_NAME> --name <APP_NAME> --http20-enabled true