terraformazure-eventhubazure-stream-analyticsterraform-provider-azurestream-analytics

Terraform - Select GZIP compression option on an Azure Stream Analytics Input (Event Hub)


I need to set the Gzip compression option onto my EventHub input in a Stream Analytics job to get it to process.

The documentation doesn't have "Compression" options available in the SA job Event Hub Input specification.

https://www.terraform.io/docs/providers/azurerm/r/stream_analytics_stream_input_eventhub.html

Screenshot from Azure SA Job input for the Event Hub with GZip compression selected

Has anyone managed to do this? Thanks in advance!


Solution

  • Per my understanding to the document of Terraform, since it doesn't have the "Compression" property, so it may not support managing the compression type of SA job Event Hub Input. Or you can have a try to add the "Compression" property after "serialization" property.

    compression {    
        type = "GZip"
    }
    

    By the way, according to the update rest api document of stream-analytics-input, we can see it doesn't support update compression type. So I think it probably can not be implemented in Terraform too.