Why does Azure Self-hosted agent receive Connection refused error when connecting with EventHubs?
When using Azure self-hosted agent deployed on Kubernetes I face the following error: [Error]2024-06-14T11:28:08.719 [EventHubSendFailed], exception: System.Net.Sockets.SocketException (111): Connection refused at Microsoft.Azure.EventHubs.Amqp.AmqpEventHubClient.CreateConnectionAsync(TimeSpan timeout) at Microsoft.Azure.Amqp.FaultTolerantAmqpObject`1.OnCreateAsync(TimeSpan timeout) at Microsoft.Azure.Amqp.Singleton`1.GetOrCreateAsync(TimeSpan timeout) at Microsoft.Azure.Amqp.Singleton`1.GetOrCreateAsync(TimeSpan timeout) at Microsoft.Azure.EventHubs.Amqp.AmqpEventDataSender.CreateLinkAsync(TimeSpan timeout) at Microsoft.Azure.Amqp.FaultTolerantAmqpObject`1.OnCreateAsync(TimeSpan timeout) at Microsoft.Azure.Amqp.Singleton`1.GetOrCreateAsync(TimeSpan…