Forum Discussion
Send data through TCP to a external server
Hi Anonymous
I have received an update from the internal team as follows:
"We cannot just push to an unauthenticated TCP port when using Fabric". But one option if you just need to sent some text to an endpoint would be to use an event stream. You can use a custom app endpoint. You can treat this like an eventhub, AQMP or Kafka endpoint.
Please refer for more details: Add a custom app source to an eventstream - Microsoft Fabric | Microsoft Learn
I hope this information helps.
Thank you.
Hello,
Thank you for your response. However, I need more detailed information on how to use an event stream for sending a text message.
Currently, I am generating the text for the message using a pipeline, as shown in the image below:
I tried sending the message using a Notebook with the following code:
import socket
Initially, this worked, but it has since stopped working, and I'm not sure why.
Could you please provide guidance on how to integrate this process with a stream? I assume the pipeline would need to send the generated text to the stream, and then maybe an Azure Function would consume the stream and forward the text to the TCP destination.
f that's the case, can the Azure Function send data to an unauthenticated TCP server?
Thank you for your assistance.