Problem mounting volume in container app

David Wipper 50 Reputation points
2024-08-29T22:30:07.83+00:00

I have a container app with a docker container loaded. I have created a storage account, and create a file share. I added the share as a volume in the container app configuration. It appears the volume isn't mounting since there is a message: The following volumes have no associated mounts in this revision's containers: [volume name] as shown below. The volume definition shows that there are no associated mounts. Any suggestions on fixing this? Am I missing a step somewhere? Thanks!User's image

User's image

Azure Files
Azure Files
An Azure service that offers file shares in the cloud.
1,277 questions
Azure Storage Accounts
Azure Storage Accounts
Globally unique resources that provide access to data management services and serve as the parent namespace for the services.
3,105 questions
Azure Container Apps
Azure Container Apps
An Azure service that provides a general-purpose, serverless container platform.
399 questions
0 comments No comments
{count} votes

Accepted answer
  1. Nehruji R 7,306 Reputation points Microsoft Vendor
    2024-08-30T11:48:05.91+00:00

    Hello David Wipper,

    Greetings! Welcome to Microsoft Q&A Platform.

    It sounds like the issue might be related to the configuration of the volume mount in your container app.

    Ensure that the volume is correctly defined in your container app’s configuration. You should have a volume definition in the volumes section of your YAML file.

    Make sure that the volume is associated with the container in the volumeMounts section. This is where you specify which container should mount the volume and the mount path.

    Double-check that your storage account and file share are correctly set up and accessible. Ensure that the file share is properly linked to your container app environment.

    If you are using the Azure CLI, you can update your container app configuration by exporting it to a YAML file, making the necessary changes, and then applying the updated configuration.

    Use storage mounts in Azure Container Apps Learn to use temporary and permanent storage mounts in Azure Container Apps

    Hope this answer helps! please let us know if you have any further queries. I’m happy to assist you further.

    Please "Accept the answer” and “up-vote” wherever the information provided helps you, this can be beneficial to other community members


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.