Azure batch - ResourceContainerAccessDenied

StackMack 0 Reputation points
2024-04-05T11:57:47.9133333+00:00

0

I need help with my azure batch jobs, they are failing with error: ResourceContainerAccessDenied.

I've access issues when running a azure batch jobs towards my storage account. I should add that both are located in same region and are on the same subscription. My batch jobs are supposed to run ffmpeg and fetch input files (this fails) and upload the result in the storage account.

I am using Microsoft.Azure.Batch.BatchClient using BatchTokenCredentials. I can create pools, jobs, upload files to store account. But my job can't access the files.

I use a Microsoft Entra service principal with Batch.NET (https://learn.microsoft.com/en-us/azure/batch/batch-aad-auth)

I've done scenario 1 and configured the virtual network and subnet in my store account, by following instructions in this link (https://learn.microsoft.com/en-us/troubleshoot/azure/hpc/batch/access-denied-execute-azure-batch-job) But that didn't help either, I still receive the same error ResourceContainerAccessDenied.

My code: https://github.com/Kebne/azure-batch-demo/blob/main/azure-batch-demo/AzureBatch.cs

Azure Batch
Azure Batch
An Azure service that provides cloud-scale job scheduling and compute management.
302 questions
{count} votes