cannot delete container group/instance

Stephen Emm 0 Reputation points
2025-03-09T10:15:35.3766667+00:00

portal gives "Failed to delete the container instances in container group 'cg-dbsak-argent'. Error: Encountered an internal server error."

also unable to delete via az cli.

Azure Container Instances
Azure Container Instances
An Azure service that provides customers with a serverless container experience.
741 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Stephen Emm 0 Reputation points
    2025-03-10T18:12:24.2566667+00:00

    hi,

    Thanks for the update, I did manage to remove the container group/instance in the end. The issue was with mounting an Azure File Share - specifically the mount location in the linux container, this seemed to cause the container group to always be in a "transitioning" (literally, the error was "the container group is still transitioning") state that prevented my bicep scripts from making any adjustments to the resources, and also wouldn't let me delete them. Restarting, then stopping the container group seemed to get it into a state where it could be deleted. Mounting the Azure file share in a different location within the container was the ultimate solution - though i'm not sure why it couldn't be mounted where originally specified i.e. under /mnt/maron


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.