Keeping compression disabled for CDN will make the application slow, which will end up hogging more network resources.
Compression cannot be specifically enabled or disabled in the Azure Console, however to optimize for larger file downloads there are several options. General Azure CDN functionality with General Web Content optimization will be configured by default to provide large files with various methods for ensuring complete delivery without file size limitations. For optimizing CDN from Akamai profiles, see the Azure documentation. To create an optimized endpoint profile, see the steps below.
In Azure Console -
In Terraform -
References:
https://learn.microsoft.com/en-us/azure/cdn/cdn-optimization-overview#large-file-download
https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/cdn_endpoint