i have a core application that uses event hub to consume & produce messages. it uses azure event hub & i configured sasl.username as "$ConnectionString" & sasl.password as "Endpoint=sb://xxxxxxxxxxxxxxxxx" in the appsettings.json & deployed to azure app service. This works successfully. But when i dockerized core application deploy via a docker-compose.yml, (define the variables in docker-compose.yml environment section) with the same variables it says sasl.username & sasl.password needs to be set. i have tried various things even from chatgpt to get a correct method. But i couldn't. Also when i log in to the container the Kafkachannel__SaslUsername= is empty. Higly appreciated if some one can help me on this. i have spent about 24 hours to fix this without any success.
i have a .net core application that uses event hub to consume & produce messages. it uses azure event hub & i configured sasl.username as "$ConnectionString" & sasl.password as "Endpoint=sb://xxxxxxxxxxxxxxxxx" in the appsettings.json & deployed to azure app service. This works successfully. But when i dockerized .net core application deploy via a docker-compose.yml, (define the variables in docker-compose.yml environment section) with the same variables it says sasl.username & sasl.password needs to be set. i have tried various things even from chatgpt to get a correct method. But i couldn't. Also when i log in to the container the Kafkachannel__SaslUsername= is empty. Higly appreciated if some one can help me on this. i have spent about 24 hours to fix this without any success.
As mentioned when i log in to the container KafkaChannel__SaslUsername is empty. in order to fix the we need use double $$ syntax like this inside the docker-compose.yml. KafkaChannel__SaslUsername=$$ConnectionString