Changed the user in my dockerfile used to create the container to _azbatch so it's compatible with the user of the storage account. This isn't the solution, but a workaround temporarily
Permission denied since user in Azure batch task and Azure Storage Container are different
Hello,
We have tried to run a docker image on azure batch and the dockerfile has a user created and will use that in the container. But, on the azure batch end, since we are not using default batch user, we are unable to access wd and other batch working directory paths.
How can we have full permissions to all the files in the container (image files and batch user files) ?
1 additional answer
Sort by: Most helpful
-
vipullag-MSFT 26,306 Reputation points
2023-02-13T09:52:50.86+00:00 Hello Samhitha Vootkoor
Welcome to Microsoft Q&A Platform, thanks for posting your query here.
You can try this by elevating the auto user to admin.
Ref: https://video2.skills-academy.com/en-us/rest/api/batchservice/task/add?tabs=HTTP#elevationlevel
"userIdentity": { "autoUser": { "scope": "task", "elevationLevel": "admin" }
Hope this helps.
If you need further help on this, tag me in a comment.
If the suggested response helped you resolve your issue, please 'Accept as answer', so that it can help others in the community looking for help on similar topics.