I always get a Connection Test Failed when trying to add an Azure function as an output sink to Stream Analytics Job. The Azure function works fine by itself and I can also call it using Postman. As soon as I add the Azure function, I get the Connection Test failed error message.
Azure function returned an HTTP error. An error occurred while sending the request.
I got the same issue. The solution that works for me was to set up:
Minimum TLS version: 1.0 (by default it was 1.2) for my function app.