Permission denied since user in Azure batch task and Azure Storage Container are different

Samhitha Vootkoor 25 Reputation points
2023-02-09T12:12:54.2733333+00:00

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) ?

Azure Container Instances
Azure Container Instances
An Azure service that provides customers with a serverless container experience.
700 questions
Azure Batch
Azure Batch
An Azure service that provides cloud-scale job scheduling and compute management.
330 questions
0 comments No comments
{count} vote

Accepted answer
  1. Sreeja Sridhar Ch 110 Reputation points
    2023-02-10T09:44:09.7766667+00:00

    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

    1 person found this answer helpful.
    0 comments No comments

1 additional answer

Sort by: Most helpful
  1. 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.

    0 comments No comments

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.