Init containers

Mansi Gusain 495 Reputation points
2024-10-03T06:46:58.1833333+00:00

Hi can I use the init container to feed env variables and their values into the container app? if yes then please let me know how..thanks in advance.

Azure Container Apps
Azure Container Apps
An Azure service that provides a general-purpose, serverless container platform.
686 questions
0 comments No comments
{count} votes

Accepted answer
  1. Sam Cogan 10,812 Reputation points Microsoft Employee Volunteer Moderator
    2024-10-03T08:02:26.0233333+00:00

    This isn't directly possible, but you could have your init container call the ARM REST API to update the environment variables assigned to the container app, from your init container.

    Other than that, if you want to pass values between init and main container you would need to store the value externally in database, file store or similar.


0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.