Update environment variable of an already deployed container instance

Albin Lukose 45 Reputation points
2024-02-15T23:58:12.6466667+00:00

I have deployed a container in azure portal using docker image from docker's public repository. I have supplied an environment variable (connection string) during deployment. I would like to update the environment variable(connection string).Is there is a way for that?

Azure Container Instances
Azure Container Instances
An Azure service that provides customers with a serverless container experience.
669 questions
0 comments No comments
{count} votes

Accepted answer
  1. shiva patpi 13,161 Reputation points Microsoft Employee
    2024-02-16T00:10:41.61+00:00

    Albin Lukose ,

    To update any container you will have to make use of : az container create with options

    (See the below document along with the commands)

    https://video2.skills-academy.com/en-us/azure/container-instances/container-instances-update

    To create the container with environment variables:

    https://video2.skills-academy.com/en-us/azure/container-instances/container-instances-environment-variables

    Also there are some properties which can't be updated but that needs container to be re-created:

    https://video2.skills-academy.com/en-us/azure/container-instances/container-instances-update#properties-that-require-container-delete

    So for Azure Container Instances, those are the only options which are provided as of now.

    Kindly explore those options !!

    Regards,

    Shiva.

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful