I'm trying to check the state of a container in an azure container group using python.
The reason for this is, we have a monitor that check our application status and restarts the container-group if the application stops responding. The problem with this is, if the container takes too long to start up we don't want the monitor to restart it again.
So we would like to check if the container is currently in a waiting or pending state so that the monitor can ignore it until it comes up.