Jump to Section
Accessing Kudu for Azure Web App Configuration#
To begin the process, access Kudu on Azure.
For an in-depth understanding, explore the official documentation.
A shortcut to your Kudu dashboard is by appending “scm” to your Azure Web App URL, forming the following link:
Navigating to CMD Console within Kudu#
After accessing Kudu:
Navigate directly to the CMD console for further actions.
Locating the Essential applicationhost.config File#
- Access the root directory by clicking on the “Site root” icon.
- From the listed directories, head over to the config folder.
- Here, you'll find the crucial applicationhost.config file.
Alongside each file, you'll notice options for downloading, editing, or removing.
Adjust application host's config GZIP Compression Settings#
To enable dynamic compression:
- Click on the edit icon next to applicationhost.config.
- Within the <system.webServer> tag, ensure these compression settings are present:
Make certain your desired data types are included in either <dynamicTypes> or <staticTypes>.
After finalizing, don't forget to restart your app for the changes to take effect.
Troubleshooting: When HTTP Compression Doesn't work#
If the compression isn't functioning as expected, monitor key performance metrics such as CPU utilization and RAM usage.
Excessive CPU usage might lead to automatic compression disabling.
Consider the dynamicCompressionDisableCpuUsage and dynamicCompressionEnableCpuUsage attributes, which dictate the upper and lower CPU utilization limits for enabling/disabling dynamic compression.
For a better attributes understanding, check the official description from Microsoft:
dynamicCompressionDisableCpuUsage |
Optional uint attribute.
Note: This attribute acts as an upper CPU limit at which dynamic compression is turned off. When CPU utilization falls below the value specified in the dynamicCompressionEnableCpuUsage attribute, dynamic compression will be re-enabled. |
dynamicCompressionEnableCpuUsage |
Optional uint attribute.
Note: This attribute acts as a lower CPU limit below which dynamic compression is turned on. When CPU utilization rises above the value specified in the dynamicCompressionDisableCpuUsage attribute, dynamic compression will be disabled. |
For a more comprehensive understanding of HTTP compression attributes, consider delving into the HTTP Compression article on the Microsift official site, which provides essential insights into the intricacies of dynamic GZIP compression in Azure Web Apps.