How to mount a volume when building a pipeline in DevOps to deploy to Container Apps.

Ada Graves 0 Reputation points
2024-04-29T19:51:41.79+00:00

I have a Container registry, a Container Apps Environment, and a Container App. I set up a Storage account with a File share. I added the file share to my Container Apps Environment. I added a Volume to my Container App that references the file share. I'm using a pipeline in Azure DevOps to build the container and push it the registry and run a containerapp update so it creates a new revision. And no matter how I configure my docker-compose.yml file, I can't seem to get Azure to actually mount the volume to my revisions. I tried downloading the app.yaml file and adding a mount there, as per the container apps documentation. I've tried any number of solutions of formatting the volume in docker-compose per questions I've found here and on StackOverflow. Nothing seems to work. In the Volumes tab on my Container App I get a message that says: "The following volumes have no associated mounts in this revision's containers:".

Azure Container Apps
Azure Container Apps
An Azure service that provides a general-purpose, serverless container platform.
283 questions
{count} votes