1
votes

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!

2

2 Answers

2
votes

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.

0
votes

This is currently still not supported in tf 0.13.3 and azurerm 2.24.0. It generates the following error:

Error: Unsupported block type

blocks of type "compression" are not expected here.

This might be supported in the future, but do not count on it.