Container group remains in transitioning state

This article discusses how to resolve an operational failure that occurs when a container group remains in a transitioning state indefinitely in Microsoft Azure Container Instances. The article also discusses failures that occur during container group operations to create, start, restart, stop, or delete a container group.

Symptoms

When you do something that directly or indirectly triggers a container group operation, such as deleting an Azure Kubernetes Service (AKS) cluster, you receive the following error message:

InternalErrorCode: "ContainerGroupTransitioning"
StatusCode: "409"
Message: "The container group '<container-group-name>' is still transitioning, please retry later."

Cause

During a continuous start operation of the container group, sidecar containers in Container Instances aren't terminated as expected. In this situation, the container group is stuck in the Succeeded state.

Solution 1: Stop and restart the container group

  1. In the Azure portal, search for and select Container instances.

  2. In the list of container instances, select the name of your container group (container instance).

  3. On the Overview page of your container group, select Stop to stop the container group. In the Stop container instances dialog box, select Yes to confirm this action.

  4. Wait until the container group is completely stopped. (This can take up to three minutes.)

  5. Select Start to start the container group again.

Solution 2: Stop the container group for a non-running container (deployed by Logic Apps)

If the container is deployed by using an Azure Logic App, check the state of the container. If the container isn't in the Running state, stop the container group. For more information, see Run sentiment analysis based on triggers with Azure Container Instances (ACI) and the ACI Logic Apps connector.

Note

As a best practice, we recommend that you check the state of the container before you stop or start a container group. If you start a container group that already has a running container, you might cause the transitioning state problem.

Solution 3: Open a support ticket

If the previous solutions don't fix the problem, and you still encounter the error message, open a support ticket.

More information

Contact us for help

If you have questions or need help, create a support request, or ask Azure community support. You can also submit product feedback to Azure feedback community.