Hi @Ramon Charalambous Greetings! I have checked with the product team on this request.
Your observations on this are correct. This feature is not supported with the current implementation of IoT Edge. The product team did not have any recommendations or better approaches on this use case. The route you are following to utilize a file to write the values and read them from inside the application at startup seems to be the way to go for now.
I have come across a similar feature request idea posted on the Azure IoT Edge ideas page. Here is the link for the request Allow for placeholder variables in IoT Edge deployment templates I have upvoted the idea. I request you to do the same so the product team can look into it and prioritize accordingly.
I understand that this situation may have caused some inconvenience, and I want to express my gratitude for your efforts and patience in handling it.
If the response helped, please do click Accept Answer and Yes for the answer provided. Doing so would help other community members with similar issue identify the solution. I highly appreciate your contribution to the community.