Disable gzip responses in Azure Functions

By default, responses from Http Triggered Azure Functions are gzipped:

Not all clients are able to handle this (although they should be)
Turning it off isn’t particularly trivial.

A change needs to be made to – which is located in
However, this file is readonly, so the change needs to be made via a xdt transform.

In the Azure portal, navigate to your Function App, and click on the Platform features tab. Select Advanced tools (Kudu)

Select CMD under Debug console, to enter the Kudu shell:

Click the Planet icon, then Config:

This is where the lives.

You can view it, or download it, but can’t edit it.
You’ll notice (around line 835) which means is currently enabled.

Back in the console, click the Home icon, then navigate to Site.

Create a file called with the following content:

Stop and start the function app, which will apply this transform to

Responses from your Azure Function app will now not be gzipped.

Freelance / contract .net developer

Freelance / contract .net developer